그누보드 5.0.26 수정내역 적용
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) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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}
|
||||
|
||||
@ -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 <<<HEREDOC
|
||||
<script>
|
||||
alert('회원만 접근 가능합니다.');
|
||||
opener.location.href = '$href';
|
||||
opener.location.href = '$href2';
|
||||
window.close();
|
||||
</script>
|
||||
<noscript>
|
||||
|
||||
Reference in New Issue
Block a user