| Current Path : /var/www/element/data/www/revenuestory.ru/bitrix/modules/main/classes/general/ |
| Current File : /var/www/element/data/www/revenuestory.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.");";
}
}