From: Andrew Dolgov Date: Sun, 20 Nov 2005 07:15:59 +0000 (+0100) Subject: preferences editor feedback X-Git-Tag: schema_feature_freeze_for_1.1~171 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=93cb444211832747aaed885cda775c6c71b28737;p=tt-rss.git preferences editor feedback --- diff --git a/backend.php b/backend.php index fe2245fa..4320f513 100644 --- a/backend.php +++ b/backend.php @@ -1625,6 +1625,8 @@ if (WEB_DEMO_MODE) return; + $_SESSION["prefs_op_result"] = "save-config"; + foreach (array_keys($_POST) as $pref_name) { $pref_name = db_escape_string($pref_name); @@ -1711,6 +1713,8 @@ if (WEB_DEMO_MODE) return; + $_SESSION["prefs_op_result"] = "reset-to-defaults"; + if (DB_TYPE == "pgsql") { db_query($link,"UPDATE ttrss_user_prefs SET value = ttrss_prefs.def_value @@ -1752,6 +1756,20 @@ $_SESSION["pwd_change_result"] = ""; + if ($_SESSION["prefs_op_result"] == "reset-to-defaults") { + print "
+ Your configuration was reset to defaults. +
"; + } + + if ($_SESSION["prefs_op_result"] == "save-config") { + print "
+ Your configuration was saved successfully. +
"; + } + + $_SESSION["prefs_op_result"] = ""; + print "
"; print "";