관리자 따옴표 수정

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,27 +1,27 @@
<?
$sub_menu = "300200";
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];
$sql = " update $g4[group_table]
set gr_subject = '{$_POST[gr_subject][$k]}',
gr_admin = '{$_POST[gr_admin][$k]}',
gr_use_access = '{$_POST[gr_use_access][$k]}'
where gr_id = '{$_POST[gr_id][$k]}' ";
if ($is_admin != "super")
$sql .= " and gr_admin = '{$_POST[gr_admin][$k]}' ";
$sql = " update {$g4['group_table']}
set gr_subject = '{$_POST['gr_subject'][$k]}',
gr_admin = '{$_POST['gr_admin'][$k]}',
gr_use_access = '{$_POST['gr_use_access'][$k]}'
where gr_id = '{$_POST['gr_id'][$k]}' ";
if ($is_admin != 'super')
$sql .= " and gr_admin = '{$_POST['gr_admin'][$k]}' ";
sql_query($sql);
}
goto_url("./boardgroup_list.php?$qstr");
goto_url('./boardgroup_list.php?'.$qstr);
?>