음성 캡차 파일 삭제 코드 수정
This commit is contained in:
@ -51,9 +51,12 @@ if($config['cf_leave_day'] > 0) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 음성 캡챠 파일 삭제
|
// 음성 캡챠 파일 삭제
|
||||||
foreach (glob(G5_PATH.'/data/cache/kcaptcha-*.mp3') as $file) {
|
$captcha_mp3 = glob(G5_PATH.'/data/cache/kcaptcha-*.mp3');
|
||||||
if (filemtime($file) + 86400 < G5_SERVER_TIME) {
|
if($captcha_mp3 && is_array($captcha_mp3)) {
|
||||||
@unlink($file);
|
foreach ($captcha_mp3 as $file) {
|
||||||
|
if (filemtime($file) + 86400 < G5_SERVER_TIME) {
|
||||||
|
@unlink($file);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user