Skip to content

Commit

Permalink
보고된 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
chicpro committed Jun 27, 2014
1 parent a949c32 commit 41aac91
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion adm/config_form.php
Expand Up @@ -492,7 +492,7 @@
<tr>
<th scope="row"><label for="cf_analytics">방문자분석 스크립트</label></th>
<td colspan="3">
<?php echo help('방문자분석 스크립트 코드를 입력합니다. 예) 구글 애널리스틱'); ?>
<?php echo help('방문자분석 스크립트 코드를 입력합니다. 예) 구글 애널리틱스'); ?>
<textarea name="cf_analytics" id="cf_analytics"><?php echo $config['cf_analytics']; ?></textarea>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion bbs/board.php
Expand Up @@ -127,7 +127,7 @@
;
} else {
// 글읽기 포인트가 설정되어 있다면
if ($board['bo_read_point'] && $member['mb_point'] + $board['bo_read_point'] < 0)
if ($config['cf_use_point'] && $board['bo_read_point'] && $member['mb_point'] + $board['bo_read_point'] < 0)
alert('보유하신 포인트('.number_format($member['mb_point']).')가 없거나 모자라서 글읽기('.number_format($board['bo_read_point']).')가 불가합니다.\\n\\n포인트를 모으신 후 다시 글읽기 해 주십시오.');

insert_point($member['mb_id'], $board['bo_read_point'], "{$board['bo_subject']} {$wr_id} 글읽기", $bo_table, $wr_id, '읽기');
Expand Down
2 changes: 1 addition & 1 deletion bbs/good.php
Expand Up @@ -90,7 +90,7 @@ function print_result($error, $count)

if (!$is_member)
{
$href = './login.php?$qstr&amp;url='.urlencode('./board.php?bo_table='.$bo_table.'&amp;wr_id='.$wr_id);
$href = './login.php?'.$qstr.'&amp;url='.urlencode('./board.php?bo_table='.$bo_table.'&amp;wr_id='.$wr_id);

alert('회원만 가능합니다.', $href);
}
Expand Down
15 changes: 14 additions & 1 deletion js/common.js
Expand Up @@ -132,7 +132,20 @@ function no_comma(data)
function del(href)
{
if(confirm("한번 삭제한 자료는 복구할 방법이 없습니다.\n\n정말 삭제하시겠습니까?")) {
document.location.href = encodeURI(href);
var iev = -1;
if (navigator.appName == 'Microsoft Internet Explorer') {
var ua = navigator.userAgent;
var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
if (re.exec(ua) != null)
iev = parseFloat(RegExp.$1);
}

// IE6 이하에서 한글깨짐 방지
if (iev != -1 && iev < 7) {
document.location.href = encodeURI(href);
} else {
document.location.href = href;
}
}
}

Expand Down

0 comments on commit 41aac91

Please sign in to comment.