AND lastSearchTime < ?";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(array(
- floor($row['searches'] / 4),
- (TIME_NOW - 86400 * 30)
+ floor($row['searches'] / 4),
+ (TIME_NOW - 86400 * 30)
));
}
WHERE time < ?";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(array(
- (TIME_NOW - 86400 * USER_CLEANUP_NOTIFICATION_LIFETIME)
+ (TIME_NOW - 86400 * USER_CLEANUP_NOTIFICATION_LIFETIME)
));
// clean up user activity events
WHERE time < ?";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(array(
- (TIME_NOW - 86400 * USER_CLEANUP_ACTIVITY_EVENT_LIFETIME)
+ (TIME_NOW - 86400 * USER_CLEANUP_ACTIVITY_EVENT_LIFETIME)
));
// clean up profile visitors
WHERE time < ?";
$statement = WCF::getDB()->prepareStatement($sql);
$statement->execute(array(
- (TIME_NOW - 86400 * USER_CLEANUP_PROFILE_VISITOR_LIFETIME)
+ (TIME_NOW - 86400 * USER_CLEANUP_PROFILE_VISITOR_LIFETIME)
));
// tracked visits
// delete data
$statement1->execute(array(
- $objectType->objectTypeID,
- $lifetime
+ $objectType->objectTypeID,
+ $lifetime
));
$statement2->execute(array(
- $objectType->objectTypeID,
- $lifetime
+ $objectType->objectTypeID,
+ $lifetime
));
}