summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-21 21:05:29 +0100
committerAndrew Dolgov <[email protected]>2005-11-21 21:05:29 +0100
commitd28920327486b8ae3347492f4b18002cc0dc455a (patch)
treea2a37c0a36d9ebfc5eeae26f334219069e733a5d /backend.php
parent8caa7999c021d0363e726fcf582cc64a58f4a1e7 (diff)
fix prefs apply behaviour for demo mode
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php15
1 files changed, 12 insertions, 3 deletions
diff --git a/backend.php b/backend.php
index 9fe421ffb..1dcfd4deb 100644
--- a/backend.php
+++ b/backend.php
@@ -1685,7 +1685,10 @@
if ($subop == "Save configuration") {
- if (WEB_DEMO_MODE) return;
+ if (WEB_DEMO_MODE) {
+ header("Location: prefs.php");
+ return;
+ }
$_SESSION["prefs_op_result"] = "save-config";
@@ -1741,7 +1744,10 @@
} else if ($subop == "Change password") {
- if (WEB_DEMO_MODE) return;
+ if (WEB_DEMO_MODE) {
+ header("Location: prefs.php");
+ return;
+ }
$old_pw = $_POST["OLD_PASSWORD"];
$new_pw = $_POST["OLD_PASSWORD"];
@@ -1773,7 +1779,10 @@
} else if ($subop == "Reset to defaults") {
- if (WEB_DEMO_MODE) return;
+ if (WEB_DEMO_MODE) {
+ header("Location: prefs.php");
+ return;
+ }
$_SESSION["prefs_op_result"] = "reset-to-defaults";