pref_prefs: only disable password changing block in single user mode (closes #444)

This commit is contained in:
Andrew Dolgov 2012-03-29 14:44:52 +04:00
parent 0bf3e81daf
commit d4c64ecc77
1 changed files with 50 additions and 49 deletions

View File

@ -160,8 +160,6 @@ class Pref_Prefs extends Protected_Handler {
"SSL_CERT_SERIAL", "DIGEST_PREFERRED_TIME"); "SSL_CERT_SERIAL", "DIGEST_PREFERRED_TIME");
if (!SINGLE_USER_MODE) {
$_SESSION["prefs_op_result"] = ""; $_SESSION["prefs_op_result"] = "";
print "<div dojoType=\"dijit.layout.AccordionContainer\" region=\"center\">"; print "<div dojoType=\"dijit.layout.AccordionContainer\" region=\"center\">";
@ -215,6 +213,8 @@ class Pref_Prefs extends Protected_Handler {
print "</form>"; print "</form>";
if (!SINGLE_USER_MODE) {
$result = db_query($this->link, "SELECT id FROM ttrss_users $result = db_query($this->link, "SELECT id FROM ttrss_users
WHERE id = ".$_SESSION["uid"]." AND pwd_hash WHERE id = ".$_SESSION["uid"]." AND pwd_hash
= 'SHA1:5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8'"); = 'SHA1:5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8'");
@ -270,9 +270,10 @@ class Pref_Prefs extends Protected_Handler {
print "</form>"; print "</form>";
print "</div>"; #pane
} }
print "</div>"; #pane
print "<div dojoType=\"dijit.layout.AccordionPane\" selected=\"true\" title=\"".__('Preferences')."\">"; print "<div dojoType=\"dijit.layout.AccordionPane\" selected=\"true\" title=\"".__('Preferences')."\">";
print "<form dojoType=\"dijit.form.Form\" id=\"changeSettingsForm\">"; print "<form dojoType=\"dijit.form.Form\" id=\"changeSettingsForm\">";