Merge branch 'master' of github.com:gnuboard/g4s
Conflicts: skin/member/neo/memo_form.skin.php
This commit is contained in:
@ -713,7 +713,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
|
||||
<tr>
|
||||
<th scope="row"><label for="bo_read_point">글읽기 포인트</label></th>
|
||||
<td>
|
||||
<input type="text" id="bo_read_point" name="bo_read_point" class="required numeric" value="<?=$board['bo_read_point']?>" size="5">
|
||||
<input type="text" id="bo_read_point" name="bo_read_point" class="required" value="<?=$board['bo_read_point']?>" size="5">
|
||||
</td>
|
||||
<td class="group_setting">
|
||||
<input type="checkbox" id="chk_read_point" name="chk_read_point" value="1">
|
||||
@ -723,7 +723,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
|
||||
<tr>
|
||||
<th scope="row"><label for="bo_write_point">글쓰기 포인트</label></th>
|
||||
<td>
|
||||
<input type="text" id="bo_write_point" name="bo_write_point" class="required numeric" value="<?=$board['bo_write_point']?>" size="5">
|
||||
<input type="text" id="bo_write_point" name="bo_write_point" class="required" value="<?=$board['bo_write_point']?>" size="5">
|
||||
</td>
|
||||
<td class="group_setting">
|
||||
<input type="checkbox" id="chk_write_point" name="chk_write_point" value="1">
|
||||
@ -733,7 +733,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
|
||||
<tr>
|
||||
<th scope="row"><label for="bo_comment_point">댓글쓰기 포인트</label></th>
|
||||
<td>
|
||||
<input type="text" id="bo_comment_point" name="bo_comment_point" class="required numeric" value="<?=$board['bo_comment_point']?>" size="5">
|
||||
<input type="text" id="bo_comment_point" name="bo_comment_point" class="required" value="<?=$board['bo_comment_point']?>" size="5">
|
||||
</td>
|
||||
<td class="group_setting">
|
||||
<input type="checkbox" id="chk_comment_point" name="chk_comment_point" value="1">
|
||||
@ -743,7 +743,7 @@ if (!preg_match("/([m|M])$/", $upload_max_filesize)) {
|
||||
<tr>
|
||||
<th scope="row"><label for="bo_download_point">다운로드 포인트</label></th>
|
||||
<td>
|
||||
<input type="text" id="bo_download_point" name="bo_download_point" class="required numeric" value="<?=$board['bo_download_point']?>" size="5">
|
||||
<input type="text" id="bo_download_point" name="bo_download_point" class="required" value="<?=$board['bo_download_point']?>" size="5">
|
||||
</td>
|
||||
<td class="group_setting">
|
||||
<input type="checkbox" id="chk_download_point" name="chk_download_point" value="1">
|
||||
|
||||
@ -58,12 +58,12 @@ include_once ('./admin.head.php');
|
||||
<th scope="row"><label for="cf_login_point">로그인시 포인트</label></th>
|
||||
<td>
|
||||
<?=help('회원에게 하루에 한번만 부여')?>
|
||||
<input type="text" id="cf_login_point" name="cf_login_point" class="required numeric" value="<?=$config['cf_login_point']?>" size="2"> 점
|
||||
<input type="text" id="cf_login_point" name="cf_login_point" class="required" value="<?=$config['cf_login_point']?>" size="2"> 점
|
||||
</td>
|
||||
<th scope="row"><label for="cf_memo_send_point">쪽지보낼시 차감 포인트</label></th>
|
||||
<td>
|
||||
<?=help('양수로 입력하십시오. 0점은 쪽지 보낼시 포인트를 차감하지 않습니다.')?>
|
||||
<input type="text" id="cf_memo_send_point" name="cf_memo_send_point" class="required numeric" value="<?=$config['cf_memo_send_point']?>" size="2"> 점
|
||||
<input type="text" id="cf_memo_send_point" name="cf_memo_send_point" class="required" value="<?=$config['cf_memo_send_point']?>" size="2"> 점
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@ -186,15 +186,15 @@ include_once ('./admin.head.php');
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row"><label for="cf_read_point">글읽기 포인트</label></th>
|
||||
<td><input type="text" id="cf_read_point" name="cf_read_point" class="required numeric" value="<?=$config['cf_read_point']?>" size="2"> 점</td>
|
||||
<td><input type="text" id="cf_read_point" name="cf_read_point" class="required" value="<?=$config['cf_read_point']?>" size="2"> 점</td>
|
||||
<th scope="row"><label for="cf_write_point">글쓰기 포인트</label></th>
|
||||
<td><input type="text" id="cf_write_point" name="cf_write_point" class="required numeric" value="<?=$config['cf_write_point']?>" size="2"> 점</td>
|
||||
<td><input type="text" id="cf_write_point" name="cf_write_point" class="required" value="<?=$config['cf_write_point']?>" size="2"> 점</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="cf_comment_point">댓글쓰기 포인트</label></th>
|
||||
<td><input type="text" id="cf_comment_point" name="cf_comment_point" class="required numeric" value="<?=$config['cf_comment_point']?>" size="2"> 점</td>
|
||||
<td><input type="text" id="cf_comment_point" name="cf_comment_point" class="required" value="<?=$config['cf_comment_point']?>" size="2"> 점</td>
|
||||
<th scope="row"><label for="cf_download_point">다운로드 포인트</label></th>
|
||||
<td><input type="text" id="cf_download_point" name="cf_download_point" class="required numeric" value="<?=$config['cf_download_point']?>" size="2"> 점</td>
|
||||
<td><input type="text" id="cf_download_point" name="cf_download_point" class="required" value="<?=$config['cf_download_point']?>" size="2"> 점</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="cf_link_target">새창 링크</label></th>
|
||||
|
||||
21
bbs/board_list_update.php
Normal file
21
bbs/board_list_update.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
$count = count($_POST['chk_wr_id']);
|
||||
|
||||
if(!$count) {
|
||||
alert($_POST['btn_submit']." 하실 항목을 하나 이상 선택하세요.");
|
||||
}
|
||||
|
||||
if($_POST['btn_submit'] == "선택삭제") {
|
||||
include "./delete_all.php";
|
||||
} else if($_POST['btn_submit'] == "선택복사") {
|
||||
$sw = "copy";
|
||||
include "./move.php";
|
||||
} else if($_POST['btn_submit'] == "선택이동") {
|
||||
$sw = "move";
|
||||
include "./move.php";
|
||||
} else {
|
||||
alert("올바른 방법으로 이용해 주세요.");
|
||||
}
|
||||
?>
|
||||
@ -11,7 +11,7 @@ $tmp_array = array();
|
||||
if ($wr_id) // 건별삭제
|
||||
$tmp_array[0] = $wr_id;
|
||||
else // 일괄삭제
|
||||
$tmp_array = $_POST[chk_wr_id];
|
||||
$tmp_array = $_POST['chk_wr_id'];
|
||||
|
||||
|
||||
// 사용자 코드 실행
|
||||
@ -19,119 +19,119 @@ else // 일괄삭제
|
||||
|
||||
|
||||
// 거꾸로 읽는 이유는 답변글부터 삭제가 되어야 하기 때문임
|
||||
for ($i=count($tmp_array)-1; $i>=0; $i--)
|
||||
for ($i=count($tmp_array)-1; $i>=0; $i--)
|
||||
{
|
||||
$write = sql_fetch(" select * from {$write_table} where wr_id = '{$tmp_array[$i]}' ");
|
||||
$write = sql_fetch(" select * from $write_table where wr_id = '$tmp_array[$i]' ");
|
||||
|
||||
if ($is_admin == 'super') // 최고관리자 통과
|
||||
;
|
||||
else if ($is_admin == 'group') // 그룹관리자
|
||||
{
|
||||
$mb = get_member($write[mb_id]);
|
||||
if ($member[mb_id] == $group[gr_admin]) // 자신이 관리하는 그룹인가?
|
||||
$mb = get_member($write['mb_id']);
|
||||
if ($member['mb_id'] == $group['gr_admin']) // 자신이 관리하는 그룹인가?
|
||||
{
|
||||
if ($member[mb_level] >= $mb[mb_level]) // 자신의 레벨이 크거나 같다면 통과
|
||||
if ($member['mb_level'] >= $mb['mb_level']) // 자신의 레벨이 크거나 같다면 통과
|
||||
;
|
||||
else
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else if ($is_admin == 'board') // 게시판관리자이면
|
||||
{
|
||||
$mb = get_member($write[mb_id]);
|
||||
if ($member[mb_id] == $board[bo_admin]) // 자신이 관리하는 게시판인가?
|
||||
if ($member[mb_level] >= $mb[mb_level]) // 자신의 레벨이 크거나 같다면 통과
|
||||
$mb = get_member($write['mb_id']);
|
||||
if ($member['mb_id'] == $board['bo_admin']) // 자신이 관리하는 게시판인가?
|
||||
if ($member['mb_level'] >= $mb['mb_level']) // 자신의 레벨이 크거나 같다면 통과
|
||||
;
|
||||
else
|
||||
continue;
|
||||
else
|
||||
continue;
|
||||
}
|
||||
else if ($member[mb_id] && $member[mb_id] == $write[mb_id]) // 자신의 글이라면
|
||||
}
|
||||
else if ($member['mb_id'] && $member['mb_id'] == $write['mb_id']) // 자신의 글이라면
|
||||
{
|
||||
;
|
||||
}
|
||||
else if ($wr_password && !$write[mb_id] && sql_password($wr_password) == $write[wr_password]) // 패스워드가 같다면
|
||||
}
|
||||
else if ($wr_password && !$write['mb_id'] && sql_password($wr_password) == $write['wr_password']) // 패스워드가 같다면
|
||||
{
|
||||
;
|
||||
}
|
||||
}
|
||||
else
|
||||
continue; // 나머지는 삭제 불가
|
||||
|
||||
$len = strlen($write[wr_reply]);
|
||||
if ($len < 0) $len = 0;
|
||||
$reply = substr($write[wr_reply], 0, $len);
|
||||
$len = strlen($write['wr_reply']);
|
||||
if ($len < 0) $len = 0;
|
||||
$reply = substr($write['wr_reply'], 0, $len);
|
||||
|
||||
// 원글만 구한다.
|
||||
$sql = " select count(*) as cnt from {$write_table}
|
||||
where wr_reply like '{$reply}%'
|
||||
and wr_id <> '{$write[wr_id]}'
|
||||
and wr_num = '{$write[wr_num]}'
|
||||
$sql = " select count(*) as cnt from $write_table
|
||||
where wr_reply like '$reply%'
|
||||
and wr_id <> '{$write['wr_id']}'
|
||||
and wr_num = '{$write['wr_num']}'
|
||||
and wr_is_comment = 0 ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row[cnt])
|
||||
if ($row['cnt'])
|
||||
continue;
|
||||
|
||||
// 나라오름님 수정 : 원글과 코멘트수가 정상적으로 업데이트 되지 않는 오류를 잡아 주셨습니다.
|
||||
//$sql = " select wr_id, mb_id, wr_comment from {$write_table} where wr_parent = '{$write[wr_id]}' order by wr_id ";
|
||||
$sql = " select wr_id, mb_id, wr_is_comment from {$write_table} where wr_parent = '{$write[wr_id]}' order by wr_id ";
|
||||
$sql = " select wr_id, mb_id, wr_is_comment from $write_table where wr_parent = '{$write['wr_id']}' order by wr_id ";
|
||||
$result = sql_query($sql);
|
||||
while ($row = sql_fetch_array($result))
|
||||
while ($row = sql_fetch_array($result))
|
||||
{
|
||||
// 원글이라면
|
||||
if (!$row[wr_is_comment])
|
||||
if (!$row['wr_is_comment'])
|
||||
{
|
||||
// 원글 포인트 삭제
|
||||
if (!delete_point($row[mb_id], $bo_table, $row[wr_id], '쓰기'))
|
||||
insert_point($row[mb_id], $board[bo_write_point] * (-1), "{$board[bo_subject]} {$row[wr_id]} 글 삭제");
|
||||
if (!delete_point($row['mb_id'], $bo_table, $row['wr_id'], '쓰기'))
|
||||
insert_point($row['mb_id'], $board['bo_write_point'] * (-1), "{$board['bo_subject']} {$row['wr_id']} 글 삭제");
|
||||
|
||||
// 업로드된 파일이 있다면
|
||||
$sql2 = " select * from {$g4[board_file_table]} where bo_table = '{$bo_table}' and wr_id = '{$row[wr_id]}' ";
|
||||
$sql2 = " select * from {$g4['board_file_table']} where bo_table = '$bo_table' and wr_id = '{$row['wr_id']}' ";
|
||||
$result2 = sql_query($sql2);
|
||||
while ($row2 = sql_fetch_array($result2))
|
||||
// 파일삭제
|
||||
@unlink($g4['path'].'/data/file/'.$bo_table.'/'.$row2[bf_file]);
|
||||
|
||||
@unlink($g4['path'].'/data/file/'.$bo_table.'/'.$row2['bf_file']);
|
||||
|
||||
// 파일테이블 행 삭제
|
||||
sql_query(" delete from {$g4[board_file_table]} where bo_table = '{$bo_table}' and wr_id = '{$row[wr_id]}' ");
|
||||
sql_query(" delete from {$g4['board_file_table']} where bo_table = '$bo_table' and wr_id = '{$row['wr_id']}' ");
|
||||
|
||||
$count_write++;
|
||||
}
|
||||
else
|
||||
}
|
||||
else
|
||||
{
|
||||
// 코멘트 포인트 삭제
|
||||
if (!delete_point($row[mb_id], $bo_table, $row[wr_id], '코멘트'))
|
||||
insert_point($row[mb_id], $board[bo_comment_point] * (-1), "{$board[bo_subject]} {$write[wr_id]}-{$row[wr_id]} 코멘트삭제");
|
||||
if (!delete_point($row['mb_id'], $bo_table, $row['wr_id'], '코멘트'))
|
||||
insert_point($row['mb_id'], $board['bo_comment_point'] * (-1), "{$board['bo_subject']} {$write['wr_id']}-{$row['wr_id']} 코멘트삭제");
|
||||
|
||||
$count_comment++;
|
||||
}
|
||||
}
|
||||
|
||||
// 게시글 삭제
|
||||
sql_query(" delete from {$write_table} where wr_parent = '{$write[wr_id]}' ");
|
||||
sql_query(" delete from $write_table where wr_parent = '{$write['wr_id']}' ");
|
||||
|
||||
// 최근게시물 삭제
|
||||
sql_query(" delete from {$g4[board_new_table]} where bo_table = '{$bo_table}' and wr_parent = '{$write[wr_id]}' ");
|
||||
sql_query(" delete from {$g4['board_new_table']} where bo_table = '$bo_table' and wr_parent = '{$write['wr_id']}' ");
|
||||
|
||||
// 스크랩 삭제
|
||||
sql_query(" delete from {$g4[scrap_table]} where bo_table = '{$bo_table}' and wr_id = '{$write[wr_id]}' ");
|
||||
sql_query(" delete from {$g4['scrap_table']} where bo_table = '$bo_table' and wr_id = '{$write['wr_id']}' ");
|
||||
|
||||
// 공지사항 삭제
|
||||
$notice_array = explode(',', trim($board[bo_notice]));
|
||||
$notice_array = explode(',', trim($board['bo_notice']));
|
||||
$bo_notice = "";
|
||||
for ($k=0; $k<count($notice_array); $k++)
|
||||
if ((int)$write[wr_id] != (int)$notice_array[$k])
|
||||
if ((int)$write['wr_id'] != (int)$notice_array[$k])
|
||||
$bo_notice .= $notice_array[$k].',';
|
||||
$bo_notice = trim($bo_notice);
|
||||
sql_query(" update {$g4[board_table]} set bo_notice = '{$bo_notice}' where bo_table = '{$bo_table}' ");
|
||||
$board[bo_notice] = $bo_notice;
|
||||
sql_query(" update {$g4['board_table']} set bo_notice = '$bo_notice' where bo_table = '$bo_table' ");
|
||||
$board['bo_notice'] = $bo_notice;
|
||||
}
|
||||
|
||||
// 글숫자 감소
|
||||
if ($count_write > 0 || $count_comment > 0)
|
||||
sql_query(" update {$g4[board_table]} set bo_count_write = bo_count_write - '{$count_write}', bo_count_comment = bo_count_comment - '{$count_comment}' where bo_table = '{$bo_table}' ");
|
||||
sql_query(" update {$g4['board_table']} set bo_count_write = bo_count_write - '$count_write', bo_count_comment = bo_count_comment - '$count_comment' where bo_table = '$bo_table' ");
|
||||
|
||||
// 4.11
|
||||
@include_once($board_skin_path.'/delete_all.tail.skin.php');
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
<?
|
||||
define('_CAPTCHA_', 1);
|
||||
include_once('./_common.php');
|
||||
|
||||
if (!$config[cf_email_use])
|
||||
|
||||
@ -33,7 +33,6 @@ $(function() {
|
||||
$("#captcha_key").focus();//이미지 새로고침 후 입력박스에 포커스 : 지운아빠 2012-07-13
|
||||
}
|
||||
})
|
||||
.css("cursor", "pointer")
|
||||
.trigger("click");
|
||||
|
||||
$("#captcha_wav").click(function(){
|
||||
|
||||
152
bbs/move.php
152
bbs/move.php
@ -5,11 +5,11 @@ if ($sw == 'move')
|
||||
$act = '이동';
|
||||
else if ($sw == 'copy')
|
||||
$act = '복사';
|
||||
else
|
||||
else
|
||||
alert('sw 값이 제대로 넘어오지 않았습니다.');
|
||||
|
||||
// 게시판 관리자 이상 복사, 이동 가능
|
||||
if ($is_admin != 'board' && $is_admin != 'group' && $is_admin != 'super')
|
||||
if ($is_admin != 'board' && $is_admin != 'group' && $is_admin != 'super')
|
||||
alert_close("게시판 관리자 이상 접근이 가능합니다.");
|
||||
|
||||
$g4['title'] = '게시물 ' . $act;
|
||||
@ -20,121 +20,87 @@ if ($wr_id)
|
||||
$wr_id_list = $wr_id;
|
||||
else {
|
||||
$comma = '';
|
||||
for ($i=0; $i<count($_POST[chk_wr_id]); $i++) {
|
||||
$wr_id_list .= $comma . $_POST[chk_wr_id][$i];
|
||||
for ($i=0; $i<count($_POST['chk_wr_id']); $i++) {
|
||||
$wr_id_list .= $comma . $_POST['chk_wr_id'][$i];
|
||||
$comma = ',';
|
||||
}
|
||||
}
|
||||
|
||||
$sql = " select * from {$g4[board_table]} a,
|
||||
{$g4[group_table]} b
|
||||
$sql = " select * from {$g4['board_table']} a,
|
||||
{$g4['group_table']} b
|
||||
where a.gr_id = b.gr_id
|
||||
and bo_table <> '{$bo_table}' ";
|
||||
if ($is_admin == 'group')
|
||||
$sql .= " and b.gr_admin = '{$member[mb_id]}' ";
|
||||
else if ($is_admin == 'board')
|
||||
$sql .= " and a.bo_admin = '{$member[mb_id]}' ";
|
||||
and bo_table <> '$bo_table' ";
|
||||
if ($is_admin == 'group')
|
||||
$sql .= " and b.gr_admin = '{$member['mb_id']}' ";
|
||||
else if ($is_admin == 'board')
|
||||
$sql .= " and a.bo_admin = '{$member['mb_id']}' ";
|
||||
$sql .= " order by a.gr_id, a.bo_order_search, a.bo_table ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$list[$i] = $row;
|
||||
}
|
||||
?>
|
||||
|
||||
<table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td>
|
||||
<div id="copymove" class="new_win">
|
||||
<h1><?=$g4['title']?></h1>
|
||||
|
||||
<table width="100%" height="50" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td align="center" valign="middle" bgcolor="#EBEBEB" style="padding:5px;">
|
||||
<table width="100%" height="40" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td width="25" align="center" bgcolor="#FFFFFF" ><img src="<?=$g4[bbs_img_path]?>/icon_01.gif" width="5" height="5"></td>
|
||||
<td width="" align="left" bgcolor="#FFFFFF" ><font color="#666666"><b>게시물<?=$act?></b></font></td>
|
||||
</tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
</table>
|
||||
<form name="fboardmoveall" method="post" action="./move_update.php" onsubmit="return fboardmoveall_submit(this);">
|
||||
<input type="hidden" name="sw" value="<?=$sw?>">
|
||||
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
|
||||
<input type="hidden" name="wr_id_list" value="<?=$wr_id_list?>">
|
||||
<input type="hidden" name="sfl" value="<?=$sfl?>">
|
||||
<input type="hidden" name="stx" value="<?=$stx?>">
|
||||
<input type="hidden" name="spt" value="<?=$spt?>">
|
||||
<input type="hidden" name="page" value="<?=$page?>">
|
||||
<input type="hidden" name="act" value="<?=$act?>">
|
||||
<input type="hidden" name="url" value="<?=$_SERVER['HTTP_REFERER']?>">
|
||||
<table>
|
||||
<caption><?=$act?>할 게시판을 한개 이상 선택하여 주십시오.</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">선택</th>
|
||||
<th scope="col">게시판</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<? for ($i=0; $i<count($list); $i++) { ?>
|
||||
<tr>
|
||||
<td class="td_chk">
|
||||
<input type="checkbox" id="chk<?=$i?>" name="chk_bo_table[]" value="<?=$list[$i]['bo_table']?>">
|
||||
</td>
|
||||
<td>
|
||||
<label for="chk<?=$i?>">
|
||||
<?
|
||||
echo $list[$i]['gr_subject'] . " > ";
|
||||
$save_gr_subject = $list[$i]['gr_subject'];
|
||||
?>
|
||||
<?=$list[$i]['bo_subject']?> (<?=$list[$i]['bo_table']?>)
|
||||
</label>
|
||||
</td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="20" colspan="3"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="30" height="24"></td>
|
||||
<td width="" align="left" valign="middle">※ <?=$act?>할 게시판을 한개 이상 선택하여 주십시오.</td>
|
||||
<td width="30" height="24"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="btn_win btn_confirm">
|
||||
<input type="submit" id="btn_submit" class="btn_submit" value="<?=$act?>">
|
||||
<a href="javascript:window.close();" class="btn_cancel">창닫기</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<form name="fboardmoveall" method="post" onsubmit="return fboardmoveall_submit(this);">
|
||||
<input type="hidden" name="sw" value="<?=$sw?>">
|
||||
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
|
||||
<input type="hidden" name="wr_id_list" value="<?=$wr_id_list?>">
|
||||
<input type="hidden" name="sfl" value="<?=$sfl?>">
|
||||
<input type="hidden" name="stx" value="<?=$stx?>">
|
||||
<input type="hidden" name="spt" value="<?=$spt?>">
|
||||
<input type="hidden" name="page" value="<?=$page?>">
|
||||
<input type="hidden" name="act" value="<?=$act?>">
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td height="20" align="center" valign="top"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" valign="top">
|
||||
<table width="98%" border="0" cellspacing="0" cellpadding="0">
|
||||
|
||||
<? for ($i=0; $i<count($list); $i++) { ?>
|
||||
<tr>
|
||||
<td width="39" height="25" align="center"><input type=checkbox id='chk<?=$i?>' name='chk_bo_table[]' value="<?=$list[$i][bo_table]?>"></td>
|
||||
<td width="10" valign="bottom"><img src="<?=$g4[bbs_img_path]?>/l.gif" width="1" height="8"></td>
|
||||
<td width="490">
|
||||
<span style="cursor:pointer;" onclick="document.getElementById('chk<?=$i?>').checked=document.getElementById('chk<?=$i?>').checked?'':'checked';">
|
||||
<?
|
||||
if ($save_gr_subject==$list[$i][gr_subject])
|
||||
echo '<span style='color:#cccccc;'>';
|
||||
else
|
||||
echo '<span>';
|
||||
echo $list[$i][gr_subject] . " > ";
|
||||
echo "</span>";
|
||||
$save_gr_subject = $list[$i][gr_subject];
|
||||
?>
|
||||
<?=$list[$i][bo_subject]?> (<?=$list[$i][bo_table]?>)</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="1" colspan="3" bgcolor="#E9E9E9"></td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="2" bgcolor="#D5D5D5"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="2" bgcolor="#E6E6E6"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td height="40" align="center" valign="bottom"><input id="btn_submit" type=image src='<?=$g4[bbs_img_path]?>/ok_btn.gif' border=0> <a href="javascript:window.close();"><img src="<?=$g4[bbs_img_path]?>/btn_close.gif" width="48" height="20" border="0"></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function fboardmoveall_submit(f)
|
||||
{
|
||||
var check = false;
|
||||
|
||||
if (typeof(f.elements['chk_bo_table[]']) == 'undefined')
|
||||
if (typeof(f.elements['chk_bo_table[]']) == 'undefined')
|
||||
;
|
||||
else {
|
||||
if (typeof(f.elements['chk_bo_table[]'].length) == 'undefined') {
|
||||
if (f.elements['chk_bo_table[]'].checked)
|
||||
if (f.elements['chk_bo_table[]'].checked)
|
||||
check = true;
|
||||
} else {
|
||||
for (i=0; i<f.elements['chk_bo_table[]'].length; i++) {
|
||||
|
||||
@ -2,12 +2,15 @@
|
||||
include_once('./_common.php');
|
||||
|
||||
// 게시판 관리자 이상 복사, 이동 가능
|
||||
if ($is_admin != 'board' && $is_admin != 'group' && $is_admin != 'super')
|
||||
if ($is_admin != 'board' && $is_admin != 'group' && $is_admin != 'super')
|
||||
alert_close('게시판 관리자 이상 접근이 가능합니다.');
|
||||
|
||||
if ($sw != 'move' && $sw != 'copy')
|
||||
alert('sw 값이 제대로 넘어오지 않았습니다.');
|
||||
|
||||
if(!count($_POST['chk_bo_table']))
|
||||
alert("게시물을 ".$act."할 게시판을 한개 이상 선택해 주십시오.", $url);
|
||||
|
||||
// 원본 파일 디렉토리
|
||||
$src_dir = $g4['path'].'/data/file/'.$bo_table;
|
||||
|
||||
@ -18,12 +21,12 @@ $cnt = 0;
|
||||
|
||||
// SQL Injection 으로 인한 코드 보완
|
||||
//$sql = " select distinct wr_num from {$write_table} where wr_id in (" . stripslashes($wr_id_list) . ") order by wr_id ";
|
||||
$sql = " select distinct wr_num from {$write_table} where wr_id in ({$wr_id_list}) order by wr_id ";
|
||||
$sql = " select distinct wr_num from $write_table where wr_id in ({$wr_id_list}) order by wr_id ";
|
||||
$result = sql_query($sql);
|
||||
while ($row = sql_fetch_array($result))
|
||||
while ($row = sql_fetch_array($result))
|
||||
{
|
||||
$wr_num = $row[wr_num];
|
||||
for ($i=0; $i<count($_POST['chk_bo_table']); $i++)
|
||||
$wr_num = $row['wr_num'];
|
||||
for ($i=0; $i<count($_POST['chk_bo_table']); $i++)
|
||||
{
|
||||
$move_bo_table = $_POST['chk_bo_table'][$i];
|
||||
$move_write_table = $g4['write_prefix'] . $move_bo_table;
|
||||
@ -37,146 +40,146 @@ while ($row = sql_fetch_array($result))
|
||||
$next_wr_num = get_next_num($move_write_table);
|
||||
|
||||
//$sql2 = " select * from {$write_table} where wr_num = '{$wr_num}' order by wr_parent, wr_comment desc, wr_id ";
|
||||
$sql2 = " select * from {$write_table} where wr_num = '{$wr_num}' order by wr_parent, wr_is_comment, wr_comment desc, wr_id ";
|
||||
$sql2 = " select * from $write_table where wr_num = '$wr_num' order by wr_parent, wr_is_comment, wr_comment desc, wr_id ";
|
||||
$result2 = sql_query($sql2);
|
||||
while ($row2 = sql_fetch_array($result2))
|
||||
while ($row2 = sql_fetch_array($result2))
|
||||
{
|
||||
$nick = cut_str($member[mb_nick], $config[cf_cut_name]);
|
||||
if (!$row2[wr_is_comment] && $config[cf_use_copy_log])
|
||||
$row2[wr_content] .= PHP_EOL.'[이 게시물은 '.$nick.'님에 의해 '.$g4[time_ymdhis].' '.$board[bo_subject].'에서 '.($sw == 'copy' ? '복사' : '이동').' 됨]';
|
||||
$nick = cut_str($member['mb_nick'], $config['cf_cut_name']);
|
||||
if (!$row2['wr_is_comment'] && $config['cf_use_copy_log'])
|
||||
$row2['wr_content'] .= "\n".'[이 게시물은 '.$nick.'님에 의해 '.$g4['time_ymdhis'].' '.$board['bo_subject'].'에서 '.($sw == 'copy' ? '복사' : '이동').' 됨]';
|
||||
|
||||
$sql = " insert into $move_write_table
|
||||
set wr_num = '$next_wr_num',
|
||||
wr_reply = '$row2[wr_reply]',
|
||||
wr_is_comment = '$row2[wr_is_comment]',
|
||||
wr_comment = '$row2[wr_comment]',
|
||||
wr_comment_reply = '$row2[wr_comment_reply]',
|
||||
ca_name = '".addslashes($row2[ca_name])."',
|
||||
wr_option = '$row2[wr_option]',
|
||||
wr_subject = '".addslashes($row2[wr_subject])."',
|
||||
wr_content = '".addslashes($row2[wr_content])."',
|
||||
wr_link1 = '".addslashes($row2[wr_link1])."',
|
||||
wr_link2 = '".addslashes($row2[wr_link2])."',
|
||||
wr_link1_hit = '$row2[wr_link1_hit]',
|
||||
wr_link2_hit = '$row2[wr_link2_hit]',
|
||||
wr_hit = '$row2[wr_hit]',
|
||||
wr_good = '$row2[wr_good]',
|
||||
wr_nogood = '$row2[wr_nogood]',
|
||||
mb_id = '$row2[mb_id]',
|
||||
wr_password = '$row2[wr_password]',
|
||||
wr_name = '".addslashes($row2[wr_name])."',
|
||||
wr_email = '".addslashes($row2[wr_email])."',
|
||||
wr_homepage = '".addslashes($row2[wr_homepage])."',
|
||||
wr_datetime = '$row2[wr_datetime]',
|
||||
wr_last = '$row2[wr_last]',
|
||||
wr_ip = '$row2[wr_ip]',
|
||||
wr_1 = '".addslashes($row2[wr_1])."',
|
||||
wr_2 = '".addslashes($row2[wr_2])."',
|
||||
wr_3 = '".addslashes($row2[wr_3])."',
|
||||
wr_4 = '".addslashes($row2[wr_4])."',
|
||||
wr_5 = '".addslashes($row2[wr_5])."',
|
||||
wr_6 = '".addslashes($row2[wr_6])."',
|
||||
wr_7 = '".addslashes($row2[wr_7])."',
|
||||
wr_8 = '".addslashes($row2[wr_8])."',
|
||||
wr_9 = '".addslashes($row2[wr_9])."',
|
||||
wr_10 = '".addslashes($row2[wr_10])."' ";
|
||||
wr_reply = '{$row2['wr_reply']}',
|
||||
wr_is_comment = '{$row2['wr_is_comment']}',
|
||||
wr_comment = '{$row2['wr_comment']}',
|
||||
wr_comment_reply = '{$row2['wr_comment_reply']}',
|
||||
ca_name = '".addslashes($row2['ca_name'])."',
|
||||
wr_option = '{$row2['wr_option']}',
|
||||
wr_subject = '".addslashes($row2['wr_subject'])."',
|
||||
wr_content = '".addslashes($row2['wr_content'])."',
|
||||
wr_link1 = '".addslashes($row2['wr_link1'])."',
|
||||
wr_link2 = '".addslashes($row2['wr_link2'])."',
|
||||
wr_link1_hit = '{$row2['wr_link1_hit']}',
|
||||
wr_link2_hit = '{$row2['wr_link2_hit']}',
|
||||
wr_hit = '{$row2['wr_hit']}',
|
||||
wr_good = '{$row2['wr_good']}',
|
||||
wr_nogood = '{$row2['wr_nogood']}',
|
||||
mb_id = '{$row2['mb_id']}',
|
||||
wr_password = '{$row2['wr_password']}',
|
||||
wr_name = '".addslashes($row2['wr_name'])."',
|
||||
wr_email = '".addslashes($row2['wr_email'])."',
|
||||
wr_homepage = '".addslashes($row2['wr_homepage'])."',
|
||||
wr_datetime = '{$row2['wr_datetime']}',
|
||||
wr_last = '{$row2['wr_last']}',
|
||||
wr_ip = '{$row2['wr_ip']}',
|
||||
wr_1 = '".addslashes($row2['wr_1'])."',
|
||||
wr_2 = '".addslashes($row2['wr_2'])."',
|
||||
wr_3 = '".addslashes($row2['wr_3'])."',
|
||||
wr_4 = '".addslashes($row2['wr_4'])."',
|
||||
wr_5 = '".addslashes($row2['wr_5'])."',
|
||||
wr_6 = '".addslashes($row2['wr_6'])."',
|
||||
wr_7 = '".addslashes($row2['wr_7'])."',
|
||||
wr_8 = '".addslashes($row2['wr_8'])."',
|
||||
wr_9 = '".addslashes($row2['wr_9'])."',
|
||||
wr_10 = '".addslashes($row2['wr_10'])."' ";
|
||||
sql_query($sql);
|
||||
|
||||
$insert_id = mysql_insert_id();
|
||||
|
||||
// 코멘트가 아니라면
|
||||
if (!$row2[wr_is_comment])
|
||||
if (!$row2['wr_is_comment'])
|
||||
{
|
||||
$save_parent = $insert_id;
|
||||
|
||||
$sql3 = " select * from {$g4[board_file_table]} where bo_table = '{$bo_table}' and wr_id = '{$row2[wr_id]}' order by bf_no ";
|
||||
$sql3 = " select * from {$g4['board_file_table']} where bo_table = '$bo_table' and wr_id = '{$row2['wr_id']}' order by bf_no ";
|
||||
$result3 = sql_query($sql3);
|
||||
for ($k=0; $row3 = sql_fetch_array($result3); $k++)
|
||||
for ($k=0; $row3 = sql_fetch_array($result3); $k++)
|
||||
{
|
||||
if ($row3[bf_file])
|
||||
if ($row3['bf_file'])
|
||||
{
|
||||
// 원본파일을 복사하고 퍼미션을 변경
|
||||
@copy($src_dir.'/'.$row3[bf_file], $dst_dir.'/'.$row3[bf_file]);
|
||||
@chmod($dst_dir/$row3[bf_file], 0606);
|
||||
@copy($src_dir.'/'.$row3['bf_file'], $dst_dir.'/'.$row3['bf_file']);
|
||||
@chmod($dst_dir/$row3['bf_file'], 0606);
|
||||
}
|
||||
|
||||
$sql = " insert into $g4[board_file_table]
|
||||
set bo_table = '$move_bo_table',
|
||||
wr_id = '$insert_id',
|
||||
bf_no = '$row3[bf_no]',
|
||||
bf_source = '$row3[bf_source]',
|
||||
bf_file = '$row3[bf_file]',
|
||||
bf_download = '$row3[bf_download]',
|
||||
bf_content = '".addslashes($row3[bf_content])."',
|
||||
bf_filesize = '$row3[bf_filesize]',
|
||||
bf_width = '$row3[bf_width]',
|
||||
bf_height = '$row3[bf_height]',
|
||||
bf_type = '$row3[bf_type]',
|
||||
bf_datetime = '$row3[bf_datetime]' ";
|
||||
$sql = " insert into {$g4['board_file_table']}
|
||||
set bo_table = '$move_bo_table',
|
||||
wr_id = '$insert_id',
|
||||
bf_no = '{$row3['bf_no']}',
|
||||
bf_source = '{$row3['bf_source']}',
|
||||
bf_file = '{$row3['bf_file']}',
|
||||
bf_download = '{$row3['bf_download']}',
|
||||
bf_content = '".addslashes($row3['bf_content'])."',
|
||||
bf_filesize = '{$row3['bf_filesize']}',
|
||||
bf_width = '{$row3['bf_width']}',
|
||||
bf_height = '{$row3['bf_height']}',
|
||||
bf_type = '{$row3['bf_type']}',
|
||||
bf_datetime = '{$row3['bf_datetime']}' ";
|
||||
sql_query($sql);
|
||||
|
||||
if ($sw == 'move' && $row3[bf_file])
|
||||
$save[$cnt][bf_file][$k] = $src_dir.'/'.$row3[bf_file];
|
||||
if ($sw == 'move' && $row3['bf_file'])
|
||||
$save[$cnt]['bf_file'][$k] = $src_dir.'/'.$row3['bf_file'];
|
||||
}
|
||||
|
||||
$count_write++;
|
||||
|
||||
if ($sw == 'move' && $i == 0)
|
||||
if ($sw == 'move' && $i == 0)
|
||||
{
|
||||
// 스크랩 이동
|
||||
sql_query(" update {$g4[scrap_table]} set bo_table = '{$move_bo_table}', wr_id = '{$save_parent}' where bo_table = '{$bo_table}' and wr_id = '{$row2[wr_id]}' ");
|
||||
sql_query(" update {$g4['scrap_table']} set bo_table = '$move_bo_table', wr_id = '$save_parent' where bo_table = '$bo_table' and wr_id = '{$row2['wr_id']}' ");
|
||||
|
||||
// 최신글 이동
|
||||
sql_query(" update {$g4[board_new_table]} set bo_table = '{$move_bo_table}', wr_id = '{$save_parent}', wr_parent = '{$save_parent}' where bo_table = '{$bo_table}' and wr_id = '{$row2[wr_id]}' ");
|
||||
sql_query(" update {$g4['board_new_table']} set bo_table = '$move_bo_table', wr_id = '$save_parent', wr_parent = '$save_parent' where bo_table = '$bo_table' and wr_id = '{$row2['wr_id']}' ");
|
||||
}
|
||||
}
|
||||
else
|
||||
}
|
||||
else
|
||||
{
|
||||
$count_comment++;
|
||||
|
||||
if ($sw == 'move')
|
||||
{
|
||||
// 최신글 이동
|
||||
sql_query(" update {$g4[board_new_table]} set bo_table = '{$move_bo_table}', wr_id = '{$insert_id}', wr_parent = '{$save_parent}' where bo_table = '{$bo_table}' and wr_id = '{$row2[wr_id]}' ");
|
||||
sql_query(" update {$g4['board_new_table']} set bo_table = '$move_bo_table', wr_id = '$insert_id', wr_parent = '$save_parent' where bo_table = '$bo_table' and wr_id = '{$row2['wr_id']}' ");
|
||||
}
|
||||
}
|
||||
|
||||
sql_query(" update {$move_write_table} set wr_parent = '{$save_parent}' where wr_id = '{$insert_id}' ");
|
||||
sql_query(" update $move_write_table set wr_parent = '$save_parent' where wr_id = '$insert_id' ");
|
||||
|
||||
if ($sw == 'move')
|
||||
$save[$cnt][wr_id] = $row2[wr_parent];
|
||||
$save[$cnt]['wr_id'] = $row2['wr_parent'];
|
||||
|
||||
$cnt++;
|
||||
}
|
||||
|
||||
|
||||
sql_query(" update {$g4[board_table]} set bo_count_write = bo_count_write + '{$count_write}' where bo_table = '{$move_bo_table}' ");
|
||||
sql_query(" update {$g4[board_table]} set bo_count_comment = bo_count_comment + '{$count_comment}' where bo_table = '{$move_bo_table}' ");
|
||||
sql_query(" update {$g4['board_table']} set bo_count_write = bo_count_write + '$count_write' where bo_table = '$move_bo_table' ");
|
||||
sql_query(" update {$g4['board_table']} set bo_count_comment = bo_count_comment + '$count_comment' where bo_table = '$move_bo_table' ");
|
||||
}
|
||||
|
||||
$save_count_write += $count_write;
|
||||
$save_count_comment += $count_comment;
|
||||
}
|
||||
|
||||
if ($sw == "move")
|
||||
if ($sw == "move")
|
||||
{
|
||||
for ($i=0; $i<count($save); $i++)
|
||||
for ($i=0; $i<count($save); $i++)
|
||||
{
|
||||
for ($k=0; $k<count($save[$i][bf_file]); $k++)
|
||||
@unlink($save[$i][bf_file][$k]);
|
||||
for ($k=0; $k<count($save[$i]['bf_file']); $k++)
|
||||
@unlink($save[$i]['bf_file'][$k]);
|
||||
|
||||
sql_query(" delete from {$write_table} where wr_parent = '{$save[$i][wr_id]}' ");
|
||||
sql_query(" delete from {$g4[board_new_table]} where bo_table = '{$bo_table}' and wr_id = '{$save[$i][wr_id]}' ");
|
||||
sql_query(" delete from {$g4[board_file_table]} where bo_table = '{$bo_table}' and wr_id = '{$save[$i][wr_id]}' ");
|
||||
sql_query(" delete from $write_table where wr_parent = '{$save[$i]['wr_id']}' ");
|
||||
sql_query(" delete from {$g4['board_new_table']} where bo_table = '$bo_table' and wr_id = '{$save[$i]['wr_id']}' ");
|
||||
sql_query(" delete from {$g4['board_file_table']} where bo_table = '$bo_table' and wr_id = '{$save[$i]['wr_id']}' ");
|
||||
}
|
||||
sql_query(" update {$g4[board_table]} set bo_count_write = bo_count_write - '{$save_count_write}', bo_count_comment = bo_count_comment - '{$save_count_comment}' where bo_table = '{$bo_table}' ");
|
||||
sql_query(" update {$g4['board_table']} set bo_count_write = bo_count_write - '$save_count_write', bo_count_comment = bo_count_comment - '$save_count_comment' where bo_table = '$bo_table' ");
|
||||
}
|
||||
|
||||
$msg = '해당 게시물을 선택한 게시판으로 '.$act.' 하였습니다.';
|
||||
$opener_href = './board.php?bo_table='.$bo_table.'&page='.$page.'&$qstr';
|
||||
|
||||
echo <<<HEREDOC
|
||||
<meta http-equiv='content-type' content='text/html; charset={$g4['charset']}'>
|
||||
<meta http-equiv='content-type' content='text/html; charset={$g4['charset']}'>
|
||||
<script>
|
||||
alert("{$msg}");
|
||||
opener.document.location.href = "{$opener_href}";
|
||||
|
||||
@ -224,9 +224,6 @@ a {color:#000;text-decoration:none}
|
||||
.btn_confirm {text-align:center} /* 서식단계 진행 */
|
||||
.btn_submit {padding:0 15px;height:30px;border:0;background:#ff3061;color:#fff;font-size:0.9em;letter-spacing:-0.1em;vertical-align:top}
|
||||
.btn_cancel {display:inline-block;padding:0 10px;height:28px;border:1px solid #ccc;background:#fafafa;color:#000;font-size:0.75em;text-decoration:none;line-height:2.5em}
|
||||
.btn_window {padding:10px 5% 20px;background:#494949;text-align:right} /* 새창용 */
|
||||
.btn_window a {display:inline-block;padding:0 10px;height:28px;border:1px solid #ccc;background:#fafafa;color:#000;font-size:0.75em;text-decoration:none;line-height:2.5em}
|
||||
|
||||
|
||||
/* 폼 테이블 */
|
||||
.frm_tbl {}
|
||||
@ -244,6 +241,8 @@ a {color:#000;text-decoration:none}
|
||||
.frm_tbl select {padding:2px}
|
||||
.frm_file {display:block;margin-bottom:5px}
|
||||
.frm_info {display:block;padding:5px 0 0;color:#595959;line-height:1.3em}
|
||||
.frm_tbl #captcha {margin:0;padding:0;border:0;background:transparent}
|
||||
.frm_tbl #captcha input {margin-left:5px}
|
||||
|
||||
.readonly {background:#ff3061}
|
||||
|
||||
@ -290,17 +289,17 @@ a {color:#000;text-decoration:none}
|
||||
/* 게시판 목록 */
|
||||
#btn_bo_adm {text-align:center}
|
||||
#btn_bo_adm a {display:inline-block;margin-bottom:20px;padding:10px 20px;text-align:center}
|
||||
.bo_link {margin-bottom:5px;zoom:1}
|
||||
.bo_link:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.bo_link ul {margin:0;padding:0;list-style:none}
|
||||
#bo_cate {float:left;margin-bottom:10px;font-size:0.75em}
|
||||
.bo_fx {margin-bottom:5px;zoom:1}
|
||||
.bo_fx:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.bo_fx ul {margin:0;padding:0;list-style:none}
|
||||
#bo_cate {float:left;margin:0 10px 10px 0;font-size:0.75em}
|
||||
#bo_cate form {display:inline-block}
|
||||
#bo_cate select {margin-right:5px;padding:4px;border:1px solid #ddd;background:#f9f9f5;font-size:1em;vertical-align:middle}
|
||||
.btn_bo_user {float:right;margin:0;padding:0;list-style:none}
|
||||
.btn_bo_user li {float:left;margin-left:5px}
|
||||
.btn_bo_adm {float:left}
|
||||
.btn_bo_adm li {float:left;margin-right:5px}
|
||||
#bo_sch {padding:0;border:0;text-align:center}
|
||||
#bo_sch {display:inline-block;float:left;margin:0;padding:0;border:0;vertical-align:middle}
|
||||
#bo_sch legend {margin:0;padding:0;width:0;height:0;border:0;overflow:hidden}
|
||||
#bo_sch form {display:inline-block}
|
||||
#bo_list caption {padding:0;height:0;color:transparent;overflow:hidden} /* ff에서 감추기 위해 color:transparent 사용 */
|
||||
@ -314,7 +313,7 @@ a {color:#000;text-decoration:none}
|
||||
#bo_w caption {padding:0;height:0;overflow:hidden}
|
||||
|
||||
/* 게시판 읽기 */
|
||||
#bo_v_title {text-align:center}
|
||||
#bo_v_title {}
|
||||
#bo_v {position:relative;margin-bottom:30px;border-top:3px solid #666;border-bottom:1px solid #ccc}
|
||||
#bo_v_h1 {margin:0 !important;padding:15px 0 0 10px;font-size:1em}
|
||||
#bo_v_info {padding:0 0 10px;border-bottom:1px solid #efeada;zoom:1}
|
||||
@ -417,6 +416,7 @@ a {color:#000;text-decoration:none}
|
||||
.new_win h1 {padding:20px 30px 10px;background:#494949;color:#fff;font-size:0.875em}
|
||||
.new_win h1 a {color:#fff}
|
||||
.new_win article h1 {background:transparent;color:#000}
|
||||
.new_win article h1 a {color:#000}
|
||||
.new_win h2 {font-size:1em}
|
||||
.new_win table {margin:0 auto 30px;width:90%}
|
||||
.new_win fieldset {margin:0 auto 30px;width:90%}
|
||||
@ -426,6 +426,8 @@ a {color:#000;text-decoration:none}
|
||||
.new_win_ul a {display:block;padding:10px;border-right:1px solid #eee;border-left:1px solid #eee;color:#595959;font-family:"dotum";font-size:1em;font-weight:bold}
|
||||
.new_win_ul a:hover,
|
||||
.new_win_ul a:focus {background:#faf9f5}
|
||||
.btn_win {clear:both;margin-bottom:20px;text-align:center} /* 새창용 */
|
||||
.btn_win a {display:inline-block;padding:0 10px;height:28px;border:1px solid #ccc;background:#fafafa;color:#000;font-size:0.75em;text-decoration:none;line-height:2.5em}
|
||||
|
||||
/* 포인트 내역 */
|
||||
#point table {margin-bottom:0}
|
||||
@ -454,11 +456,21 @@ a {color:#000;text-decoration:none}
|
||||
/* 쪽지 쓰기 */
|
||||
#memo_write textarea {height:100px}
|
||||
|
||||
/* 아이디/패스워드 찾기 */
|
||||
#find_info fieldset {padding:0;border:0}
|
||||
#find_info legend {margin:0;padding:0;width:0;height:0;border:0;overflow:hidden}
|
||||
#find_info p {font-size:0.75em}
|
||||
#find_info #captcha {padding-top:20px;border-top:1px solid #ddd}
|
||||
#find_info #captcha input {margin-left:5px}
|
||||
|
||||
/* pagination */
|
||||
.pg {clear:both;margin:0 0 20px;padding-top:20px;font-size:0.75em;text-align:center}
|
||||
.pg_wrap {display:inline-block;border:1px solid #ddd;letter-spacing:-4px}
|
||||
.pg_page, .pg_current {display:inline-block;padding:0 12px;height:30px;background:#fff;color:#000;letter-spacing:0;line-height:2.6em;vertical-align:middle}
|
||||
.pg_page,
|
||||
.pg_current {display:inline-block;padding:0 12px;height:30px;background:#fff;color:#000;letter-spacing:0;line-height:2.6em;vertical-align:middle}
|
||||
.pg_page {background:#f9f9f9;text-decoration:none}
|
||||
.pg_start, .pg_prev {border-right:1px solid #ddd}
|
||||
.pg_end, .pg_next {border-left:1px solid #ddd}
|
||||
.pg_start,
|
||||
.pg_prev {border-right:1px solid #ddd}
|
||||
.pg_end,
|
||||
.pg_next {border-left:1px solid #ddd}
|
||||
.pg_current {background:#494949;color:#fff}
|
||||
|
||||
2
head.php
2
head.php
@ -31,10 +31,10 @@ include_once($g4['path'].'/lib/popular.lib.php');
|
||||
</ul>
|
||||
|
||||
<fieldset id="hdsch">
|
||||
<legend>사이트 내 전체검색</legend>
|
||||
<form name="fsearchbox" method="get" action="<?=$g4['https_bbs_url'].'/search.php'?>" onsubmit="return fsearchbox_submit(this);">
|
||||
<input type="hidden" name="sfl" value="wr_subject||wr_content">
|
||||
<input type="hidden" name="sop" value="and">
|
||||
<legend>사이트 내 전체검색</legend>
|
||||
<input type="text" id="hdsch_stx" name="stx" title="검색어" maxlength="20">
|
||||
<input type="image" id="hdsch_submit" src="<?=$g4['path']?>/img/btn_search.jpg" alt="검색">
|
||||
</form>
|
||||
|
||||
@ -11,32 +11,7 @@ if ($is_nogood) $colspan++;
|
||||
|
||||
<? if (!$wr_id) {?><h1><?=$g4['title']?></h1><?}?>
|
||||
|
||||
<fieldset id="bo_sch">
|
||||
<legend>게시물 검색</legend>
|
||||
|
||||
<form name="fsearch" method="get">
|
||||
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
|
||||
<input type="hidden" name="sca" value="<?=$sca?>">
|
||||
<select name="sfl" title="검색대상">
|
||||
<option value="wr_subject">제목</option>
|
||||
<option value="wr_content">내용</option>
|
||||
<option value="wr_subject||wr_content">제목+내용</option>
|
||||
<option value="mb_id,1">회원아이디</option>
|
||||
<option value="mb_id,0">회원아이디(코)</option>
|
||||
<option value="wr_name,1">글쓴이</option>
|
||||
<option value="wr_name,0">글쓴이(코)</option>
|
||||
</select>
|
||||
<input name="stx" class="fieldset_input required" maxlength="15" size="15" required value="<?=stripslashes($stx)?>" title="검색어">
|
||||
<input type="hidden" name="sop" value="and">
|
||||
<!-- <input type="radio" id="sop_and" name="sop" value="and">
|
||||
<label for="sop_and">and</label>
|
||||
<input type="radio" id="sop_or" name="sop" value="or">
|
||||
<label for="sop_or">or</label> -->
|
||||
<input type="submit" class="fieldset_submit" value="검색">
|
||||
</form>
|
||||
</fieldset>
|
||||
|
||||
<div class="bo_link">
|
||||
<div class="bo_fx">
|
||||
<div id="bo_cate">
|
||||
<? if ($is_category) { ?>
|
||||
<form id="fcategory" name="fcategory" method="get">
|
||||
@ -50,6 +25,27 @@ if ($is_nogood) $colspan++;
|
||||
<?=$page?> 페이지
|
||||
</div>
|
||||
|
||||
<fieldset id="bo_sch">
|
||||
<legend>게시물 검색</legend>
|
||||
|
||||
<form name="fsearch" method="get">
|
||||
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
|
||||
<input type="hidden" name="sca" value="<?=$sca?>">
|
||||
<select name="sfl" title="검색대상">
|
||||
<option value="wr_subject">제목</option>
|
||||
<option value="wr_content">내용</option>
|
||||
<option value="wr_subject||wr_content">제목+내용</option>
|
||||
<option value="mb_id,1">회원아이디</option>
|
||||
<option value="mb_id,0">회원아이디(코)</option>
|
||||
<option value="wr_name,1">글쓴이</option>
|
||||
<option value="wr_name,0">글쓴이(코)</option>
|
||||
</select>
|
||||
<input name="stx" class="fieldset_input required" maxlength="15" size="15" required value="<?=stripslashes($stx)?>" title="검색어">
|
||||
<input type="hidden" name="sop" value="and">
|
||||
<input type="submit" class="fieldset_submit" value="검색">
|
||||
</form>
|
||||
</fieldset>
|
||||
|
||||
<? if ($rss_href || $write_href) {?>
|
||||
<ul class="btn_bo_user">
|
||||
<? if ($rss_href) { ?><li><a href="<?=$rss_href?>" class="btn02">RSS</a></li><? } ?>
|
||||
@ -60,7 +56,7 @@ if ($is_nogood) $colspan++;
|
||||
</div>
|
||||
|
||||
<!-- 게시판 목록 시작 -->
|
||||
<form id="fboardlist" name="fboardlist" method="post">
|
||||
<form id="fboardlist" name="fboardlist" method="post" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);">
|
||||
<input type="hidden" name="bo_table" value="<?=$bo_table?>">
|
||||
<input type="hidden" name="sfl" value="<?=$sfl?>">
|
||||
<input type="hidden" name="stx" value="<?=$stx?>">
|
||||
@ -106,10 +102,9 @@ for ($i=0; $i<count($list); $i++) {
|
||||
<a href="<?=$list[$i]['ca_name_href']?>" class="bo_cate_link<? if ($wr_id == $list[$i]['wr_id']) echo " bo_current";?>"><?=$list[$i]['ca_name']?></a>
|
||||
<? } ?>
|
||||
|
||||
<a href="<?=$list[$i]['href']?>"<? if ($wr_id == $list[$i]['wr_id']) echo " class=\"bo_current\"";?>><?=$list[$i]['subject']?>
|
||||
|
||||
<? if ($list[$i]['comment_cnt']) { ?><?=$list[$i]['comment_cnt'];?><? } ?>
|
||||
|
||||
<a href="<?=$list[$i]['href']?>"<? if ($wr_id == $list[$i]['wr_id']) echo " class=\"bo_current\"";?>>
|
||||
<?=$list[$i]['subject']?>
|
||||
<? if ($list[$i]['comment_cnt']) { ?><?=$list[$i]['comment_cnt'];?><? } ?>
|
||||
</a>
|
||||
|
||||
<?
|
||||
@ -133,17 +128,16 @@ for ($i=0; $i<count($list); $i++) {
|
||||
<? if (count($list) == 0) { echo '<tr><td colspan="'.$colspan.'" class="empty_table">게시물이 없습니다.</td></tr>'; } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<div class="bo_link">
|
||||
<div class="bo_fx">
|
||||
<ul class="btn_bo_adm">
|
||||
<? if ($list_href) { ?>
|
||||
<li><a href="<?=$list_href?>" class="btn02">목록</a></li>
|
||||
<? } ?>
|
||||
<? if ($is_checkbox) { ?>
|
||||
<li><a href="javascript:select_delete();" class="btn02">선택삭제</a></li>
|
||||
<li><a href="javascript:select_copy('copy');" class="btn02">선택복사</a></li>
|
||||
<li><a href="javascript:select_copy('move');" class="btn02">선택이동</a></li>
|
||||
<li><input type="submit" name="btn_submit" class="btn02" onclick="document.pressed=this.value" value="선택삭제"></li>
|
||||
<li><input type="submit" name="btn_submit" class="btn02" onclick="document.pressed=this.value" value="선택복사"></li>
|
||||
<li><input type="submit" name="btn_submit" class="btn02" onclick="document.pressed=this.value" value="선택이동"></li>
|
||||
<? } ?>
|
||||
</ul>
|
||||
|
||||
@ -151,6 +145,11 @@ for ($i=0; $i<count($list); $i++) {
|
||||
<li><? if ($write_href) { ?><a href="<?=$write_href?>" class="btn01">글쓰기</a><? } ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<noscript>
|
||||
<p>자바스크립트를 사용하지 않는 경우<br>별도의 확인 절차 없이 바로 선택삭제 처리하므로 주의하시기 바랍니다.</p>
|
||||
</noscript>
|
||||
|
||||
<!-- 페이지 -->
|
||||
<div class="pg">
|
||||
@ -175,8 +174,7 @@ function all_checked(sw) {
|
||||
}
|
||||
}
|
||||
|
||||
function check_confirm(str) {
|
||||
var f = document.fboardlist;
|
||||
function fboardlist_submit(f) {
|
||||
var chk_count = 0;
|
||||
|
||||
for (var i=0; i<f.length; i++) {
|
||||
@ -185,27 +183,28 @@ function check_confirm(str) {
|
||||
}
|
||||
|
||||
if (!chk_count) {
|
||||
alert(str + "할 게시물을 하나 이상 선택하세요.");
|
||||
alert(document.pressed + "할 게시물을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(document.pressed == "선택복사") {
|
||||
select_copy("copy");
|
||||
return;
|
||||
}
|
||||
|
||||
if(document.pressed == "선택이동") {
|
||||
select_copy("move");
|
||||
return;
|
||||
}
|
||||
|
||||
if(document.pressed == "선택삭제") {
|
||||
if (!confirm("선택한 게시물을 정말 삭제하시겠습니까?\n\n한번 삭제한 자료는 복구할 수 없습니다"))
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// 선택한 게시물 삭제
|
||||
function select_delete() {
|
||||
var f = document.fboardlist;
|
||||
|
||||
str = "삭제";
|
||||
if (!check_confirm(str))
|
||||
return;
|
||||
|
||||
if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
|
||||
return;
|
||||
|
||||
f.action = "./delete_all.php";
|
||||
f.submit();
|
||||
}
|
||||
|
||||
// 선택한 게시물 복사 및 이동
|
||||
function select_copy(sw) {
|
||||
var f = document.fboardlist;
|
||||
@ -215,9 +214,6 @@ function select_copy(sw) {
|
||||
else
|
||||
str = "이동";
|
||||
|
||||
if (!check_confirm(str))
|
||||
return;
|
||||
|
||||
var sub_win = window.open("", "move", "left=50, top=50, width=500, height=550, scrollbars=1");
|
||||
|
||||
f.sw.value = sw;
|
||||
|
||||
@ -118,7 +118,7 @@ echo $option_hidden;
|
||||
<tr>
|
||||
<th scope="row">파일 #<?=$i?></th>
|
||||
<td>
|
||||
<input type="file" name="bf_file[]" class="frm_input frm_file" title="파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능">
|
||||
<input type="file" name="bf_file[]" class="frm_input" title="파일 용량 <?=$upload_max_filesize?> 이하만 업로드 가능">
|
||||
<? if ($is_file_content) { ?>
|
||||
<input type="text" name="bf_content[]" class="frm_input" size="50" title="파일 설명을 입력해주세요.">
|
||||
<?}?>
|
||||
@ -126,14 +126,21 @@ echo $option_hidden;
|
||||
</tr>
|
||||
<?}?>
|
||||
|
||||
<? if ($is_guest) { //자동등록방지 ?>
|
||||
<tr>
|
||||
<th scope="row">자동등록방지</th>
|
||||
<td>
|
||||
<?=$captcha_html?>
|
||||
</td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?=$captcha_html?>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" id="btn_submit" value="글쓰기" accesskey="s">
|
||||
<a href="./board.php?bo_table=<?=$bo_table?>" title="글쓰기를 취소하고 목록으로 돌아가기">목록</a>
|
||||
<input type="submit" id="btn_submit" class="btn_submit" value="글쓰기" accesskey="s">
|
||||
<a href="./board.php?bo_table=<?=$bo_table?>" class="btn_cancel" title="글쓰기를 취소하고 목록으로 돌아가기">목록</a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
@ -50,18 +50,15 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<th scope="row"><label for="file2">첨부 2</label></th>
|
||||
<td><input type="file" id="file2" name="file2" class="frm_input"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">자동등록방지</th>
|
||||
<td><?=captcha_html();?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<fieldset>
|
||||
<legend>자동등록방지</legend>
|
||||
<img id="kcaptcha_image" />
|
||||
<input type="text" name="wr_key" class="fieldset_input required" title="자동등록방지" size="10" required>
|
||||
왼쪽의 글자를 입력하세요.
|
||||
</fieldset>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" id="btn_submit" value="메일발송">
|
||||
<div class="btn_win">
|
||||
<input type="submit" id="btn_submit" class="btn_submit" value="메일발송">
|
||||
<a href="javascript:window.close();">창닫기</a>
|
||||
</div>
|
||||
|
||||
|
||||
@ -37,7 +37,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="btn_window">
|
||||
<div class="btn_win">
|
||||
<a href="javascript:window.close();">창닫기</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
|
||||
<div id="memo_write" class="new_win">
|
||||
<h1>쪽지보내기</h1>
|
||||
|
||||
@ -27,12 +26,22 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<th scope="row"><label for="me_memo">내용</label></th>
|
||||
<td><textarea id="me_memo" name="me_memo" required><?=$content?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">자동등록방지</th>
|
||||
<td>
|
||||
<?=captcha_html();?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<<<<<<< HEAD
|
||||
<?=captcha_html();?>
|
||||
|
||||
<div class="btn_window btn_confirm">
|
||||
=======
|
||||
<div class="btn_win">
|
||||
>>>>>>> 41f59fa9ae589fc22660fde7d19293f195aede31
|
||||
<input type="submit" id="btn_submit" class="btn_submit" value="보내기">
|
||||
<a href="javascript:window.close();">창닫기</a>
|
||||
</div>
|
||||
|
||||
@ -24,7 +24,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<?=conv_content($memo[me_memo], 0)?>
|
||||
</p>
|
||||
</section>
|
||||
<div class="btn_window">
|
||||
<div class="btn_win">
|
||||
<a href="<?=$prev_link?>">이전쪽지</a>
|
||||
<a href="<?=$next_link?>">다음쪽지</a>
|
||||
<? if ($kind == 'recv') { ?><a href="./memo_form.php?me_recv_mb_id=<?=$mb[mb_id]?>&me_id=<?=$memo[me_id]?>">답장</a><? } ?>
|
||||
|
||||
@ -2,21 +2,26 @@
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
?>
|
||||
|
||||
<h1>아이디/패스워드 찾기</h1>
|
||||
<div id="find_info" class="new_win">
|
||||
<h1>아이디/패스워드 찾기</h1>
|
||||
|
||||
<form name="fpasswordlost" method="post" action="<?=$action_url?>" onsubmit="return fpasswordlost_submit(this);" autocomplete="off">
|
||||
<fieldset>
|
||||
<legend>이메일 주소 입력</legend>
|
||||
<p>회원가입 시 등록하신 이메일 주소를 입력해 주시면, 해당 이메일로 아이디와 패스워드 정보를 보내드립니다.</p>
|
||||
<label for="mb_email">E-mail 주소</label>
|
||||
<input type="text" id="mb_email" name="mb_email" class="email" required size="45" title="E-mail 주소">
|
||||
</fieldset>
|
||||
<? echo captcha_html(); ?>
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" value="확인">
|
||||
<a href="javascript:window.close();">창닫기</a>
|
||||
<form name="fpasswordlost" method="post" action="<?=$action_url?>" onsubmit="return fpasswordlost_submit(this);" autocomplete="off">
|
||||
<fieldset>
|
||||
<legend>이메일 주소 입력</legend>
|
||||
<p>
|
||||
회원가입 시 등록하신 이메일 주소를 입력해 주세요.<br>
|
||||
해당 이메일로 아이디와 패스워드 정보를 보내드립니다.
|
||||
</p>
|
||||
<label for="mb_email">E-mail 주소</label>
|
||||
<input type="text" id="mb_email" name="mb_email" class="fieldset_input email" required size="30" title="E-mail 주소">
|
||||
</fieldset>
|
||||
<?=captcha_html(); ?>
|
||||
<div class="btn_win">
|
||||
<input type="submit" class="btn_submit" value="확인">
|
||||
<a href="javascript:window.close();" class="btn_cancel">창닫기</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
function fpasswordlost_submit(f)
|
||||
|
||||
@ -37,7 +37,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<p><?=$mb_profile?></p>
|
||||
</section>
|
||||
|
||||
<div class="btn_window">
|
||||
<div class="btn_win">
|
||||
<a href="javascript:window.close();">창닫기</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -193,9 +193,12 @@ var member_skin_path = "<?=$member_skin_path?>";
|
||||
<td><input type="text" id="reg_mb_recommend" name="mb_recommend" class="frm_input" title="추천인아이디"></td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
</table>
|
||||
|
||||
<?=$captcha_html?>
|
||||
<tr>
|
||||
<th scope="row">자동등록방지</th>
|
||||
<td><?=$captcha_html?></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="btn_confirm">
|
||||
<input type="submit" class="btn_submit" value="회원가입" accesskey="s">
|
||||
|
||||
@ -35,7 +35,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
<?=get_paging($config[cf_write_pages], $page, $total_page, "?$qstr&page=");?>
|
||||
</div>
|
||||
|
||||
<div class="btn_window">
|
||||
<div class="btn_win">
|
||||
<a href="javascript:window.close();">창닫기</a>
|
||||
</div>
|
||||
</div>
|
||||
@ -29,7 +29,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
스크랩을 하시면서 감사 혹은 격려의 댓글을 남기실 수 있습니다.
|
||||
</p>
|
||||
|
||||
<div class="btn_window">
|
||||
<div class="btn_win">
|
||||
<input type="submit" value="스크랩">
|
||||
</div>
|
||||
</div>
|
||||
@ -40,7 +40,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
<p>검색결과가 끝났습니다.</p>
|
||||
|
||||
<div class="btn_window">
|
||||
<div class="btn_win">
|
||||
<a href="javascript:window.close();">창닫기</a>
|
||||
</div>
|
||||
|
||||
|
||||
@ -85,7 +85,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<div class="btn_window">
|
||||
<a href="javascript:window.close();">창닫기</a>
|
||||
<div class="btn_win">
|
||||
<a href="javascript:window.close();" class="btn_cancel">창닫기</a>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user