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
a0899560fe
commit
c6ea3769a6
@ -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] === md5(md5(COOKIE_DBG)));
|
||||
define('DBG_USER', $_COOKIE[COOKIE_DBG] === md5(FULL_URL));
|
||||
|
||||
// Board/Tracker shared constants and functions
|
||||
define('BB_BT_TORRENTS', 'bb_bt_torrents');
|
||||
|
@ -509,7 +509,7 @@ class user_common
|
||||
elseif (isset($bb_cfg['dbg_users'][$this->data['user_id']]) && !DBG_USER)
|
||||
{
|
||||
// Set debug cookie if user in dbg_users array
|
||||
bb_setcookie(COOKIE_DBG, md5(md5(COOKIE_DBG)), COOKIE_SESSION); // Making DBG_USER as true
|
||||
bb_setcookie(COOKIE_DBG, md5(FULL_URL), COOKIE_SESSION); // Making DBG_USER as true
|
||||
}
|
||||
|
||||
// Unset sql debug cookies if SQL_DEBUG is disabled or DBG_USER cookie not present
|
||||
|
Loading…
Reference in New Issue
Block a user