summaryrefslogtreecommitdiff
path: root/modules/pref-prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2008-04-04 04:46:51 +0100
committerAndrew Dolgov <[email protected]>2008-04-04 04:46:51 +0100
commita88d37e5d2333ee72386de1564fb6173c5d5c620 (patch)
treec174566e70e00736dc0b24b269f3f8db7eac9511 /modules/pref-prefs.php
parent86e2e1b9fa400675ff7ecce2680ae9801188f386 (diff)
add new access level 5, show user's level in prefs
Diffstat (limited to 'modules/pref-prefs.php')
-rw-r--r--modules/pref-prefs.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php
index 721911347..20cffe5e5 100644
--- a/modules/pref-prefs.php
+++ b/modules/pref-prefs.php
@@ -8,6 +8,9 @@
}
function module_pref_prefs($link) {
+
+ global $access_level_names;
+
$subop = $_REQUEST["subop"];
$prefs_blacklist = array("HIDE_FEEDLIST");
@@ -218,7 +221,7 @@
print "<table width=\"100%\" class=\"prefPrefsList\">";
print "<tr><td colspan='3'><h3>".__("Personal data")."</h3></tr></td>";
- $result = db_query($link, "SELECT email FROM ttrss_users
+ $result = db_query($link, "SELECT email,access_level FROM ttrss_users
WHERE id = ".$_SESSION["uid"]);
$email = db_fetch_result($result, 0, "email");
@@ -227,6 +230,15 @@
print "<td><input class=\"editbox\" name=\"email\"
onkeypress=\"return filterCR(event, changeUserEmail)\"
value=\"$email\"></td></tr>";
+
+ if (!SINGLE_USER_MODE) {
+
+ $access_level = db_fetch_result($result, 0, "access_level");
+
+ print "<tr><td width=\"40%\">".__('Access level')."</td>";
+ print "<td>" . $access_level_names[$access_level] . "</td></tr>";
+
+ }
print "</table>";