일반게시판 일부수정 및 현재접속자 스킨 작업

This commit is contained in:
whitedot
2012-12-04 14:18:27 +09:00
parent 467f83c4f1
commit b31111a2fa
9 changed files with 50 additions and 57 deletions

View File

@ -27,7 +27,7 @@ if ($sca || $stx)
if (!$spt) $spt = $min_spt;
$sql_search .= " and (wr_num between {$spt} and {($spt + $config[cf_search_part])}) ";
$sql_search .= " and (wr_num between {$spt} and ({$spt} + {$config[cf_search_part]})) ";
// 원글만 얻는다. (코멘트의 내용도 검색하기 위함)
$sql = " select distinct wr_parent from {$write_table} where {$sql_search} ";

View File

@ -87,8 +87,8 @@ else if (!$write[mb_id]) { // 회원이 쓴 글이 아니라면
// 최고, 그룹관리자라면 글 복사, 이동 가능
$copy_href = $move_href = '';
if ($write[wr_reply] == '' && ($is_admin == 'super' || $is_admin == 'group')) {
$copy_href = 'javascript:win_open('./move.php?sw=copy&bo_table=$bo_table&wr_id=$wr_id&page=$page".$qstr."', 'boardcopy', 'left=50, top=50, width=500, height=550, scrollbars=1');';
$move_href = 'javascript:win_open('./move.php?sw=move&bo_table=$bo_table&wr_id=$wr_id&page=$page".$qstr."', 'boardmove', 'left=50, top=50, width=500, height=550, scrollbars=1');';
$copy_href = 'javascript:win_open(\'./move.php?sw=copy&bo_table='.$bo_table.'&wr_id='.$wr_id.'&page='.$page.$qstr.'\', \'boardcopy\', \'left=50, top=50, width=500, height=550, scrollbars=1\');';
$move_href = 'javascript:win_open(\'./move.php?sw=move&bo_table='.$bo_table.'&wr_id='.$wr_id.'&page='.$page.$qstr.'\', \'boardmove\', \'left=50, top=50, width=500, height=550, scrollbars=1\');';
}
$scrap_href = '';

View File

@ -166,7 +166,7 @@ else if ($w == 'r')
if ($group[gr_use_access])
{
if (!$member[mb_id])
alert('접근 권한이 없습니다.'.PHP_EOL.PHP_EOL.'회원이시라면 로그인 후 이용해 보십시오.', 'login.php?'.$qstr.'&url='.urlencode($_SERVER[PHP_SELF]?bo_table=$bo_table));
alert('접근 권한이 없습니다.'.PHP_EOL.PHP_EOL.'회원이시라면 로그인 후 이용해 보십시오.', 'login.php?'.$qstr.'&url='.urlencode($_SERVER[PHP_SELF].'?bo_table='.$bo_table));
if ($is_admin == 'super' || $group[gr_admin] == $member[mb_id] || $board[bo_admin] == $member[mb_id])
; // 통과

View File

@ -416,7 +416,7 @@ else if ($w == 'u')
$sql = " update {$write_table}
set ca_name = '{$ca_name}',
wr_option = '{$html,$secret,$mail}',
wr_option = '{$html},{$secret},{$mail}',
wr_subject = '{$wr_subject}',
wr_content = '{$wr_content}',
wr_link1 = '{$wr_link1}',