mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
misc: Minor improvements (#1875)
* misc: Minor improvements * Update activate.php * Update admin_ug_auth.php * Update admin_ug_auth.php * Update register.php * Update index.php * Update admin_ug_auth.php
This commit is contained in:
parent
36ff584e69
commit
41a78ddbcb
5 changed files with 10 additions and 10 deletions
|
@ -11,7 +11,7 @@ if (!defined('BB_ROOT')) {
|
|||
die(basename(__FILE__));
|
||||
}
|
||||
|
||||
if (empty($_GET['u']) || empty($_GET['act_key'])) {
|
||||
if (empty($_GET[POST_USERS_URL]) || empty($_GET['act_key'])) {
|
||||
bb_die('Bad request');
|
||||
}
|
||||
|
||||
|
|
|
@ -122,8 +122,8 @@ switch ($mode) {
|
|||
];
|
||||
|
||||
// Select a profile: your own for the user, any for the admin
|
||||
if (IS_ADMIN && !empty($_REQUEST['u'])) {
|
||||
$pr_user_id = (int)$_REQUEST['u'];
|
||||
if (IS_ADMIN && !empty($_REQUEST[POST_USERS_URL])) {
|
||||
$pr_user_id = (int)$_REQUEST[POST_USERS_URL];
|
||||
$adm_edit = ($pr_user_id != $userdata['user_id']);
|
||||
} else {
|
||||
$pr_user_id = $userdata['user_id'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue