관리자: 변수 상수 제외 홑따옴표 변수를 상수로
This commit is contained in:
@ -100,7 +100,7 @@ function textarea_size(fld, size)
|
||||
$href2 = '</a>';
|
||||
}
|
||||
$current_class = "";
|
||||
if (isset($sub_menu) && (substr($sub_menu, 0, 2) == substr($menu['menu'.$key][0][0], 0, 2) || $index))
|
||||
if (isset($sub_menu) && (substr($sub_menu, 0, 2) == substr($menu['menu'.$key][0][0], 0, 2) || isset($index)))
|
||||
$current_class = " gnb_1depth_on";
|
||||
echo "<li class=\"gnb_1depth".$current_class."\">";
|
||||
echo $href1 . $menu['menu'.$key][0][1] . $href2;
|
||||
|
||||
@ -10,7 +10,7 @@ $token = get_token();
|
||||
$sql_common = " from {$g4['auth_table']} a left join {$g4['member_table']} b on (a.mb_id=b.mb_id) ";
|
||||
|
||||
$sql_search = " where (1) ";
|
||||
if ($stx) {
|
||||
if (isset($stx)) {
|
||||
$sql_search .= " and ( ";
|
||||
switch ($sfl) {
|
||||
default :
|
||||
@ -147,7 +147,7 @@ $pagelist = get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['
|
||||
</div>
|
||||
|
||||
<?
|
||||
if ($stx)
|
||||
if (isset($stx))
|
||||
echo '<script>document.fsearch.sfl.value = "'.$sfl.'";</script>'.PHP_EOL;
|
||||
|
||||
if (strstr($sfl, 'mb_id'))
|
||||
|
||||
@ -19,7 +19,7 @@ if ($is_admin != "super") {
|
||||
$sql_search .= " and (a.gr_id = b.gr_id and b.gr_admin = '{$member['mb_id']}') ";
|
||||
}
|
||||
|
||||
if ($stx) {
|
||||
if (isset($stx)) {
|
||||
$sql_search .= " and ( ";
|
||||
switch ($sfl) {
|
||||
case "bo_table" :
|
||||
@ -212,7 +212,7 @@ $pagelist = get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['
|
||||
</div>
|
||||
|
||||
<?
|
||||
if ($stx)
|
||||
if (isset($stx))
|
||||
echo '<script>document.fsearch.sfl.value = "'.$sfl.'";</script>';
|
||||
?>
|
||||
</form>
|
||||
|
||||
@ -12,7 +12,7 @@ $sql_search = " where (1) ";
|
||||
if ($is_admin != 'super')
|
||||
$sql_search .= " and (gr_admin = '{$member['mb_id']}') ";
|
||||
|
||||
if ($stx) {
|
||||
if (isset($stx)) {
|
||||
$sql_search .= " and ( ";
|
||||
switch ($sfl) {
|
||||
case "gr_id" :
|
||||
@ -178,7 +178,7 @@ $pagelist = get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['
|
||||
</div>
|
||||
|
||||
<?
|
||||
if ($stx)
|
||||
if (isset($stx))
|
||||
echo '<script>document.fsearch.sfl.value = "'.$sfl.'";</script>';
|
||||
?>
|
||||
</form>
|
||||
|
||||
@ -14,7 +14,7 @@ $sql_common = " from {$g4['group_member_table']} a
|
||||
|
||||
$sql_search = " where gr_id = '{$gr_id}' ";
|
||||
// 회원아이디로 검색되지 않던 오류를 수정
|
||||
if ($stx) {
|
||||
if (isset($stx)) {
|
||||
$sql_search .= " and ( ";
|
||||
switch ($sfl) {
|
||||
default :
|
||||
@ -127,7 +127,7 @@ if ($pagelist) {?>
|
||||
<?}?>
|
||||
|
||||
<?
|
||||
if ($stx)
|
||||
if (isset($stx))
|
||||
echo '<script>document.fsearch.sfl.value = "'.$sfl.'";</script>';
|
||||
?>
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@ $token = get_token();
|
||||
$sql_common = " from {$g4['member_table']} ";
|
||||
|
||||
$sql_search = " where (1) ";
|
||||
if ($stx) {
|
||||
if (isset($stx)) {
|
||||
$sql_search .= " and ( ";
|
||||
switch ($sfl) {
|
||||
case 'mb_point' :
|
||||
@ -32,7 +32,7 @@ if ($stx) {
|
||||
if ($is_admin != 'super')
|
||||
$sql_search .= " and mb_level <= '{$member['mb_level']}' ";
|
||||
|
||||
if (!$sst) {
|
||||
if (!isset($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 (!$page) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if (!isset($page)) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
// 탈퇴회원수
|
||||
@ -70,7 +70,7 @@ $row = sql_fetch($sql);
|
||||
$intercept_count = $row['cnt'];
|
||||
|
||||
$listall = "";
|
||||
if ($sfl || $stx) // 검색일 때만 처음 버튼을 보여줌
|
||||
if (isset($sfl) || isset(isset($stx))) // 검색일 때만 처음 버튼을 보여줌
|
||||
$listall = '<a href="'.$_SERVER['PHP_SELF'].'">전체목록</a>';
|
||||
|
||||
$g4['title'] = '회원관리';
|
||||
@ -116,7 +116,7 @@ var list_delete_php = 'member_list_delete.php';
|
||||
<option value="mb_recommend">추천인</option>
|
||||
</select>
|
||||
<label for="stx">검색어</label>
|
||||
<input type="text" id="stx" name="stx" required value="<?=$stx ?>">
|
||||
<input type="text" id="stx" name="stx" required value="<?=isset(isset($stx))?>">
|
||||
<input type="submit" class="fieldset_submit" value="검색">
|
||||
</fieldset>
|
||||
</form>
|
||||
@ -127,7 +127,7 @@ var list_delete_php = 'member_list_delete.php';
|
||||
</div>
|
||||
<?}?>
|
||||
|
||||
<form id="fmemberlist" name="fmemberlist" method=post>
|
||||
<form id="fmemberlist" name="fmemberlist" method="post">
|
||||
<input type="hidden" name="sst" value='<?=$sst?>'>
|
||||
<input type="hidden" name="sod" value='<?=$sod?>'>
|
||||
<input type="hidden" name="sfl" value='<?=$sfl?>'>
|
||||
@ -217,8 +217,8 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
<td><?=get_member_level_select("mb_level[$i]", 1, $member['mb_level'], $row['mb_level'])?></td>
|
||||
<td><a href="point_list.php?sfl=mb_id&stx=<?=$row['mb_id']?>"><?=number_format($row['mb_point'])?></a></td>
|
||||
<td><?=substr($row['mb_today_login'],2,8)?></td>
|
||||
<td><?=$row[mb_mailling]?'예':'아니오';?></td>
|
||||
<td><?=$row[mb_open]?'예':'아니오';?></td>
|
||||
<td><?=$row['mb_mailling']?'예':'아니오';?></td>
|
||||
<td><?=$row['mb_open']?'예':'아니오';?></td>
|
||||
<td><?=preg_match('/[1-9]/', $row['mb_email_certify'])?'예':'아니오';?></td>
|
||||
<td class="td_chk">
|
||||
<? if(empty($row['mb_leave_date'])){?>
|
||||
@ -250,7 +250,7 @@ $pagelist = get_paging($config['cf_write_pages'], $page, $total_page, '?'.$qstr.
|
||||
</div>
|
||||
|
||||
<?
|
||||
if ($stx)
|
||||
if (isset($stx))
|
||||
echo '<script>document.fsearch.sfl.value = \''.$sfl.'\';</script>';
|
||||
?>
|
||||
</form>
|
||||
|
||||
@ -9,7 +9,7 @@ $token = get_token();
|
||||
$sql_common = " from {$g4['point_table']} ";
|
||||
|
||||
$sql_search = " where (1) ";
|
||||
if ($stx) {
|
||||
if (isset($stx)) {
|
||||
$sql_search .= " and ( ";
|
||||
switch ($sfl) {
|
||||
case 'mb_id' :
|
||||
@ -51,7 +51,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
|
||||
$listall = '<a href="'.$_SERVER['PHP_SELF'].'">전체목록</a>';
|
||||
|
||||
if ($sfl == 'mb_id' && $stx)
|
||||
$mb = get_member($stx);
|
||||
$mb = get_member(isset($stx));
|
||||
|
||||
$g4['title'] = '포인트관리';
|
||||
include_once ('./admin.head.php');
|
||||
@ -181,7 +181,7 @@ $pagelist = get_paging($config['cf_write_pages'], $page, $total_page, "$_SERVER[
|
||||
</div>
|
||||
|
||||
<?
|
||||
if ($stx)
|
||||
if (isset($stx))
|
||||
echo '<script>document.fsearch.sfl.value = \''.$sfl.'\';</script>'.PHP_EOL;
|
||||
|
||||
if (strstr($sfl, 'mb_id'))
|
||||
|
||||
@ -9,7 +9,7 @@ $token = get_token();
|
||||
$sql_common = " from {$g4['poll_table']} ";
|
||||
|
||||
$sql_search = " where (1) ";
|
||||
if ($stx) {
|
||||
if (isset($stx)) {
|
||||
$sql_search .= " and ( ";
|
||||
switch ($sfl) {
|
||||
default :
|
||||
@ -123,7 +123,7 @@ if ($pagelist) {?>
|
||||
<?}?>
|
||||
|
||||
<?
|
||||
if ($stx)
|
||||
if (isset($stx))
|
||||
echo '<script>document.fsearch.sfl.value = \''.$sfl.'\';</script>'.PHP_EOL;
|
||||
?>
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ if (is_array($_POST['chk'])) {
|
||||
$sql_common = " from {$g4['popular_table']} a ";
|
||||
$sql_search = " where (1) ";
|
||||
|
||||
if ($stx) {
|
||||
if (isset($stx)) {
|
||||
$sql_search .= " and ( ";
|
||||
switch ($sfl) {
|
||||
case "pp_word" :
|
||||
@ -58,7 +58,7 @@ $sql = " select *
|
||||
limit {$from_record}, {$rows} ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
if ($stx)
|
||||
if (isset($stx))
|
||||
$listall = '<a href="'.$_SERVER['PHP_SELF'].'">전체목록</a>';
|
||||
|
||||
$g4['title'] = '인기검색어관리';
|
||||
@ -146,7 +146,7 @@ $pagelist = get_paging($config['cf_write_pages'], $page, $total_page, "$_SERVER[
|
||||
</form>
|
||||
|
||||
<?
|
||||
if ($stx)
|
||||
if (isset($stx))
|
||||
echo '<script>document.fsearch.sfl.value = \''.$sfl.'\';</script>';
|
||||
?>
|
||||
|
||||
|
||||
@ -102,7 +102,7 @@ $pagelist = get_paging($config['cf_write_pages'], $page, $total_page, "$_SERVER[
|
||||
</div>
|
||||
|
||||
<?
|
||||
if ($stx)
|
||||
if (isset($stx))
|
||||
echo "<script>document.fsearch.sfl.value = '$sfl';</script>";
|
||||
?>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user