한시간 이내에 생성, 접근된 캡챠는 삭제되지 않도록 수정

This commit is contained in:
whitedot
2013-04-04 19:01:36 +09:00
parent 5fce104a83
commit 31d4a89191

View File

@ -25,9 +25,9 @@ include_once('./admin.head.php');
$files = glob(G4_DATA_PATH.'/cache/gcaptcha-*');
if (is_array($files)) {
$before_time = date('ymdHis', G4_SERVER_TIME - 3600); // 한시간전
$before_time = G4_SERVER_TIME - 3600; // 한시간전
foreach ($files as $gcaptcha_file) {
$access_time = date('ymdHis', fileatime($gcaptcha_file)); // 파일접근시간
$access_time = fileatime($gcaptcha_file); // 파일접근시간
if ($access_time > $before_time) continue;