X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=classes%2Fpref%2Fusers.php;h=ad48e7a722a4b5be521a544da2b3fdf353859c25;hb=57932e183745bada9c6183056597cb5276f68d10;hp=bd2fff735346e624da8a2553132f1001d10fd1d5;hpb=a5680acbe86c0e01295f9f3a475f6ae0e7e1bdb0;p=tt-rss.git diff --git a/classes/pref/users.php b/classes/pref/users.php index bd2fff73..ad48e7a7 100644 --- a/classes/pref/users.php +++ b/classes/pref/users.php @@ -12,235 +12,241 @@ 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 = db_escape_string($this->link, $_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"] . " | "; @@ -440,26 +440,20 @@ 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 "