mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update sessions.php
This commit is contained in:
parent
338e01bf64
commit
c3ec2053dd
@ -508,6 +508,18 @@ class user_common
|
||||
{
|
||||
bb_setcookie(COOKIE_DBG, 1, COOKIE_SESSION);
|
||||
}
|
||||
|
||||
// Unset sql debug cookies
|
||||
if (!SQL_DEBUG || !DBG_USER)
|
||||
{
|
||||
foreach (array('explain', 'sql_log', 'sql_log_full') as $cookie)
|
||||
{
|
||||
if (isset($_COOKIE[$cookie]))
|
||||
{
|
||||
bb_setcookie($cookie, '', COOKIE_EXPIRED);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user