]> git.wh0rd.org Git - tt-rss.git/commitdiff
disable config updates if WEB_DEMO_MODE is on
authorAndrew Dolgov <fox@madoka.spb.ru>
Thu, 17 Nov 2005 07:26:33 +0000 (08:26 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Thu, 17 Nov 2005 07:26:33 +0000 (08:26 +0100)
backend.php

index 5d69e0f42866984a1960ff0a5017a2fb870fe88c..61b9bab5cd44e6a5bf4f185c5f0c94b8014ac63f 100644 (file)
 
                if ($subop == "Save configuration") {
 
+                       if (WEB_DEMO_MODE) return;
+
                        foreach (array_keys($_POST) as $pref_name) {
                        
                                $pref_name = db_escape_string($pref_name);
 
                } 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");