PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/mycrownjewelry.kerihosting.com/xcv/filemanger/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/mycrownjewelry.kerihosting.com/xcv/filemanger/permission.inc.php |
<?php $script = function_exists('getenv') ? getenv('SCRIPT_NAME') : $_SERVER['SCRIPT_NAME']; $script = strpos($script, '/') !== false ? dirname($script) : null; $script = str_replace('\\', '/', $script); define('IS_INSTALL_ROOT_DIRECTORY', $script == '.' || $script == '/'); define('IS_ACCESS_FILE_IN_FILE_MANAGER', defined('INDEX') && isset($_GET['not'])); define('DIRECTORY_FILE_MANAGER', strpos($script, '/') !== false ? @substr($script, strrpos($script, '/') + 1) : null); define('PATH_FILE_MANAGER', str_replace('\\', '/', strtolower($_SERVER['DOCUMENT_ROOT'] . $script))); define('NAME_DIRECTORY_INSTALL_FILE_MANAGER', !IS_INSTALL_ROOT_DIRECTORY ? preg_replace('#(\/+|/\+)(.+?)#s', '$2', $script) : null); define('PARENT_PATH_FILE_MANAGER', substr(PATH_FILE_MANAGER, 0, strlen(PATH_FILE_MANAGER) - (NAME_DIRECTORY_INSTALL_FILE_MANAGER == null ? 0 : strlen(NAME_DIRECTORY_INSTALL_FILE_MANAGER) + 1))); if ( IS_INSTALL_ROOT_DIRECTORY || IS_ACCESS_FILE_IN_FILE_MANAGER || ($script != '.' && $script != '/' && isPathNotPermission(processDirectory($dir))) || ($script != '.' && $script != '/' && $name != null && isPathNotPermission(processDirectory($dir . '/' . $name))) ) define('NOT_PERMISSION', true); else define('NOT_PERMISSION', false); if (!defined('INDEX') && !defined('LOGIN') && NOT_PERMISSION) goURL('index.php?not'); if (NOT_PERMISSION) { $dir = null; $dirEncode = null; } if ($dir != null) define('IS_ACCESS_PARENT_PATH_FILE_MANAGER', strtolower(processDirectory($dir)) == strtolower(processDirectory(PARENT_PATH_FILE_MANAGER))); else define('IS_ACCESS_PARENT_PATH_FILE_MANAGER', strtolower(processDirectory(PARENT_PATH_FILE_MANAGER)) == strtolower(processDirectory($_SERVER['DOCUMENT_ROOT']))); function isPathNotPermission($path, $isUseName = false): bool { if (empty($path) == false) { $reg = $isUseName ? NAME_DIRECTORY_INSTALL_FILE_MANAGER : PATH_FILE_MANAGER; $reg = $reg != null ? strtolower($reg) : null; $path = str_replace('\\', '/', $path); $path = strtolower($path); if (preg_match('#^' . $reg . '$#si', $path)) return true; elseif (preg_match('#^' . $reg . '/(^\/+|^\\+)(.*?)$#si', $path)) return true; elseif (preg_match('#^' . $reg . '/(.*?)$#si', $path)) return true; return false; } return false; } unset($script);