BossBey File Manager
PHP:
7.3.31-1~deb10u1
OS:
Linux
User:
www-data
Root
/
home
/
www
/
inorg
/
coord_old
📤 Upload
рџ“ќ New File
рџ“Ѓ New Folder
Close
Editing: backup_page.php
<?php include_once("db_connect_incl.php"); include_once("auth_incl.php"); include_once("settings_incl.php"); $section=$_GET['section']; if ($rez>=50) { if (isset($_POST['cancel'])) { Header("Location:http://$domain/index.php?section=$section&show=$show$add"); } elseif ($_GET['action']=='backup') { if (isset($_POST['confirm'])) { if (isset($_GET['section'])) {copy ("index${'section'}_incl.php","backup_index${'section'}_incl.php");}; Header("Location:http://$domain/index.php?section=$section$add"); } else { echo(" <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"> <html> <head> <title>Факультет Наук о Материалах</title> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1251\"> <link href=\"stylesheet.css\" rel=\"stylesheet\" type=\"text/css\"> </head> <body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\"> <form action=\"backup_page.php?section=$section&action=backup$add\" method=\"post\"> <span style=\"color: 550000; text-size: 18px;\">Вы уверены что хотите сохранить страницу в текущем виде как резервную копию? Предыдущая резервная копия будет удалена</span> <br> <input type=\"submit\" name=\"confirm\" value=\"OK\"> <input type=\"submit\" name=\"cancel\" value=\"Отмена\"> </form> </body> </html> "); } } elseif ($_GET['action']=='restore') { if (isset($_POST['confirm'])) { //echo ("backup_index${'section'}_incl.php"); if (isset($_GET['section'])) {copy ("backup_index${'section'}_incl.php","index${'section'}_incl.php");}; //echo ("PREVED restore"); Header("Location:http://$domain/index.php?section=$section$add"); } else { echo(" <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"> <html> <head> <title>Факультет Наук о Материалах</title> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1251\"> <link href=\"stylesheet.css\" rel=\"stylesheet\" type=\"text/css\"> </head> <body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\"> <form action=\"backup_page.php?section=$section&show=$show&action=restore$add\" method=\"post\"> <span style=\"color: 550000; text-size: 18px;\">Вы уверены что хотите восстановить страницу из резервной копии? Все изменения будут потеряны</span> <br> <input type=\"submit\" name=\"confirm\" value=\"OK\"> <input type=\"submit\" name=\"cancel\" value=\"Отмена\"> </form> </body> </html> "); } } } ?>
Save
Cancel