Changeset 1901 in ExiteCMS


Ignore:
Timestamp:
10/22/08 18:11:03 (3 years ago)
Author:
hverton
Message:

set thread notify expiration to 90 days
set new user authorisation timeout to 7 days

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/theme_functions.php

    r1855 r1901  
    460460    // clean-up tasks, will be executed by all super-admins 
    461461    // 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); 
    463463    if ($userdata['user_level'] >= 103) { 
    464464        $minute = 60; $hour = $minute * 60; $day = $hour * 24; 
    465465        // flood control: set to 5 minutes 
    466466        $result = dbquery("DELETE LOW_PRIORITY FROM ".$db_prefix."flood_control WHERE flood_timestamp < '".(time() - $minute * 5)."'"); 
    467         // thread notifies: set to 14 days 
    468         $result = dbquery("DELETE LOW_PRIORITY FROM ".$db_prefix."thread_notify WHERE notify_datestamp < '".(time() - $day * 14)."'"); 
    469         // new registered users: set to 3 days 
    470         $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)."'"); 
    471471        // deactivate accounts with a bad email address after 90 days (available since v7.0 rev.1060) 
    472472        if ($settings['revision'] >= 1060) { 
Note: See TracChangeset for help on using the changeset viewer.