EngineGP/system/library/cron/users_recovery_signup.php

19 lines
397 B
PHP
Raw Normal View History

2023-03-04 23:45:46 +00:00
<?php
2023-11-11 20:56:12 +00:00
if(!DEFINED('EGP'))
exit(header('Refresh: 0; URL=http://'.$_SERVER['SERVER_NAME'].'/404'));
2023-03-04 23:45:46 +00:00
2023-11-11 20:56:12 +00:00
class users_recovery_signup extends cron
{
function __construct()
{
global $sql, $start_point;
2023-03-04 23:45:46 +00:00
2023-11-11 20:56:12 +00:00
$time = $start_point-86400;
2023-03-04 23:45:46 +00:00
2023-11-11 20:56:12 +00:00
$sql->query('DELETE FROM `signup` WHERE `date`<"'.$time.'"');
$sql->query('DELETE FROM `recovery` WHERE `date`<"'.$time.'"');
2023-05-05 01:17:19 +00:00
2023-11-11 20:56:12 +00:00
return NULL;
}
}
2023-03-04 23:45:46 +00:00
?>