Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/modules/main/classes/general/ |
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/modules/main/classes/general/captchaagent.php |
<?php class CCaptchaAgent { public static function DeleteOldCaptcha($sec = 3600) { global $DB; $sec = intval($sec); $time = $DB->CharToDateFunction(GetTime(time()-$sec,"FULL")); if (!$DB->Query("DELETE FROM b_captcha WHERE DATE_CREATE <= ".$time)) return false; return "CCaptchaAgent::DeleteOldCaptcha(".$sec.");"; } }