게시판 설정 작업 중
This commit is contained in:
@ -46,7 +46,7 @@ function member_delete($mb_id)
|
|||||||
|
|
||||||
// 회원자료는 정보만 없앤 후 아이디는 보관하여 다른 사람이 사용하지 못하도록 함 : 061025
|
// 회원자료는 정보만 없앤 후 아이디는 보관하여 다른 사람이 사용하지 못하도록 함 : 061025
|
||||||
if ($mb['mb_level'] > 1) {
|
if ($mb['mb_level'] > 1) {
|
||||||
$sql = " update $g4[member_table]
|
" update $g4[member_table]
|
||||||
set mb_jumin = '',
|
set mb_jumin = '',
|
||||||
mb_password = '',
|
mb_password = '',
|
||||||
mb_level = 1,
|
mb_level = 1,
|
||||||
@ -222,10 +222,14 @@ function rm_rf($file)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 삭제 대상 : 지운아빠 2012-11-01 : github issue #8 comment 추가내용의 1. 내용 참조
|
// 입력 폼 안내문
|
||||||
// 프로그램 오류 때문에 임시로 살려둠
|
function help($help="")
|
||||||
function help($help='', $left=0, $top=0)
|
|
||||||
{
|
{
|
||||||
|
global $g4;
|
||||||
|
|
||||||
|
$str = '<span class="adm_field_explain">'.$help.'</span>';
|
||||||
|
|
||||||
|
return $str;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 출력순서
|
// 출력순서
|
||||||
|
|||||||
@ -14,7 +14,7 @@ if ($stx) {
|
|||||||
$sql_search .= " and ( ";
|
$sql_search .= " and ( ";
|
||||||
switch ($sfl) {
|
switch ($sfl) {
|
||||||
default :
|
default :
|
||||||
$sql_search .= " ($sfl like '%$stx%') ";
|
$sql_search .= " ({$sfl} like '%{$stx}%') ";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$sql_search .= " ) ";
|
$sql_search .= " ) ";
|
||||||
|
|||||||
@ -1,62 +1,50 @@
|
|||||||
<?
|
<?
|
||||||
$sub_menu = '300100';
|
$sub_menu = "300100";
|
||||||
include_once('./_common.php');
|
include_once("./_common.php");
|
||||||
|
|
||||||
auth_check($auth[$sub_menu], 'w');
|
auth_check($auth[$sub_menu], 'w');
|
||||||
|
|
||||||
$token = get_token();
|
$token = get_token();
|
||||||
|
|
||||||
$g4[title] = '게시판 복사';
|
$g4[title] = '게시판 복사';
|
||||||
|
$administrator = 1;
|
||||||
include_once($g4['path'].'/head.sub.php');
|
include_once($g4['path'].'/head.sub.php');
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<link rel='stylesheet' href='./admin.style.css' type='text/css'>
|
<form id="fboardcopy" name="fboardcopy" method="post" onsubmit="return fboardcopy_check(this);" autocomplete="off">
|
||||||
|
<input type="hidden" id="bo_table" name="bo_table" value="<?=$bo_table?>">
|
||||||
<form id='fboardcopy' name='fboardcopy' method="post" onsubmit='return fboardcopy_check(this);' autocomplete='off'>
|
<input type="hidden" id="token" name="token" value="<?=$token?>">
|
||||||
<input type='hidden' id='bo_table' name='bo_table' value='<?=$bo_table?>'>
|
<table>
|
||||||
<input type='hidden' id='token' name='token' value='<?=$token?>'>
|
|
||||||
<table width=100% cellpadding=0 cellspacing=0>
|
|
||||||
<colgroup width=30% class="col1 pad1 bold right">
|
|
||||||
<colgroup width=70% class="col2 pad2">
|
|
||||||
<tr><td colspan=2 height=5></td></tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan=2 class=title align=left><img src="<?=$g4['admin_path']?>/img/icon_title.gif"> <?=$g4['title']?></td>
|
<th scope="col" id="th1">원본 테이블</th>
|
||||||
|
<td headers="th1"><?=$bo_table?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td colspan=2 class="line1"></td></tr>
|
<tr>
|
||||||
<tr class="ht">
|
<th scope="col" id="th2">복사할 TABLE</th>
|
||||||
<td>원본 테이블</td>
|
<td headers="th2"><input type="text" id="target_table" name="target_table" maxlength="20" required alphanumericunderline> 영문자, 숫자, _ 만 가능 (공백없이)</td>
|
||||||
<td><?=$bo_table?></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="ht">
|
<tr>
|
||||||
<td>복사할 TABLE</td>
|
<th scope="col" id="th3">게시판 제목</th>
|
||||||
<td><input type='text' class=ed id='target_table' name='target_table' size='20' maxlength='20' required alphanumericunderline id='TABLE' name='TABLE'> 영문자, 숫자, _ 만 가능 (공백없이)</td>
|
<td headers="th3"><input type="text" id="target_subject" name="target_subject" maxlength=120 required value="[복사본] <?=$board["bo_subject"]?>"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="ht">
|
<tr>
|
||||||
<td>게시판 제목</td>
|
<th scope="col" id="th4">복사 유형</th>
|
||||||
<td><input type='text' class=ed id='target_subject' name='target_subject' size=60 maxlength=120 required 제목" value="[복사본] <?=$board['bo_subject']?>"></td>
|
<td headers="th4">
|
||||||
</tr>
|
<input type="radio" id="copy_case" name="copy_case" value="schema_only" checked>구조만
|
||||||
<tr class="ht">
|
<input type="radio" id="copy_case" name="copy_case" value="schema_data_both">구조와 데이터
|
||||||
<td>복사 유형</td>
|
|
||||||
<td>
|
|
||||||
<input type='radio' id='copy_case' name='copy_case' value='schema_only' checked>구조만
|
|
||||||
<input type='radio' id='copy_case' name='copy_case' value='schema_data_both'>구조와 데이터
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr height=40>
|
|
||||||
<td></td>
|
|
||||||
<td>
|
|
||||||
<input type='submit' value=' 복 사 ' class=btn1>
|
|
||||||
<input type='button' value='창닫기' onclick='window.close();' class=btn1>
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<input type="submit" value="복사">
|
||||||
|
<input type="button" value="창닫기" onclick="window.close();">
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function fboardcopy_check(f)
|
function fboardcopy_check(f)
|
||||||
{
|
{
|
||||||
f.action = './board_copy_update.php';
|
f.action = "./board_copy_update.php";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -12,19 +12,19 @@ if (!$tmp_bo_table) { return; }
|
|||||||
//if ($row[cnt] <= 1) { return; }
|
//if ($row[cnt] <= 1) { return; }
|
||||||
|
|
||||||
// 게시판 설정 삭제
|
// 게시판 설정 삭제
|
||||||
sql_query(" delete from {$g4['board_table']} where bo_table = '$tmp_bo_table' ");
|
sql_query(" delete from {$g4['board_table']} where bo_table = '{$tmp_bo_table}' ");
|
||||||
|
|
||||||
// 최신글 삭제
|
// 최신글 삭제
|
||||||
sql_query(" delete from {$g4['board_new_table']} where bo_table = '$tmp_bo_table' ");
|
sql_query(" delete from {$g4['board_new_table']} where bo_table = '{$tmp_bo_table}' ");
|
||||||
|
|
||||||
// 스크랩 삭제
|
// 스크랩 삭제
|
||||||
sql_query(" delete from {$g4['scrap_table']} where bo_table = '$tmp_bo_table' ");
|
sql_query(" delete from {$g4['scrap_table']} where bo_table = '{$tmp_bo_table}' ");
|
||||||
|
|
||||||
// 파일 삭제
|
// 파일 삭제
|
||||||
sql_query(" delete from {$g4['board_file_table']} where bo_table = '$tmp_bo_table' ");
|
sql_query(" delete from {$g4['board_file_table']} where bo_table = '{$tmp_bo_table}' ");
|
||||||
|
|
||||||
// 게시판 테이블 DROP
|
// 게시판 테이블 DROP
|
||||||
sql_query(" drop table {$g4['write_prefix']}$tmp_bo_table ", FALSE);
|
sql_query(" drop table {$g4['write_prefix']}{$tmp_bo_table} ", FALSE);
|
||||||
|
|
||||||
// 게시판 폴더 전체 삭제
|
// 게시판 폴더 전체 삭제
|
||||||
rm_rf($g4['path'].'/data/file/'.$tmp_bo_table);
|
rm_rf($g4['path'].'/data/file/'.$tmp_bo_table);
|
||||||
|
|||||||
@ -4,19 +4,19 @@ include_once('./_common.php');
|
|||||||
|
|
||||||
check_demo();
|
check_demo();
|
||||||
|
|
||||||
if ($is_admin != "super")
|
if ($is_admin != 'super')
|
||||||
alert("게시판 삭제는 최고관리자만 가능합니다.");
|
alert("게시판 삭제는 최고관리자만 가능합니다.");
|
||||||
|
|
||||||
auth_check($auth[$sub_menu], "d");
|
auth_check($auth[$sub_menu], 'd');
|
||||||
|
|
||||||
check_token();
|
check_token();
|
||||||
|
|
||||||
// _BOARD_DELETE_ 상수를 선언해야 board_delete.inc.php 가 정상 작동함
|
// _BOARD_DELETE_ 상수를 선언해야 board_delete.inc.php 가 정상 작동함
|
||||||
define("_BOARD_DELETE_", TRUE);
|
define('_BOARD_DELETE_', TRUE);
|
||||||
|
|
||||||
// include 전에 $bo_table 값을 반드시 넘겨야 함
|
// include 전에 $bo_table 값을 반드시 넘겨야 함
|
||||||
$tmp_bo_table = mysql_real_escape_string(trim($_POST['bo_table']));
|
$tmp_bo_table = mysql_real_escape_string(trim($_POST['bo_table']));
|
||||||
$sql = " select * from {$g4['board_table']} where bo_table = '$tmp_bo_table' ";
|
$sql = " select * from {$g4['board_table']} where bo_table = '{$tmp_bo_table}' ";
|
||||||
$row = sql_fetch($sql);
|
$row = sql_fetch($sql);
|
||||||
if (!$row) {
|
if (!$row) {
|
||||||
alert('게시판을 삭제할 수 없습니다.');
|
alert('게시판을 삭제할 수 없습니다.');
|
||||||
|
|||||||
1141
adm/board_form.php
1141
adm/board_form.php
File diff suppressed because it is too large
Load Diff
@ -394,9 +394,12 @@ include_once ('./admin.head.php');
|
|||||||
<p>관리자 권한을 탈취당하는 경우를 대비하여 패스워드를 다시 한번 확인합니다.</p>
|
<p>관리자 권한을 탈취당하는 경우를 대비하여 패스워드를 다시 한번 확인합니다.</p>
|
||||||
<label for="admin_password">관리자 패스워드</label>
|
<label for="admin_password">관리자 패스워드</label>
|
||||||
<input type="password" id="admin_password" name="admin_password" required title="관리자 패스워드">
|
<input type="password" id="admin_password" name="admin_password" required title="관리자 패스워드">
|
||||||
<input type="submit" accesskey="s" value="확인">
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
|
<div class="btn_confirm">
|
||||||
|
<input type="submit" accesskey="s" value="확인">
|
||||||
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Reference in New Issue
Block a user