From fb327c7ddae4fb8f423b9e52ca1f3a3e25386c0e Mon Sep 17 00:00:00 2001 From: Git Date: Wed, 19 Oct 2011 08:00:13 +0000 Subject: [PATCH] Empty commit --- sections/login/index.php | 10 ++-------- sections/user/user.php | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+), 8 deletions(-) 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; + ?>
  • +