게시판 설정 작업 중

This commit is contained in:
whitedot
2012-11-09 18:25:19 +09:00
parent 33f680c22b
commit 86199c0cfd
7 changed files with 668 additions and 570 deletions

View File

@ -4,19 +4,19 @@ include_once('./_common.php');
check_demo();
if ($is_admin != "super")
if ($is_admin != 'super')
alert("게시판 삭제는 최고관리자만 가능합니다.");
auth_check($auth[$sub_menu], "d");
auth_check($auth[$sub_menu], 'd');
check_token();
// _BOARD_DELETE_ 상수를 선언해야 board_delete.inc.php 가 정상 작동함
define("_BOARD_DELETE_", TRUE);
define('_BOARD_DELETE_', TRUE);
// include 전에 $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);
if (!$row) {
alert('게시판을 삭제할 수 없습니다.');