그누보드 5.0.26 수정내역 적용

This commit is contained in:
chicpro
2015-01-05 10:18:00 +09:00
parent d5db75a4c9
commit 489c859d3e
4 changed files with 20 additions and 11 deletions

View File

@ -51,9 +51,12 @@ if($config['cf_leave_day'] > 0) {
}
// 음성 캡챠 파일 삭제
foreach (glob(G5_PATH.'/data/cache/kcaptcha-*.mp3') as $file) {
if (filemtime($file) + 86400 < G5_SERVER_TIME) {
@unlink($file);
$captcha_mp3 = glob(G5_PATH.'/data/cache/kcaptcha-*.mp3');
if($captcha_mp3 && is_array($captcha_mp3)) {
foreach ($captcha_mp3 as $file) {
if (filemtime($file) + 86400 < G5_SERVER_TIME) {
@unlink($file);
}
}
}