preferences editor feedback
This commit is contained in:
parent
b791095df4
commit
93cb444211
1 changed files with 18 additions and 0 deletions
18
backend.php
18
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 "<div class=\"notice\">
|
||||
Your configuration was reset to defaults.
|
||||
</div>";
|
||||
}
|
||||
|
||||
if ($_SESSION["prefs_op_result"] == "save-config") {
|
||||
print "<div class=\"notice\">
|
||||
Your configuration was saved successfully.
|
||||
</div>";
|
||||
}
|
||||
|
||||
$_SESSION["prefs_op_result"] = "";
|
||||
|
||||
print "<form action=\"backend.php\" method=\"POST\">";
|
||||
|
||||
print "<table width=\"100%\" class=\"prefPrefsList\">";
|
||||
|
|
Loading…
Reference in a new issue