notice 오류 해결중
This commit is contained in:
@ -4,8 +4,6 @@ include_once('./_common.php');
|
||||
|
||||
auth_check($auth[$sub_menu], 'r');
|
||||
|
||||
$token = get_token();
|
||||
|
||||
// DHTML 에디터 사용 필드 추가 : 061021
|
||||
sql_query(" ALTER TABLE `{$g4['board_table']}` ADD `bo_use_dhtml_editor` TINYINT NOT NULL AFTER `bo_use_secret` ", false);
|
||||
// RSS 보이기 사용 필드 추가 : 061106
|
||||
@ -19,7 +17,7 @@ if ($is_admin != "super") {
|
||||
$sql_search .= " and (a.gr_id = b.gr_id and b.gr_admin = '{$member['mb_id']}') ";
|
||||
}
|
||||
|
||||
if (isset($stx)) {
|
||||
if ($stx) {
|
||||
$sql_search .= " and ( ";
|
||||
switch ($sfl) {
|
||||
case "bo_table" :
|
||||
@ -155,7 +153,7 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
</td>
|
||||
<td>
|
||||
<?if ($is_admin == 'super'){?>
|
||||
<?=get_group_select('gr_id[$i]', $row['gr_id'])?>
|
||||
<?=get_group_select("gr_id[$i]", $row['gr_id'])?>
|
||||
<?}else{?>
|
||||
<input type="hidden" name="gr_id[<?=$i?>]" value="<?=$row['gr_id']?>"><?=$row['gr_subject']?>
|
||||
<?}?>
|
||||
|
||||
@ -6,15 +6,12 @@ check_demo();
|
||||
|
||||
auth_check($auth[$sub_menu], 'w');
|
||||
|
||||
check_token();
|
||||
for ($i=0; $i<count($_POST['chk']); $i++) {
|
||||
|
||||
for ($i=0; $i<count($chk); $i++)
|
||||
{
|
||||
// 실제 번호를 넘김
|
||||
$k = $chk[$i];
|
||||
$k = $_POST['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
|
||||
|
||||
@ -55,20 +55,6 @@ else if ($w == 'u')
|
||||
else
|
||||
alert('제대로 된 값이 넘어오지 않았습니다.');
|
||||
|
||||
<<<<<<< HEAD
|
||||
if ($mb['mb_mailling'] == 1) $mailling_checked = 'checked="checked"'; //메일수신
|
||||
else {
|
||||
$mailing_checked = '';
|
||||
$mailling_no_checked = 'checked="checked"';
|
||||
}
|
||||
if ($mb['mb_sms']) $sms_checked = 'checked="checked"'; // SMS 수신
|
||||
else {
|
||||
$sms_checked = '';
|
||||
$sms_no_checked = 'checked="checked"';
|
||||
}
|
||||
if ($mb['mb_open']) $open_checked = 'checked="checked"'; // 정보 공개
|
||||
else {
|
||||
=======
|
||||
$mailling_no_checked = '';
|
||||
$sms_no_checked = '';
|
||||
$open_no_checked = '';
|
||||
@ -89,7 +75,6 @@ if ($mb['mb_sms']) {
|
||||
if ($mb['mb_open']) {
|
||||
$open_checked = 'checked="checked"'; // 정보 공개
|
||||
} else {
|
||||
>>>>>>> 2b5c471bdb62542fc9cb8b6740a934c34e5de04b
|
||||
$open_checked = '';
|
||||
$open_no_checked = 'checked="checked"';
|
||||
}
|
||||
@ -264,7 +249,7 @@ include_once('./admin.head.php');
|
||||
|
||||
<fieldset id="admin_confirm">
|
||||
<legend>XSS 혹은 CSRF 방지</legend>
|
||||
<p>관리자 권한을 탈취당하는 경우를 대비하여 패스워드를 다시 한번 확인합니다.</p>
|
||||
<p>관리자 권한을 탈취 당하는 경우를 대비하여 관리자의 패스워드를 다시 한번 확인합니다.</p>
|
||||
<label for="admin_password">관리자 패스워드</label>
|
||||
<input type="password" id="admin_password" name="admin_password" class="required" title="관리자 패스워드">
|
||||
</fieldset>
|
||||
|
||||
@ -9,7 +9,7 @@ $token = get_token();
|
||||
$sql_common = " from {$g4['member_table']} ";
|
||||
|
||||
$sql_search = " where (1) ";
|
||||
if (isset($stx)) {
|
||||
if ($stx) {
|
||||
$sql_search .= " and ( ";
|
||||
switch ($sfl) {
|
||||
case 'mb_point' :
|
||||
@ -32,7 +32,7 @@ if (isset($stx)) {
|
||||
if ($is_admin != 'super')
|
||||
$sql_search .= " and mb_level <= '{$member['mb_level']}' ";
|
||||
|
||||
if (!isset($sst)) {
|
||||
if (!$sst) {
|
||||
$sst = "mb_datetime";
|
||||
$sod = "desc";
|
||||
}
|
||||
@ -48,7 +48,7 @@ $total_count = $row['cnt'];
|
||||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if (!isset($page)) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if (!$page) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
// 탈퇴회원수
|
||||
|
||||
@ -9,7 +9,7 @@ $token = get_token();
|
||||
$sql_common = " from {$g4['point_table']} ";
|
||||
|
||||
$sql_search = " where (1) ";
|
||||
if (isset($stx)) {
|
||||
if ($stx) {
|
||||
$sql_search .= " and ( ";
|
||||
switch ($sfl) {
|
||||
case 'mb_id' :
|
||||
@ -84,15 +84,9 @@ function point_clear()
|
||||
<?=$listall?>
|
||||
전체 <?=number_format($total_count)?> 건
|
||||
<?
|
||||
<<<<<<< HEAD
|
||||
if ($mb['mb_id'])
|
||||
echo ' (' . $mb['mb_id'] .' 님 포인트 합계 : ' . number_format($mb['mb_point']) . '점)';
|
||||
else {
|
||||
=======
|
||||
if (isset($mb['mb_id']) && $mb['mb_id']) {
|
||||
echo ' (' . $mb['mb_id'] .' 님 포인트 합계 : ' . number_format($mb['mb_point']) . '점)';
|
||||
} else {
|
||||
>>>>>>> 35e2a0e57216e9ff77b98266f30f5e8f87800654
|
||||
$row2 = sql_fetch(" select sum(po_point) as sum_point from {$g4['point_table']} ");
|
||||
echo ' (전체 합계 '.number_format($row2['sum_point']).'점)';
|
||||
}
|
||||
@ -179,11 +173,7 @@ if ($i == 0)
|
||||
</div>
|
||||
|
||||
<?
|
||||
<<<<<<< HEAD
|
||||
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, "$_SERVER['PHP_SELF']?$qstr&page=");
|
||||
=======
|
||||
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");
|
||||
>>>>>>> 35e2a0e57216e9ff77b98266f30f5e8f87800654
|
||||
?>
|
||||
<div class="pg">
|
||||
<?=$pagelist?>
|
||||
|
||||
@ -9,7 +9,7 @@ $token = get_token();
|
||||
$sql_common = " from {$g4['poll_table']} ";
|
||||
|
||||
$sql_search = " where (1) ";
|
||||
if (isset($stx)) {
|
||||
if ($stx) {
|
||||
$sql_search .= " and ( ";
|
||||
switch ($sfl) {
|
||||
default :
|
||||
@ -44,6 +44,7 @@ $sql = " select *
|
||||
limit {$from_record}, {$rows} ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$listall = '';
|
||||
if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
$listall = '<a href="'.$_SERVER['PHP_SELF'].'">전체목록</a>';
|
||||
|
||||
@ -115,8 +116,9 @@ if ($i==0)
|
||||
</table>
|
||||
|
||||
<?
|
||||
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, "$_SERVER['PHP_SELF']?$qstr&page=");
|
||||
if ($pagelist) {?>
|
||||
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");
|
||||
if ($pagelist) {
|
||||
?>
|
||||
<div class="pg">
|
||||
<?=$pagelist?>
|
||||
</div>
|
||||
|
||||
@ -10,9 +10,6 @@ include_once('./visit.sub.php');
|
||||
|
||||
$colspan = 5;
|
||||
|
||||
//unset($br); // 브라우저
|
||||
//unset($os); // OS
|
||||
|
||||
$sql_common = " from {$g4['visit_table']} ";
|
||||
$sql_search = " where vi_date between '{$fr_date}' and '{$to_date}' ";
|
||||
if (isset($domain))
|
||||
@ -105,14 +102,10 @@ if ($i == 0)
|
||||
</tbody>
|
||||
</table>
|
||||
<?
|
||||
<<<<<<< HEAD
|
||||
$page = get_paging($config['cf_write_pages'], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&domain=$domain&page=");
|
||||
=======
|
||||
if (isset($domain))
|
||||
$qstr .= "&domain=$domain";
|
||||
$qstr .= "&page=";
|
||||
$page = get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr");
|
||||
>>>>>>> 2b5c471bdb62542fc9cb8b6740a934c34e5de04b
|
||||
if ($page) {
|
||||
?>
|
||||
<div class="pg">
|
||||
|
||||
@ -491,8 +491,9 @@ if (isset($bo_table)) {
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($gr_id))
|
||||
if (!empty($_GET['gr_id'])) {
|
||||
$group = sql_fetch(" select * from {$g4['group_table']} where gr_id = '$gr_id' ");
|
||||
}
|
||||
|
||||
if ($is_admin != 'super') {
|
||||
// 접근가능 IP
|
||||
|
||||
@ -1567,4 +1567,11 @@ function escape_trim($field)
|
||||
{
|
||||
return mysql_real_escape_string(htmlentities(trim($field)));
|
||||
}
|
||||
|
||||
|
||||
// $_POST 형식에서 checkbox 엘리먼트의 checked 속성에서 checked 가 되어 넘어 왔는지를 검사
|
||||
function is_checked($field)
|
||||
{
|
||||
return !empty($_POST[$field]);
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user