BioTorrents.de’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 369B

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