Changeset 8685 for trunk/periodic
- Timestamp:
- 01/21/09 02:19:54 (3 years ago)
- File:
-
- 1 edited
-
trunk/periodic/cmd.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/periodic/cmd.php
r8652 r8685 58 58 if ( $db_clean_profiles > 0) 59 59 { 60 $res = db_res("SELECT ID FROM Profiles WHERE (TO_DAYS(NOW()) - TO_DAYS(DateLastLogin)) > $db_clean_profiles");60 $res = db_res("SELECT `ID` FROM Profiles WHERE (TO_DAYS(NOW()) - TO_DAYS(`DateLastLogin`)) > $db_clean_profiles"); 61 61 if ( $res ) 62 62 { … … 72 72 if ( $db_clean_vkiss > 0 ) 73 73 { 74 $res = db_res("DELETE FROM Greetings WHERE (TO_DAYS(NOW()) - TO_DAYS(Arrived)) > $db_clean_vkiss");74 $res = db_res("DELETE FROM `Greetings` WHERE (TO_DAYS(NOW()) - TO_DAYS(`When`)) > $db_clean_vkiss"); 75 75 if ( $res ) 76 76 $db_clean_vkiss_num = mysql_affected_rows(); … … 79 79 if ( $db_clean_msg > 0 ) 80 80 { 81 $res = db_res("DELETE FROM MessagesWHERE (TO_DAYS(NOW()) - TO_DAYS(`Date`)) > $db_clean_msg");81 $res = db_res("DELETE FROM `Messages` WHERE (TO_DAYS(NOW()) - TO_DAYS(`Date`)) > $db_clean_msg"); 82 82 if ( $res ) 83 83 $db_clean_msg_num = mysql_affected_rows(); … … 86 86 if ( $db_clean_views > 0 ) 87 87 { 88 $res = db_res("DELETE FROM ProfilesTrack WHERE (TO_DAYS(NOW())-TO_DAYS(`Arrived`)) > $db_clean_views");88 $res = db_res("DELETE FROM `ProfilesTrack` WHERE (TO_DAYS(NOW())-TO_DAYS(`When`)) > $db_clean_views"); 89 89 if ( $res ) 90 90 $db_clean_views_num = mysql_affected_rows();
Note: See TracChangeset
for help on using the changeset viewer.