캡챠파일의 삭제를 접근시간이 아닌 수정된 시간으로 변경

This commit is contained in:
gnuboard
2013-04-08 16:29:31 +09:00
parent 194e2926ae
commit 4748e6d4b7

View File

@ -27,9 +27,9 @@ include_once('./admin.head.php');
if (is_array($files)) {
$before_time = G4_SERVER_TIME - 3600; // 한시간전
foreach ($files as $gcaptcha_file) {
$access_time = fileatime($gcaptcha_file); // 파일접근시간
$modification_time = filemtime($gcaptcha_file); // 파일접근시간
if ($access_time > $before_time) continue;
if ($modification_time > $before_time) continue;
$cnt++;
unlink($gcaptcha_file);