From 958e55e77ae662b35936ecce27d8d8a3f3505958 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@freedombone.net>
Date: Sat, 25 Aug 2018 21:32:48 +0100
Subject: [PATCH] Admin subdirectory

---
 webadmin/backuprestore.php | 4 ++--
 webadmin/systemmonitor.php | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/webadmin/backuprestore.php b/webadmin/backuprestore.php
index 664d7c264..3fd514f34 100755
--- a/webadmin/backuprestore.php
+++ b/webadmin/backuprestore.php
@@ -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 {
diff --git a/webadmin/systemmonitor.php b/webadmin/systemmonitor.php
index 8273de224..a65c9e6eb 100755
--- a/webadmin/systemmonitor.php
+++ b/webadmin/systemmonitor.php
@@ -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);
 
-- 
GitLab