Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* $Id: class_session.php 2164 2006-08-30 06:17:49Z chris $
| * $Id: class_session.php 2411 2006-11-13 23:29:12Z CraKteR $
|
*/
class session
| */
class session
|
Zeile 105 | Zeile 105 |
---|
}
// As a token of our appreciation for getting this far, give the user a cookie
|
}
// As a token of our appreciation for getting this far, give the user a cookie
|
my_setcookie("sid", $this->sid, -1);
| my_setcookie("sid", $this->sid, -1, true);
|
}
/**
| }
/**
|
Zeile 273 | Zeile 273 |
---|
}
// Check if this user is currently banned and if we have to lift it.
|
}
// Check if this user is currently banned and if we have to lift it.
|
if($mybb->user['bandate'] && $mybb->user['banlifted'] && $mybb->user['banlifted'] < $time) // hmmm...bad user... how did you get banned =/
| if(!empty($mybb->user['bandate']) && (isset($mybb->user['banlifted']) && !empty($mybb->user['banlifted'])) && $mybb->user['banlifted'] < $time) // hmmm...bad user... how did you get banned =/
|
{ // must have been good.. bans up :D $db->shutdown_query("UPDATE ".TABLE_PREFIX."users SET usergroup='".$mybb->user['banoldgroup']."' WHERE uid='".$mybb->user['uid']."'"); $db->shutdown_query("DELETE FROM ".TABLE_PREFIX."banned WHERE uid='".$mybb->user['uid']."'"); // we better do this..otherwise they have dodgy permissions
|
{ // must have been good.. bans up :D $db->shutdown_query("UPDATE ".TABLE_PREFIX."users SET usergroup='".$mybb->user['banoldgroup']."' WHERE uid='".$mybb->user['uid']."'"); $db->shutdown_query("DELETE FROM ".TABLE_PREFIX."banned WHERE uid='".$mybb->user['uid']."'"); // we better do this..otherwise they have dodgy permissions
|
$query = $db->simple_select(TABLE_PREFIX."usergroups", "*", "gid='".$mybb->user['banoldgroup']."'", array('limit' => 1));
| $query = $db->simple_select(TABLE_PREFIX."usergroups", "usergroup", "gid='".$mybb->user['banoldgroup']."'", array('limit' => 1));
|
$group = $db->fetch_array($query); $mybb->user['usergroup'] = $group['usergroup'];
|
$group = $db->fetch_array($query); $mybb->user['usergroup'] = $group['usergroup'];
|
| $mybbgroups = $mybb->user['usergroup'];
|
}
|
}
|
// Gather a full permission set for this user and the groups they are in. $mybbgroups = $mybb->user['usergroup'].",".$mybb->user['additionalgroups'];
| else if(!empty($mybb->user['bandate']) && (empty($mybb->user['banlifted']) || !empty($mybb->user['banlifted']) && $mybb->user['banlifted'] > $time)) { $mybbgroups = $mybb->user['usergroup']; } else { // Gather a full permission set for this user and the groups they are in. $mybbgroups = $mybb->user['usergroup'].",".$mybb->user['additionalgroups']; }
|
$mybb->usergroup = usergroup_permissions($mybbgroups); if(!$mybb->user['displaygroup']) {
| $mybb->usergroup = usergroup_permissions($mybbgroups); if(!$mybb->user['displaygroup']) {
|
Zeile 515 | Zeile 523 |
---|
return $array; } }
|
return $array; } }
|
| ?>
|