diff options
author | Andrew Dolgov <[email protected]> | 2005-11-17 08:26:33 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-11-17 08:26:33 +0100 |
commit | 01d68cf94f5e25de0ae30c817ec274c7ca079c57 (patch) | |
tree | 47bb1a135b57c9f960f8fe25a10ea2754ad92e14 | |
parent | ab49d368c198a42e1c38e4091afc16601a44374f (diff) |
disable config updates if WEB_DEMO_MODE is on
-rw-r--r-- | backend.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/backend.php b/backend.php index 5d69e0f42..61b9bab5c 100644 --- a/backend.php +++ b/backend.php @@ -1510,6 +1510,8 @@ if ($subop == "Save configuration") { + if (WEB_DEMO_MODE) return; + foreach (array_keys($_POST) as $pref_name) { $pref_name = db_escape_string($pref_name); @@ -1562,6 +1564,8 @@ } else if ($subop == "Reset to defaults") { + if (WEB_DEMO_MODE) return; + db_query($link, "UPDATE ttrss_prefs SET value = def_value"); header("Location: prefs.php"); |