diff --git a/admin-bwm.asp b/admin-bwm.asp index 3831a9f..b80281a 100644 --- a/admin-bwm.asp +++ b/admin-bwm.asp @@ -42,14 +42,13 @@ No part of this file may be used without permission. alert('Incorrect filename. Expecting a ".gz" file.'); return false; } + if (!confirm('Restore data from ' + name + '?')) return false; E('restore-button').disabled = 1; - fields.disableAll(E('config-section'), 1); - fields.disableAll(E('backup-section'), 1); - fields.disableAll(E('footer'), 1); - + fields.disableAll(E('_fom'), 1); E('restore-form').submit(); + } function getPath() @@ -172,7 +171,7 @@ No part of this file may be used without permission. } -
+
Bandwidth Monitoring Settings
@@ -182,49 +181,49 @@ No part of this file may be used without permission. - -

+ +
- +

Backup

@@ -246,12 +245,11 @@ No part of this file may be used without permission.
- -
-
+ +
- +
diff --git a/admin-iptraffic.asp b/admin-iptraffic.asp index 6ad4d65..86a77b1 100644 --- a/admin-iptraffic.asp +++ b/admin-iptraffic.asp @@ -42,17 +42,19 @@ No part of this file may be used without permission. var i; name = fix(E('restore-name').value); name = name.toLowerCase(); + if ((name.length <= 3) || (name.substring(name.length - 3, name.length).toLowerCase() != '.gz')) { alert('Incorrect filename. Expecting a ".gz" file.'); return false; } + if (!confirm('Restore data from ' + name + '?')) return; E('restore-button').disabled = 1; - fields.disableAll(E('config-section'), 1); - fields.disableAll(E('backup-section'), 1); - fields.disableAll(E('footer'), 1); + fields.disableAll(E('_fom'), 1); E('restore-form').submit(); + } + function getPath() { var s = E('_f_loc').value; @@ -184,7 +186,7 @@ No part of this file may be used without permission. } -
+
IP Traffic Monitoring Settings
@@ -197,45 +199,46 @@ No part of this file may be used without permission.

-
+ +
@@ -254,9 +257,8 @@ No part of this file may be used without permission.
- -
-
+ +