From 4775b818c6bb13392e436ddecf3a68c2b9efb550 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Mon, 4 Jul 2005 11:53:57 +0000 Subject: Timberrrrrrrr ... added new cron service to tidy expired persistent login keys. git-svn-id: file:///svn/phpbb/trunk@5171 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/cron.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'phpBB/cron.php') 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 -- cgit v1.2.1