Changeset 1060 in ExiteCMS for trunk/includes/theme_functions.php
- Timestamp:
- 11/05/07 21:36:09 (5 years ago)
- File:
-
- 1 edited
-
trunk/includes/theme_functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/theme_functions.php
r954 r1060 415 415 $result = dbquery("DELETE FROM ".$db_prefix."new_users WHERE user_datestamp < '".(time() - $day * 3)."'"); 416 416 // unread posts indicators: set to 30 days 417 $result = dbquery("DELETE FROM ".$db_prefix."posts_unread WHERE post_time < ".(time() - $day * 30), false); 417 $result = dbquery("DELETE FROM ".$db_prefix."posts_unread WHERE post_time < '".(time() - $day * 30)."'", false); 418 // deactivate accounts with a bad email address after 90 days 419 $result = dbquery("UPDATE ".$db_prefix."users SET user_status = 1, user_ban_reason = '', user_ban_expire = '".time()."' WHERE user_bad_email > 0 AND user_bad_email < '".(time() - $day * 90)."'"); 418 420 } 419 421 … … 428 430 429 431 echo "</body>\n</html>\n"; 432 433 // store the current URL in a cookie. We might need to redirect to it later 434 setcookie('last_url', FUSION_REQUEST, 0, '/'); 430 435 431 436 // and flush any output remaining
Note: See TracChangeset
for help on using the changeset viewer.
