1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
captchaagent.php
См. документацию.
1
<?php
2
3
class
CCaptchaAgent
4
{
5
public
static
function
DeleteOldCaptcha
($sec = 3600)
6
{
7
global
$DB
;
8
9
$sec = intval($sec);
10
11
$time
=
$DB
->CharToDateFunction(
GetTime
(time()-$sec,
"FULL"
));
12
if
(!
$DB
->Query(
"DELETE FROM b_captcha WHERE DATE_CREATE <= "
.$time))
13
return
false
;
14
15
return
"CCaptchaAgent::DeleteOldCaptcha("
.$sec.
");"
;
16
}
17
}
CCaptchaAgent
Определения
captchaagent.php:4
CCaptchaAgent\DeleteOldCaptcha
static DeleteOldCaptcha($sec=3600)
Определения
captchaagent.php:5
$DB
global $DB
Определения
cron_frame.php:29
GetTime
GetTime($timestamp, $type="SHORT", $site=false, $bSearchInSitesOnly=false)
Определения
tools.php:1890
$time
$time
Определения
payment.php:61
bitrix
modules
main
classes
general
captchaagent.php
Создано системой
1.14.0