⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.50
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-horde
/
lib
/
tests
/
View File Name :
webroot.phpt
--TEST-- Automatic webroot detection --FILE-- '/horde/webroot.php'); var_dump(_detect_webroot()); $_SERVER = array('SCRIPT_URL' => '/horde/webroot.php'); var_dump(_detect_webroot()); $_SERVER = array('PHP_SELF' => '/horde/webroot.php'); var_dump(_detect_webroot()); $FILE = '/var/www/horde3/config/registry.php'; $_SERVER = array('SCRIPT_NAME' => '/webroot.php', 'PHP_SELF' => '/webroot.php'); var_dump(_detect_webroot()); $FILE = '/var/www/horde/config/registry.php'; var_dump(_detect_webroot()); $FILE = '/Users/foo/Sites/hordehead/config/registry.php'; $_SERVER = array('SCRIPT_URL' => '/~foo/hordehead/webroot.php', 'SCRIPT_NAME' => '/~foo/hordehead/webroot.php', 'PHP_SELF' => '/~foo/hordehead/webroot.php'); var_dump(_detect_webroot()); $FILE = '/var/www/html/config/registry.php'; $_SERVER = array('SCRIPT_URL' => '/webroot.php', 'SCRIPT_NAME' => '/webroot.php', 'PHP_SELF' => '/webroot.php'); var_dump(_detect_webroot()); // Windows tests $DIRECTORY_SEPARATOR = '\\'; $FILE = 'c:\inetpub\wwwroot\horde\config\registry.php'; $_SERVER = array('SCRIPT_NAME' => '/horde/webroot.php', 'PHP_SELF' => '/horde/webroot.php'); var_dump(_detect_webroot()); $FILE = 'C:\Inetpub\vhosts\example.com\subdomain\webmail\config\registry.php'; $_SERVER = array('SCRIPT_NAME' => '/webroot.php', 'PHP_SELF' => '/webroot.php'); var_dump(_detect_webroot()); ?> --EXPECT-- string(6) "/horde" string(6) "/horde" string(6) "/horde" string(0) "" string(0) "" string(15) "/~foo/hordehead" string(0) "" string(6) "/horde" string(0) ""