Oppaitime's version of Gazelle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

expire_warnings.php 437B

123456789101112131415161718
  1. <?
  2. //------------- Remove expired warnings ---------------------------------//
  3. $DB->query("
  4. SELECT UserID
  5. FROM users_info
  6. WHERE Warned < '$sqltime'");
  7. while (list($UserID) = $DB->next_record()) {
  8. $Cache->begin_transaction("user_info_$UserID");
  9. $Cache->update_row(false, array('Warned' => NULL));
  10. $Cache->commit_transaction(2592000);
  11. }
  12. $DB->query("
  13. UPDATE users_info
  14. SET Warned IS NULL
  15. WHERE Warned < '$sqltime'");
  16. ?>