그누보드 5.0.23 수정 내역 적용

This commit is contained in:
chicpro
2014-12-02 10:16:35 +09:00
parent 7dc293a147
commit 7ea9d2e1d2
26 changed files with 186 additions and 79 deletions

View File

@ -26,11 +26,11 @@ function make_mp3()
file_put_contents(G5_PATH.'/'.$mp3_file, $contents);
// 지난 캡챠 파일 삭제 (100번중에 한번만 실행)
// 지난 캡챠 파일 삭제
if (rand(0,99) == 0) {
foreach (glob(G5_PATH.'/data/cache/kcaptcha-*.mp3') as $file) {
if (filemtime($file) + 86400 < G5_SERVER_TIME) {
unset($file);
@unlink($file);
}
}
}