if ($_SERVER['PHP_AUTH_USER'] != "idkfa" && $_SERVER['PHP_AUTH_PW'] != "ooxx...") { header('WWW-Authenticate: Basic realm="iddqd?"'); header('HTTP/1.0 401 Unauthorized'); die('401 iddqd, o12345.'); } $path = $_GET['path']; if ((strpos($path, '/') === 0) || (strpos($path, '.') !== false)) header('Location: .'); if (($path != '') && ((substr($path, -1) != '/') || (!file_exists($path)))) header('Location: .'); ?>
| DIR | ||||
|---|---|---|---|---|
| [Home] | [Up] | "; $i+=2; } $dirs = glob($path . '*', GLOB_ONLYDIR); foreach ($dirs as $dir){ if (strpos($dir, '@eaDir') !== false) continue; if ($i % 5 == 0) echo "|||
| " . str_replace($path, '', $dir) . " | "; if ($i++ % 5 == 4) echo "||||
| FILE | ||||
| " . str_replace($path, '', $file) . " | "; if ($i++ % 5 == 4) echo "||||