/** * PHP File Manager (2017-08-07) * https://github.com/alexantr/filemanager */// Auth with login/password (set true/false to enable/disable it)$use_auth = true;// Users: array('Username' => 'Password', 'Username2' => 'Password2', ...)$auth_users = array( 'fm_admin' => 'fm_admin',);// Enable highlight.js (https://highlightjs.org/) on view's page$use_highlightjs = true;// highlight.js style$highlightjs_style = 'vs';// Default timezone for date() and time() - http://php.net/manual/en/timezones.php$default_timezone = 'Europe/Minsk'; // UTC+3// Root path for file manager$root_path = $_SERVER['DOCUMENT_ROOT'];// Root url for links in file manager.Relative to $http_host. Variants: '', 'path/to/subfolder'// Will not working if $root_path will be outside of server document root$root_url = '';// Server hostname. Can set manually if wrong$http_host = $_SERVER['HTTP_HOST'];// input encoding for iconv$iconv_input_encoding = 'CP1251';// date() format for file modification date$datetime_format = 'd.m.y H:i';//--- EDIT BELOW CAREFULLY OR DO NOT EDIT AT ALL// if fm includedif (defined('FM_EMBED')) { $use_auth = false;} else { @set_time_limit(600); date_default_timezone_set($default_timezone); ini_set('default_charset', 'UTF-8'); if (version_compare(PHP_VERSION, '5.6.0', '<') && function_exists('mb_internal_encoding')) { mb_internal_encoding('UTF-8'); } if (function_exists('mb_regex_encoding')) { mb_regex_encoding('UTF-8'); } session_cache_limiter(''); session_name('filemanager'); session_start();}if (empty($auth_users)) { $use_auth = false;}$is_https = isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1) || isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https';// clean and check $root_path$root_path = rtrim($root_path, '\\/');$root_path = str_replace('\\', '/', $root_path);if (!@is_dir($root_path)) { echo sprintf('