관리자 따옴표 수정

This commit is contained in:
chicpro
2012-11-02 17:18:27 +09:00
parent f3857b4e6c
commit eae06035b0
23 changed files with 831 additions and 833 deletions

View File

@ -1,30 +1,30 @@
<?
$sub_menu = "300100";
include_once("./_common.php");
include_once('./_common.php');
check_demo();
auth_check($auth[$sub_menu], "w");
auth_check($auth[$sub_menu], 'w');
check_token();
for ($i=0; $i<count($chk); $i++)
for ($i=0; $i<count($chk); $i++)
{
// 실제 번호를 넘김
$k = $chk[$i];
if ($is_admin != "super")
if ($is_admin != 'super')
{
$sql = " select count(*) as cnt from $g4[board_table] a, $g4[group_table] b
where a.gr_id = '{$_POST['gr_id'][$k]}'
and a.gr_id = b.gr_id
and b.gr_admin = '$member[mb_id]' ";
$sql = " select count(*) as cnt from {$g4['board_table']} a, {$g4['group_table']} b
where a.gr_id = '{$_POST['gr_id'][$k]}'
and a.gr_id = b.gr_id
and b.gr_admin = '{$member['mb_id']}' ";
$row = sql_fetch($sql);
if (!$row[cnt])
alert("최고관리자가 아닌 경우 다른 관리자의 게시판($board_table[$k])은 수정이 불가합니다.");
if (!$row['cnt'])
alert('최고관리자가 아닌 경우 다른 관리자의 게시판('.$board_table[$k].')은 수정이 불가합니다.');
}
$sql = " update $g4[board_table]
$sql = " update {$g4['board_table']}
set gr_id = '{$_POST['gr_id'][$k]}',
bo_subject = '{$_POST['bo_subject'][$k]}',
bo_skin = '{$_POST['bo_skin'][$k]}',
@ -38,5 +38,5 @@ for ($i=0; $i<count($chk); $i++)
sql_query($sql);
}
goto_url("./board_list.php?$qstr");
goto_url('./board_list.php?'.$qstr);
?>