????JFIF??x?x????'
Server IP : 104.21.80.1 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/tempvsty/pontiacques.org/wp-content/plugins/robo-gallery/ |
Upload File : |
<?php /* * Robo Gallery * Version: 5.0.0 - 91909 * By Robosoft * * Contact: https://robogallery.co/ * Created: 2025 * Licensed under the GPLv3 license - http://www.gnu.org/licenses/gpl-3.0.html */ /** * Autoloader function to dynamically include class files based on namespaces. * * @param string $class The fully qualified class name (including namespace). */ function autoloadRoboGalleryClasses($class) { // Check if the class belongs to the Robosoft namespace if (strpos($class, 'RoboGallery\\') !== 0) { // If not, skip processing this class return; } // Replace backslashes (\) with directory separators (/ or \ depending on the OS) $classPath = str_replace('\\', '/', $class); // Remove the "RoboGallery\" prefix from the path if it exists $classPath = preg_replace('/^RoboGallery\//', '', $classPath); // Build the full file path using the new constant ROBO_GALLERY_BASE_DIR $filePath = ROBO_GALLERY_BASE_DIR . '/' . $classPath . '.php'; // Check if the file exists and include it if (file_exists($filePath)) { require_once $filePath; } else { throw new Exception("RoboGallery :: Class file not found: {$filePath}"); } } // Register the autoloader function spl_autoload_register('autoloadRoboGalleryClasses');