diff --git a/bbs/db_table.optimize.php b/bbs/db_table.optimize.php index 3d0c38c3a..1c03d5ad3 100644 --- a/bbs/db_table.optimize.php +++ b/bbs/db_table.optimize.php @@ -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); + } } } diff --git a/bbs/register_form_update.php b/bbs/register_form_update.php index 3ebe813bb..560da76b2 100644 --- a/bbs/register_form_update.php +++ b/bbs/register_form_update.php @@ -277,10 +277,6 @@ if ($w == '') { if ($mb_password) $sql_password = " , mb_password = '".sql_password($mb_password)."' "; - $sql_icon = ""; - if ($mb_icon) - $sql_icon = " , mb_icon = '{$mb_icon}' "; - $sql_nick_date = ""; if ($mb_nick_default != $mb_nick) $sql_nick_date = " , mb_nick_date = '".G5_TIME_YMD."' "; @@ -321,7 +317,6 @@ if ($w == '') { mb_9 = '{$mb_9}', mb_10 = '{$mb_10}' {$sql_password} - {$sql_icon} {$sql_nick_date} {$sql_open_date} {$sql_email_certify} diff --git a/bbs/scrap_popin.php b/bbs/scrap_popin.php index a02ec4677..8bb818612 100644 --- a/bbs/scrap_popin.php +++ b/bbs/scrap_popin.php @@ -5,10 +5,11 @@ include_once(G5_PATH.'/head.sub.php'); if ($is_guest) { $href = './login.php?'.$qstr.'&url='.urlencode('./board.php?bo_table='.$bo_table.'&wr_id='.$wr_id); + $href2 = str_replace('&', '&', $href); echo << alert('회원만 접근 가능합니다.'); - opener.location.href = '$href'; + opener.location.href = '$href2'; window.close();