diff --git a/sections/login/index.php b/sections/login/index.php index 0f8703e0..594d5694 100644 --- a/sections/login/index.php +++ b/sections/login/index.php @@ -233,7 +233,7 @@ function log_attempt($UserID) { Enabled FROM users_main WHERE Username='".db_string($_POST['username'])."' AND Username<>''"); - list($UserID,$PermissionID,$CustomPermissions,$PassHash,$Secret,$Enabled)=$DB->next_record(); + list($UserID,$PermissionID,$CustomPermissions,$PassHash,$Secret,$Enabled)=$DB->next_record(MYSQLI_NUM, array(2)); if (strtotime($BannedUntil) query("SELECT SupportFor FROM users_info WHERE UserID = ".$LoggedUser['ID']); + list($SupportFor) = $DB->next_record(); +} +if (check_perms('users_mod') || $OwnProfile || !empty($SupportFor)) { + ?> +
  • Clients: query("SELECT DISTINCT useragent FROM xbt_files_users WHERE uid = ".$UserID); + while(list($Client) = $DB->next_record()) { + if (strlen($Clients) > 0) { + $Clients .= "; ".$Client; + } else { + $Clients = $Client; + } + } + echo $Clients; + ?>
  • +