Delete:
Reference
if(file_exists("file.htm"))//Check whether this file exists
if(file_exists("chat"))//Check whether this folder exists
rename('index.php','index'); //Rename index.php to index
fopen("name.php","a+"); //Create file
mkdir("boot ","0777"); //Create a folder and set the attribute to 777
rmdir ("include");//Delete the folder
unlink("index.php");//Delete the file
Database query:
Reference
$db = new db_query;
$db->connect();
$db->query("DROP DATABASE $DbName;" );//$dbname is the database name
Connect:
Reference
header("location:index.php");//Go to the web page
echo "Step 2: Please Choose whether to delete all files [Chat Room]
";//Write the code
unset($tmp); //Clear the original cache
require("global.php");//Cache
print <<< eot //Write the code
eot;