* * Site: http://www.leppsville.kiev.ua * */ require("../config.php"); if ($_SERVER["REDIRECT_STATUS"] == 403) { // header("HTTP/1.1 200 OK",true,200); header("Status: 200 OK"); $dir = preg_match("/\\/$/",$_SERVER["REQUEST_URI"]) ? eregi_replace("^/","",$_SERVER["REQUEST_URI"]) : eregi_replace("^/","",dirname($_SERVER["REQUEST_URI"]))."/"; } else { $dir = eregi_replace($root,"",dirname($_SERVER["SCRIPT_FILENAME"])."/"); // print_r($_SERVER); } $mtpl = new COBTemplate($root.$templates."index.tpl"); prepare($mtpl,$text_folder." /".$dir); // Page contents $mtpl->data("Contents"); echo $text_folder." /".$dir."\n
| name | type | size | ||||||
|---|---|---|---|---|---|---|---|---|
| ".eregi_replace("\\.ext\$","",$file)." | \n/ | \n" ."".filetype($root.$dir.$file)." | "; if (filetype($root.$dir.$file) !== "dir") echo "\n/ | \n".filesize($root.$dir.$file)." bytes | \n"; if (preg_match("/.php\$/i",$file) != 0) echo "/ | \nView source | \n/ | \n" ."Download source | "; echo "