X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=classes%2Fpref%2Fusers.php;h=ab8ac775b54319c77ff51d680a701efe4af6d59b;hb=3a0292303e453f38204279b5d1c978a4b9c367e9;hp=d97362f9f8e64b20e09cd4d7def354d0c213b26e;hpb=2a3e8d7f3449c372d79ec525c251e0eeb791e170;p=tt-rss.git diff --git a/classes/pref/users.php b/classes/pref/users.php index d97362f9..ab8ac775 100644 --- a/classes/pref/users.php +++ b/classes/pref/users.php @@ -12,226 +12,236 @@ class Pref_Users extends Handler_Protected { } function csrf_ignore($method) { - $csrf_ignored = array("index"); + $csrf_ignored = array("index", "edit", "userdetails"); return array_search($method, $csrf_ignored) !== false; } - function userdetails() { + function edit() { + global $access_level_names; - $uid = sprintf("%d", $_REQUEST["id"]); + print "
"; return; } - function edit() { - global $access_level_names; + function userdetails() { + $id = (int) clean($_REQUEST["id"]); - $id = $this->dbh->escape_string($_REQUEST["id"]); - print "".__('Registered')." | $created |
".__('Last logged in')." | $last_login |
".__('Subscribed feeds count')." | $num_feeds |
".__('Stored articles')." | $stored_articles |
- | ".__('Login')." | -".__('Access Level')." | +".__('Login')." | +".__('Access Level')." | +".__('Subscribed feeds')." | ".__('Registered')." | ".__('Last login')." | " . $line["login"] . " | "; + print "" . $line["login"] . " | "; if (!$line["email"]) $line["email"] = " "; print "" . $access_level_names[$line["access_level"]] . " | "; + print "" . $line["num_feeds"] . " | "; print "" . $line["created"] . " | "; print "" . $line["last_login"] . " | "; @@ -434,15 +442,12 @@ class Pref_Users extends Handler_Protected { print "
"; + if ($lnum == 0) { if (!$user_search) { print_warning(__('No users defined.')); } else { print_warning(__('No matching users found.')); } - print "
"; - } print "