🤩 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:config.php
<?php // App Root define('APPROOT', dirname(dirname(__FILE__))); // URL Root // We use HTTP_HOST to make it somewhat dynamic for local dev and production $protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') ? "https" : "http"; $host = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'localhost'; // Dynamically determine the sub-directory path of the executing script to prevent broken assets $subdir = dirname(isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME'] : ''); $subdir = str_replace('\\', '/', $subdir); if ($subdir === '/') { $subdir = ''; } define('URLROOT', $protocol . "://" . $host . $subdir); // Site Name define('SITENAME', 'Protective Force Security');
Save Changes
Cancel
Create New File
Create New Folder