X7ROOT File Manager
Current Path:
/home/okeydcqc/okeyanueyiagu.com/wp-content/plugins/robo-gallery
home
/
okeydcqc
/
okeyanueyiagu.com
/
wp-content
/
plugins
/
robo-gallery
/
ðŸ“
..
ðŸ“
addons
ðŸ“
app
📄
autoload.php
(1.32 KB)
📄
block.json
(387 B)
ðŸ“
cache
ðŸ“
cmbre2
ðŸ“
css
ðŸ“
images
ðŸ“
includes
📄
index.html
(0 B)
ðŸ“
js
ðŸ“
languages
📄
readme.txt
(36.43 KB)
📄
robogallery.php
(3.13 KB)
ðŸ“
vendor
Editing: autoload.php
<?php /* * Robo Gallery * Version: 5.0.5 - 31754 * 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');
Upload File
Create Folder