mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 10:56:26 +00:00
Empty commit
This commit is contained in:
parent
9b3191d0e7
commit
fb327c7dda
@ -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)<time()) {
|
||||
if ($UserID && $PassHash==make_hash($_POST['password'],$Secret)) {
|
||||
if ($Enabled == 1) {
|
||||
@ -248,19 +248,13 @@ function log_attempt($UserID) {
|
||||
setcookie('session', $Cookie,0,'/','',false);
|
||||
}
|
||||
|
||||
if(is_array($LoggedUser['CustomPermissions'])) {
|
||||
$CustomPerms = $LoggedUser['CustomPermissions'];
|
||||
} else {
|
||||
$CustomPerms = array();
|
||||
}
|
||||
|
||||
//TODO: another tracker might enable this for donors, I think it's too stupid to bother adding that
|
||||
// Because we <3 our staff
|
||||
$Permissions = get_permissions($PermissionID);
|
||||
$CustomPermissions = unserialize($CustomPermissions);
|
||||
if (
|
||||
isset($Permissions['Permissions']['site_disable_ip_history']) ||
|
||||
isset($CustomPermissions['Permissions']['site_disable_ip_history'])
|
||||
isset($CustomPermissions['site_disable_ip_history'])
|
||||
) { $_SERVER['REMOTE_ADDR'] = '127.0.0.1'; }
|
||||
|
||||
|
||||
|
@ -408,6 +408,26 @@ function check_paranoia_here($Setting) {
|
||||
?></li>
|
||||
<?
|
||||
}
|
||||
|
||||
if (!isset($SupportFor)) {
|
||||
$DB->query("SELECT SupportFor FROM users_info WHERE UserID = ".$LoggedUser['ID']);
|
||||
list($SupportFor) = $DB->next_record();
|
||||
}
|
||||
if (check_perms('users_mod') || $OwnProfile || !empty($SupportFor)) {
|
||||
?>
|
||||
<li>Clients: <?
|
||||
$DB->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;
|
||||
?></li>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user