diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2005-07-04 11:53:57 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2005-07-04 11:53:57 +0000 |
commit | 4775b818c6bb13392e436ddecf3a68c2b9efb550 (patch) | |
tree | 5d838545156ff215cf2c3c8b8c2c3fe88339d982 /phpBB | |
parent | 6f255e596edd95a9eb644ea0e9dc7c05b524db25 (diff) | |
download | forums-4775b818c6bb13392e436ddecf3a68c2b9efb550.tar forums-4775b818c6bb13392e436ddecf3a68c2b9efb550.tar.gz forums-4775b818c6bb13392e436ddecf3a68c2b9efb550.tar.bz2 forums-4775b818c6bb13392e436ddecf3a68c2b9efb550.tar.xz forums-4775b818c6bb13392e436ddecf3a68c2b9efb550.zip |
Timberrrrrrrr ... added new cron service to tidy expired persistent login keys.
git-svn-id: file:///svn/phpbb/trunk@5171 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/cron.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/cron.php b/phpBB/cron.php index 3ca76d79ba..74b022697c 100644 --- a/phpBB/cron.php +++ b/phpBB/cron.php @@ -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 |