Changeset 1901 in ExiteCMS
- Timestamp:
- 10/22/08 18:11:03 (3 years ago)
- File:
-
- 1 edited
-
trunk/includes/theme_functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/theme_functions.php
r1855 r1901 460 460 // clean-up tasks, will be executed by all super-admins 461 461 // WANWIZARD - 20070716 - THIS NEEDS TO BE MOVED TO A CRON JOB !!! 462 $_db_logs[] = array(" <b>--- clean up code --- not included in the footer information --- needs to be moved to a cron process</b>", 0);462 $_db_logs[] = array("--- clean up code --- not included in the footer information --- needs to be moved to a cron process", 0); 463 463 if ($userdata['user_level'] >= 103) { 464 464 $minute = 60; $hour = $minute * 60; $day = $hour * 24; 465 465 // flood control: set to 5 minutes 466 466 $result = dbquery("DELETE LOW_PRIORITY FROM ".$db_prefix."flood_control WHERE flood_timestamp < '".(time() - $minute * 5)."'"); 467 // thread notifies: set to 14days468 $result = dbquery("DELETE LOW_PRIORITY FROM ".$db_prefix."thread_notify WHERE notify_datestamp < '".(time() - $day * 14)."'");469 // new registered users: set to 3days470 $result = dbquery("DELETE LOW_PRIORITY FROM ".$db_prefix."new_users WHERE user_datestamp < '".(time() - $day * 3)."'");467 // thread notifies: set to 90 days 468 $result = dbquery("DELETE LOW_PRIORITY FROM ".$db_prefix."thread_notify WHERE notify_datestamp < '".(time() - $day * 90)."'"); 469 // new registered users: set to 7 days 470 $result = dbquery("DELETE LOW_PRIORITY FROM ".$db_prefix."new_users WHERE user_datestamp < '".(time() - $day * 7)."'"); 471 471 // deactivate accounts with a bad email address after 90 days (available since v7.0 rev.1060) 472 472 if ($settings['revision'] >= 1060) {
Note: See TracChangeset
for help on using the changeset viewer.
