if ($subop == "Save configuration") {
- if (WEB_DEMO_MODE) return;
+ if (WEB_DEMO_MODE) {
+ header("Location: prefs.php");
+ return;
+ }
$_SESSION["prefs_op_result"] = "save-config";
} 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"];
} 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";