mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Updated
This commit is contained in:
parent
ea22a171d5
commit
6137758f55
@ -82,7 +82,7 @@ define('FULL_URL', $server_protocol . $bb_cfg['server_name'] . $server_port . $b
|
||||
unset($server_protocol, $server_port);
|
||||
|
||||
// Debug options
|
||||
define('DBG_USER', !empty($_COOKIE[COOKIE_DBG]) && $_COOKIE[COOKIE_DBG] == 1);
|
||||
define('DBG_USER', !empty($_COOKIE[COOKIE_DBG]) && $_COOKIE[COOKIE_DBG] === md5(md5(COOKIE_DBG)));
|
||||
|
||||
// Board/Tracker shared constants and functions
|
||||
define('BB_BT_TORRENTS', 'bb_bt_torrents');
|
||||
|
@ -506,7 +506,7 @@ class user_common
|
||||
}
|
||||
if (isset($bb_cfg['dbg_users'][$this->data['user_id']]) && !DBG_USER)
|
||||
{
|
||||
bb_setcookie(COOKIE_DBG, 1, COOKIE_SESSION);
|
||||
bb_setcookie(COOKIE_DBG, md5(md5(COOKIE_DBG)), COOKIE_SESSION);
|
||||
}
|
||||
|
||||
// Unset debug cookie if user not in dbg_users array
|
||||
|
Loading…
Reference in New Issue
Block a user