mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-04-25 07:57:01 -05:00
Fix bugs/crashes in ntbb-session
This commit is contained in:
parent
82e7a917ab
commit
9ea444aeea
|
|
@ -30,7 +30,7 @@ class GlickoPlayer {
|
|||
private $RDmax = 130.0;
|
||||
private $RDmin = 25.0;
|
||||
private $c;
|
||||
private $q = 0.00575646273 ;
|
||||
private $q = 0.00575646273;
|
||||
|
||||
var $M = array();
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ class NTBBSession {
|
|||
var $sid = '';
|
||||
var $session = 0;
|
||||
|
||||
function NTBBSession() {
|
||||
function __construct() {
|
||||
global $psdb, $curuser;
|
||||
$ctime = time();
|
||||
$curuser = $this->getGuest();
|
||||
|
|
@ -425,7 +425,7 @@ class NTBBSession {
|
|||
if (($user['userid'] === $userid) && !empty($user['loggedin'])) {
|
||||
// already logged in
|
||||
$usertype = '2';
|
||||
if (in_array($userid, $psconfig->sysops, true)) {
|
||||
if (in_array($userid, $psconfig['sysops'], true)) {
|
||||
$usertype = '3';
|
||||
} else {
|
||||
// check autoconfirmed
|
||||
|
|
@ -519,7 +519,7 @@ class NTBBSession {
|
|||
}
|
||||
|
||||
if (function_exists('psconfig_validate_assertion')) {
|
||||
psconfig_validate_assertion($data, $serverhostname);
|
||||
psconfig_validate_assertion($data, $serverhostname, $user);
|
||||
}
|
||||
|
||||
$sig = '';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user