일반게시판 일부수정 및 현재접속자 스킨 작업
This commit is contained in:
@ -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} ";
|
||||
|
||||
@ -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 = '';
|
||||
|
||||
@ -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])
|
||||
; // 통과
|
||||
|
||||
@ -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}',
|
||||
|
||||
13
head.php
13
head.php
@ -16,14 +16,19 @@ if ($config['cf_title'] == $g4['title']) $g4['title'] = '';
|
||||
<p style="text-align:center">작업 중입니다. 일부 기능은 정상적으로 동작하지 않을 수 있습니다.</p>
|
||||
|
||||
<header>
|
||||
<h1><?=$g4['title']?> <?=$config['cf_title']?></h1>
|
||||
<div id="to_content"><a href="#wrapper">본문 바로가기</a></div>
|
||||
<h1><?=$g4['title']?> <?=$config['cf_title']?></h1>
|
||||
<div id="logo"><a href="<?=$g4['path']?>/">처음으로</a></div>
|
||||
|
||||
<ul>
|
||||
<li><a href="<?=$g4['path']?>/bbs/login.php">로그인</a></li>
|
||||
<li><a href="<?=$g4['path']?>/bbs/register.php">회원가입</a></li>
|
||||
<li><a href="<?=$g4['path']?>/bbs/new.php">최근게시물</a></li>
|
||||
<? if ($member['mb_id']) { ?>
|
||||
<li><a href="<?=$g4['bbs_path']?>/logout.php">로그아웃</a></li>
|
||||
<li><a href="<?=$g4['bbs_path']?>/member_confirm.php?url=register_form.php">정보수정</a></li>
|
||||
<? } else { ?>
|
||||
<li><a href="<?=$g4['bbs_path']?>/login.php">로그인</a></li>
|
||||
<li><a href="<?=$g4['bbs_path']?>/register.php">회원가입</a></li>
|
||||
<? } ?>
|
||||
<li><a href="<?=$g4['bbs_path']?>/new.php">최근게시물</a></li>
|
||||
</ul>
|
||||
|
||||
<form name="fsearchbox" method="get" onsubmit="return fsearchbox_submit(this);">
|
||||
|
||||
@ -109,7 +109,7 @@ ob_end_flush();
|
||||
}
|
||||
}
|
||||
?>
|
||||
<ul>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
|
||||
@ -31,7 +31,7 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
|
||||
<article>
|
||||
<header>
|
||||
<h1><?=$list[$i]['name']?>님의 댓글</h1>
|
||||
<a name="c_<?=$comment_id?>"></a>
|
||||
<a id="c_<?=$comment_id?>"></a>
|
||||
<dl>
|
||||
<dt>아이피</dt>
|
||||
<dd><? if ($is_ip_view) { echo $list[$i]['ip'];} ?></dd>
|
||||
@ -78,8 +78,8 @@ var char_max = parseInt(<?=$comment_max?>); // 최대
|
||||
<? if ($is_guest) { ?>
|
||||
<label for="wr_name">이름</label> <input type="text" id="wr_name" name="wr_name" maxLength="20" size="10" required>
|
||||
<label for="wr_password">패스워드</label> <input type="password" id="wr_password" name="wr_password" maxLength="20" size="10" required>
|
||||
<img id="kcaptcha_image" />
|
||||
<input type="input" name="wr_key" title="왼쪽의 글자를 입력하세요." size="10" required>
|
||||
<img id="kcaptcha_image" alt="" />
|
||||
<input type="text" name="wr_key" title="왼쪽의 글자를 입력하세요." size="10" required>
|
||||
<? } ?>
|
||||
<input type="checkbox" id="wr_secret" name="wr_secret" value="secret">비밀글
|
||||
<? if ($comment_min || $comment_max) { ?><span id="char_count"></span>글자<?}?>
|
||||
|
||||
@ -110,7 +110,7 @@ if ($option) {
|
||||
<tr>
|
||||
<th scope="row"><label for="wr_content">내용</label></th>
|
||||
<td>
|
||||
<textarea id="wr_content" id="wr_content" name="wr_content" required <? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?></textarea>
|
||||
<textarea id="wr_content" name="wr_content" required <? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?></textarea>
|
||||
<? if ($write_min || $write_max) { ?><span id="char_count"></span>글자<?}?>
|
||||
<? if ($write_min || $write_max) { ?><script> check_byte('wr_content', 'char_count'); </script><?}?>
|
||||
</td>
|
||||
@ -129,7 +129,7 @@ if ($option) {
|
||||
<tr>
|
||||
<th scope="row"><label for="">파일첨부</label></th>
|
||||
<td>
|
||||
<table id="variableFiles" cellpadding=0 cellspacing=0></table><?// print_r2($file); ?>
|
||||
<table id="variableFiles"></table><?// print_r2($file); ?>
|
||||
<script>
|
||||
var flen = 0;
|
||||
function add_file(delete_code)
|
||||
@ -205,13 +205,13 @@ if ($option) {
|
||||
</table>
|
||||
|
||||
<? if ($is_guest) { ?>
|
||||
<div id="captcha">
|
||||
<fieldset id="captcha">
|
||||
<legend>자동등록방지</legend>
|
||||
<div><img id='kcaptcha_image' /></div>
|
||||
<div><img id="kcaptcha_image" alt="" /></div>
|
||||
<label for="wr_key">자동등록방지</label>
|
||||
<input type="input" id="wr_key" name="wr_key" required>
|
||||
<input type="text" id="wr_key" name="wr_key" required>
|
||||
왼쪽의 글자를 입력하세요.
|
||||
</div>
|
||||
</fieldset>
|
||||
<? } ?>
|
||||
|
||||
<div class="btn_confirm">
|
||||
|
||||
@ -2,49 +2,37 @@
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<style>
|
||||
.n_title1 { font-family:돋움; font-size:9pt; color:#FFFFFF; }
|
||||
.n_title2 { font-family:돋움; font-size:9pt; color:#5E5E5E; }
|
||||
</style>
|
||||
2
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<table>
|
||||
<caption>현재접속자 목록</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td width="4" height="33" bgcolor="#7BB2D6"><img src="<?=$connect_skin_path?>/img/list_top_01.gif" width="4" height="33"></td>
|
||||
<td width="60" align="center" bgcolor="#7BB2D6"><font class=n_title1><strong>번호</strong></font></td>
|
||||
<td width="5" align="center" valign="middle" bgcolor="#7BB2D6"><img src="<?=$connect_skin_path?>/img/list_top_02.gif" width="5" height="33"></td>
|
||||
<td width="5" align="center" valign="middle" bgcolor="#EEEEEE"><img src="<?=$connect_skin_path?>/img/list_top_03.gif" width="5" height="33"></td>
|
||||
<td width="" align="center" bgcolor="#EEEEEE"><font class=n_title2><strong>이름</strong></font></td>
|
||||
<td width="500" align="center" bgcolor="#EEEEEE"><font class=n_title2><strong>링크</strong></font></td>
|
||||
<td width="4" bgcolor="#EEEEEE"><img src="<?=$connect_skin_path?>/img/list_top_04.gif" width="4" height="33"></td>
|
||||
<td>번호</td>
|
||||
<td>이름</td>
|
||||
<td>링크</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
for ($i=0; $i<count($list); $i++)
|
||||
{
|
||||
echo <<<HEREDOC
|
||||
<tr>
|
||||
<td colspan=3 align='center' height='30'>{$list[$i]['num']}</td>
|
||||
<td colspan=2 align='center'>{$list[$i]['name']}</td>
|
||||
HEREDOC;
|
||||
|
||||
for ($i=0; $i<count($list); $i++) {
|
||||
$location = conv_content($list[$i]['lo_location'], 0);
|
||||
|
||||
// 최고관리자에게만 허용
|
||||
// 이 조건문은 가능한 변경하지 마십시오.
|
||||
if ($list[$i]['lo_url'] && $is_admin == 'super')
|
||||
echo "<td colspan=2> <a href='{$list[$i]['lo_url']}'>{$location}</a></td>";
|
||||
else
|
||||
echo "<td colspan=2> {$location}</td>";
|
||||
|
||||
echo <<<HEREDOC
|
||||
</tr>
|
||||
<tr><td colspan='7' height='1' background='{$connect_skin_path}/img/dot_bg.gif'></td></tr>
|
||||
HEREDOC;
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo "<tr><td colspan=7 height=50 align=center>현재 접속자가 없습니다.</td></tr>";
|
||||
if ($list[$i]['lo_url'] && $is_admin == 'super') $display_location = "<a href=\"".$list[$i]['lo_url']."\">".$location."</a>";
|
||||
else $display_location = $location;
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="7" height="30" align="center"><?=$write_pages;?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?=$list[$i]['num']?></td>
|
||||
<td><?=$list[$i]['name']?></td>
|
||||
<td><?=$display_location?></td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
if ($i == 0)
|
||||
echo "<tr><td colspan=\"3\" class=\"empty_table\">현재 접속자가 없습니다.</td></tr>";
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div id="pg">
|
||||
<?=$write_pages?>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user