Skip to content
Snippets Groups Projects
Commit 958e55e7 authored by Bob Mottram's avatar Bob Mottram
Browse files

Admin subdirectory

parent 8e4d19a3
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ if (isset($_POST['submitbackuppassword'])) {
exec('cp backup_progress_template.html backup_progress.html');
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
header("Location: http://$host$uri/backup_progress.html");
header("Location: http://$host$uri/admin/backup_progress.html");
$output_filename = "backup_progress.html";
}
else {
......@@ -51,7 +51,7 @@ if (isset($_POST['submitrestorepassword'])) {
exec('cp restore_progress_template.html restore_progress.html');
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
header("Location: http://$host$uri/restore_progress.html");
header("Location: http://$host$uri/admin/restore_progress.html");
$output_filename = "restore_progress.html";
}
else {
......
......@@ -12,7 +12,7 @@ if (isset($_POST['submitsystemmonitor'])) {
# remain on this screen after clicking update
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
header("Location: http://$host$uri/system_monitor.html");
header("Location: http://$host$uri/admin/system_monitor.html");
sleep(3);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment