mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Timberrrrrrrr ... added new cron service to tidy expired persistent login keys.
git-svn-id: file:///svn/phpbb/trunk@5171 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
6f255e596e
commit
4775b818c6
1 changed files with 10 additions and 0 deletions
|
@ -60,6 +60,16 @@ switch ($cron_type)
|
|||
tidy_database();
|
||||
}
|
||||
break;
|
||||
|
||||
case 'tidy_login_keys':
|
||||
if ($use_shutdown_function)
|
||||
{
|
||||
register_shutdown_function(array(&$user, 'tidy_login_keys');
|
||||
}
|
||||
else
|
||||
{
|
||||
$user->tidy_login_keys();
|
||||
}
|
||||
}
|
||||
|
||||
// Output transparent gif
|
||||
|
|
Loading…
Add table
Reference in a new issue