mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
Чистка файла сессий
Удаление двух давно неиспользуемых функций + сопутствующее исправление в функции bb_die.
This commit is contained in:
parent
3829759103
commit
8224eadad7
2 changed files with 3 additions and 23 deletions
|
@ -1681,7 +1681,7 @@ function obtain_word_list (&$orig_word, &$replacement_word)
|
|||
|
||||
function bb_die ($msg_text)
|
||||
{
|
||||
global $ajax, $bb_cfg, $lang, $template, $theme, $userdata;
|
||||
global $ajax, $bb_cfg, $lang, $template, $theme, $user;
|
||||
|
||||
if (defined('IN_AJAX'))
|
||||
{
|
||||
|
@ -1703,9 +1703,9 @@ function bb_die ($msg_text)
|
|||
}
|
||||
|
||||
// If empty session
|
||||
if (empty($userdata))
|
||||
if (empty($user))
|
||||
{
|
||||
$userdata = session_pagestart();
|
||||
$user->session_start();
|
||||
}
|
||||
|
||||
// If the header hasn't been output then do it
|
||||
|
|
|
@ -829,24 +829,4 @@ function delete_user_sessions ($user_id)
|
|||
|
||||
$user_id = get_id_csv($user_id);
|
||||
DB()->query("DELETE FROM ". BB_SESSIONS ." WHERE session_user_id IN($user_id)");
|
||||
}
|
||||
|
||||
// deprecated
|
||||
function session_begin ($userdata, $page_id = 0, $enable_autologin = false, $auto_created = false)
|
||||
{
|
||||
global $user;
|
||||
|
||||
$user->session_create($userdata, $auto_created);
|
||||
|
||||
return $user->data;
|
||||
}
|
||||
|
||||
// deprecated
|
||||
function session_pagestart ($user_ip = USER_IP, $page_id = 0, $req_login = false)
|
||||
{
|
||||
global $user;
|
||||
|
||||
$user->session_start(array('req_login' => $req_login));
|
||||
|
||||
return $user->data;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue