diff --git a/adm/board_list.php b/adm/board_list.php
index b228ca368..2e0ba427c 100644
--- a/adm/board_list.php
+++ b/adm/board_list.php
@@ -4,11 +4,11 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], 'r');
-$sql_common = " from {$g4['board_table']} a ";
+$sql_common = " from {$g5['board_table']} a ";
$sql_search = " where (1) ";
if ($is_admin != "super") {
- $sql_common .= " , {$g4['group_table']} b ";
+ $sql_common .= " , {$g5['group_table']} b ";
$sql_search .= " and (a.gr_id = b.gr_id and b.gr_admin = '{$member['mb_id']}') ";
}
@@ -50,7 +50,7 @@ $listall = '';
if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
$listall = '전체목록';
-$g4['title'] = '게시판관리';
+$g5['title'] = '게시판관리';
include_once('./admin.head.php');
$colspan = 15;
@@ -148,7 +148,7 @@ $colspan = 15;
|
-
+
|
@@ -192,7 +192,7 @@ $colspan = 15;
-
+
@@ -217,9 +217,9 @@ include_once('./admin.head.php');
';
echo '삭제';
}
diff --git a/adm/member_form_update.php b/adm/member_form_update.php
index 976538f0b..1ce9a55f1 100644
--- a/adm/member_form_update.php
+++ b/adm/member_form_update.php
@@ -1,7 +1,7 @@
'$mb_id' ";
+ $sql = " select count(*) as cnt from {$g5['member_table']} where mb_email = '{$_POST['mb_email']}' and mb_id <> '$mb_id' ";
$row = sql_fetch($sql);
if($row['cnt'])
alert('다른 회원이 사용 중인 이메일입니다.');
@@ -99,7 +99,7 @@ else if ($w == 'u')
// 회원 아이콘 삭제
if ($del_mb_icon)
- @unlink(G4_DATA_PATH.'/member/'.$mb_dir.'/'.$mb_id.'.gif');
+ @unlink(G5_DATA_PATH.'/member/'.$mb_dir.'/'.$mb_id.'.gif');
// 아이콘 업로드
if (is_uploaded_file($_FILES['mb_icon']['tmp_name'])) {
@@ -108,13 +108,13 @@ else if ($w == 'u')
}
if (preg_match("/(\.gif)$/i", $_FILES['mb_icon']['name'])) {
- @mkdir(G4_DATA_PATH.'/member/'.$mb_dir, G4_DIR_PERMISSION);
- @chmod(G4_DATA_PATH.'/member/'.$mb_dir, G4_DIR_PERMISSION);
+ @mkdir(G5_DATA_PATH.'/member/'.$mb_dir, G5_DIR_PERMISSION);
+ @chmod(G5_DATA_PATH.'/member/'.$mb_dir, G5_DIR_PERMISSION);
- $dest_path = G4_DATA_PATH.'/member/'.$mb_dir.'/'.$mb_id.'.gif';
+ $dest_path = G5_DATA_PATH.'/member/'.$mb_dir.'/'.$mb_id.'.gif';
move_uploaded_file($_FILES['mb_icon']['tmp_name'], $dest_path);
- chmod($dest_path, G4_FILE_PERMISSION);
+ chmod($dest_path, G5_FILE_PERMISSION);
if (file_exists($dest_path)) {
$size = getimagesize($dest_path);
@@ -132,11 +132,11 @@ else if ($w == 'u')
$sql_password = "";
if ($passive_certify)
- $sql_certify = " , mb_email_certify = '".G4_TIME_YMDHIS."' ";
+ $sql_certify = " , mb_email_certify = '".G5_TIME_YMDHIS."' ";
else
$sql_certify = "";
- $sql = " update {$g4['member_table']}
+ $sql = " update {$g5['member_table']}
set {$sql_common}
{$sql_password}
{$sql_certify}
diff --git a/adm/member_list.php b/adm/member_list.php
index 45d5593fa..fe4a6ce7b 100644
--- a/adm/member_list.php
+++ b/adm/member_list.php
@@ -4,7 +4,7 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], 'r');
-$sql_common = " from {$g4['member_table']} ";
+$sql_common = " from {$g5['member_table']} ";
$sql_search = " where (1) ";
if ($stx) {
@@ -60,7 +60,7 @@ $listall = "";
if (isset($sfl) || isset($stx)) // 검색일 때만 처음 버튼을 보여줌
$listall = '전체목록';
-$g4['title'] = '회원관리';
+$g5['title'] = '회원관리';
include_once('./admin.head.php');
$sql = " select * {$sql_common} {$sql_search} {$sql_order} limit {$from_record}, {$rows} ";
@@ -163,7 +163,7 @@ $colspan = 15;
그룹';
- $leave_date = $row['mb_leave_date'] ? $row['mb_leave_date'] : date('Ymd', G4_SERVER_TIME);
- $intercept_date = $row['mb_intercept_date'] ? $row['mb_intercept_date'] : date('Ymd', G4_SERVER_TIME);
+ $leave_date = $row['mb_leave_date'] ? $row['mb_leave_date'] : date('Ymd', G5_SERVER_TIME);
+ $intercept_date = $row['mb_intercept_date'] ? $row['mb_intercept_date'] : date('Ymd', G5_SERVER_TIME);
$mb_nick = get_sideview($row['mb_id'], $row['mb_nick'], $row['mb_email'], $row['mb_homepage']);
@@ -282,7 +282,7 @@ $colspan = 15;
-
+
'."\n";
diff --git a/adm/point_list.php b/adm/point_list.php
index cf6663f46..51535e184 100644
--- a/adm/point_list.php
+++ b/adm/point_list.php
@@ -6,7 +6,7 @@ auth_check($auth[$sub_menu], 'r');
$token = get_token();
-$sql_common = " from {$g4['point_table']} ";
+$sql_common = " from {$g5['point_table']} ";
$sql_search = " where (1) ";
@@ -56,7 +56,7 @@ $mb = array();
if ($sfl == 'mb_id' && $stx)
$mb = get_member($stx);
-$g4['title'] = '포인트관리';
+$g5['title'] = '포인트관리';
include_once ('./admin.head.php');
$colspan = 9;
@@ -92,7 +92,7 @@ function point_clear()
if (isset($mb['mb_id']) && $mb['mb_id']) {
echo ' (' . $mb['mb_id'] .' 님 포인트 합계 : ' . number_format($mb['mb_point']) . '점)';
} else {
- $row2 = sql_fetch(" select sum(po_point) as sum_point from {$g4['point_table']} ");
+ $row2 = sql_fetch(" select sum(po_point) as sum_point from {$g5['point_table']} ");
echo ' (전체 합계 '.number_format($row2['sum_point']).'점)';
}
?>
@@ -147,7 +147,7 @@ function point_clear()
';
+ $link1 = '';
$link2 = '';
}
@@ -201,7 +201,7 @@ function point_clear()
-
+
개별회원 포인트 증감 설정
diff --git a/adm/point_list_delete.php b/adm/point_list_delete.php
index f9cc2c8cd..9d106ac8e 100644
--- a/adm/point_list_delete.php
+++ b/adm/point_list_delete.php
@@ -18,7 +18,7 @@ for ($i=0; $i<$count; $i++)
$k = $_POST['chk'][$i];
// 포인트 내역정보
- $sql = " select * from {$g4['point_table']} where po_id = '{$_POST['po_id'][$k]}' ";
+ $sql = " select * from {$g5['point_table']} where po_id = '{$_POST['po_id'][$k]}' ";
$row = sql_fetch($sql);
if(!$row['po_id'])
@@ -39,11 +39,11 @@ for ($i=0; $i<$count; $i++)
}
// 포인트 내역삭제
- $sql = " delete from {$g4['point_table']} where po_id = '{$_POST['po_id'][$k]}' ";
+ $sql = " delete from {$g5['point_table']} where po_id = '{$_POST['po_id'][$k]}' ";
sql_query($sql);
// po_mb_point에 반영
- $sql = " update {$g4['point_table']}
+ $sql = " update {$g5['point_table']}
set po_mb_point = po_mb_point - '{$row['po_point']}'
where mb_id = '{$_POST['mb_id'][$k]}'
and po_id > '{$_POST['po_id'][$k]}' ";
@@ -51,7 +51,7 @@ for ($i=0; $i<$count; $i++)
// 포인트 UPDATE
$sum_point = get_point_sum($_POST['mb_id'][$k]);
- $sql= " update {$g4['member_table']} set mb_point = '$sum_point' where mb_id = '{$_POST['mb_id'][$k]}' ";
+ $sql= " update {$g5['member_table']} set mb_point = '$sum_point' where mb_id = '{$_POST['mb_id'][$k]}' ";
sql_query($sql);
}
diff --git a/adm/poll_delete.php b/adm/poll_delete.php
index 1252e4329..0a20f2d5f 100644
--- a/adm/poll_delete.php
+++ b/adm/poll_delete.php
@@ -16,10 +16,10 @@ if(!$count)
for($i=0; $i<$count; $i++) {
$po_id = $_POST['chk'][$i];
- $sql = " delete from {$g4['poll_table']} where po_id = '$po_id' ";
+ $sql = " delete from {$g5['poll_table']} where po_id = '$po_id' ";
sql_query($sql);
- $sql = " delete from {$g4['poll_etc_table']} where po_id = '$po_id' ";
+ $sql = " delete from {$g5['poll_etc_table']} where po_id = '$po_id' ";
sql_query($sql);
}
diff --git a/adm/poll_form.php b/adm/poll_form.php
index 088702e15..c518a4df0 100644
--- a/adm/poll_form.php
+++ b/adm/poll_form.php
@@ -11,12 +11,12 @@ if ($w == '')
$html_title .= ' 생성';
else if ($w == 'u') {
$html_title .= ' 수정';
- $sql = " select * from {$g4['poll_table']} where po_id = '{$po_id}' ";
+ $sql = " select * from {$g5['poll_table']} where po_id = '{$po_id}' ";
$po = sql_fetch($sql);
} else
alert('w 값이 제대로 넘어오지 않았습니다.');
-$g4['title'] = $html_title;
+$g5['title'] = $html_title;
include_once('./admin.head.php');
?>
diff --git a/adm/poll_form_update.php b/adm/poll_form_update.php
index e47ba0bd8..ef955f793 100644
--- a/adm/poll_form_update.php
+++ b/adm/poll_form_update.php
@@ -12,16 +12,16 @@ check_token();
if ($w == '')
{
- $sql = " insert {$g4['poll_table']}
+ $sql = " insert {$g5['poll_table']}
( po_subject, po_poll1, po_poll2, po_poll3, po_poll4, po_poll5, po_poll6, po_poll7, po_poll8, po_poll9, po_cnt1, po_cnt2, po_cnt3, po_cnt4, po_cnt5, po_cnt6, po_cnt7, po_cnt8, po_cnt9, po_etc, po_level, po_point, po_date )
- values ( '{$_POST['po_subject']}', '{$_POST['po_poll1']}', '{$_POST['po_poll2']}', '{$_POST['po_poll3']}', '{$_POST['po_poll4']}', '{$_POST['po_poll5']}', '{$_POST['po_poll6']}', '{$_POST['po_poll7']}', '{$_POST['po_poll8']}', '{$_POST['po_poll9']}', '{$_POST['po_cnt1']}', '{$_POST['po_cnt2']}', '{$_POST['po_cnt3']}', '{$_POST['po_cnt4']}', '{$_POST['po_cnt5']}', '{$_POST['po_cnt6']}', '{$_POST['po_cnt7']}', '{$_POST['po_cnt8']}', '{$_POST['po_cnt9']}', '{$_POST['po_etc']}', '{$_POST['po_level']}', '{$_POST['po_point']}', '".G4_TIME_YMDHIS."' ) ";
+ values ( '{$_POST['po_subject']}', '{$_POST['po_poll1']}', '{$_POST['po_poll2']}', '{$_POST['po_poll3']}', '{$_POST['po_poll4']}', '{$_POST['po_poll5']}', '{$_POST['po_poll6']}', '{$_POST['po_poll7']}', '{$_POST['po_poll8']}', '{$_POST['po_poll9']}', '{$_POST['po_cnt1']}', '{$_POST['po_cnt2']}', '{$_POST['po_cnt3']}', '{$_POST['po_cnt4']}', '{$_POST['po_cnt5']}', '{$_POST['po_cnt6']}', '{$_POST['po_cnt7']}', '{$_POST['po_cnt8']}', '{$_POST['po_cnt9']}', '{$_POST['po_etc']}', '{$_POST['po_level']}', '{$_POST['po_point']}', '".G5_TIME_YMDHIS."' ) ";
sql_query($sql);
$po_id = mysql_insert_id();
}
else if ($w == 'u')
{
- $sql = " update {$g4['poll_table']}
+ $sql = " update {$g5['poll_table']}
set po_subject = '{$_POST['po_subject']}',
po_poll1 = '{$_POST['po_poll1']}',
po_poll2 = '{$_POST['po_poll2']}',
@@ -50,18 +50,18 @@ else if ($w == 'u')
}
else if ($w == 'd')
{
- $sql = " delete from {$g4['poll_table']} where po_id = '{$_POST['po_id']}' ";
+ $sql = " delete from {$g5['poll_table']} where po_id = '{$_POST['po_id']}' ";
sql_query($sql);
- $sql = " delete from {$g4['poll_etc_table']} where po_id = '{$_POST['po_id']}' ";
+ $sql = " delete from {$g5['poll_etc_table']} where po_id = '{$_POST['po_id']}' ";
sql_query($sql);
}
// 가장 큰 투표번호를 기본환경설정에 저장하여
// 투표번호를 넘겨주지 않았을 경우
// 가장 큰 투표번호를 구해야 하는 쿼리를 대체한다
-$row = sql_fetch(" select max(po_id) as max_po_id from {$g4['poll_table']} ");
-sql_query(" update {$g4['config_table']} set cf_max_po_id = '{$row['max_po_id']}' ");
+$row = sql_fetch(" select max(po_id) as max_po_id from {$g5['poll_table']} ");
+sql_query(" update {$g5['config_table']} set cf_max_po_id = '{$row['max_po_id']}' ");
if ($w == 'd')
goto_url('./poll_list.php?'.$qstr);
diff --git a/adm/poll_list.php b/adm/poll_list.php
index 7b6cb86ad..9555f531e 100644
--- a/adm/poll_list.php
+++ b/adm/poll_list.php
@@ -6,7 +6,7 @@ auth_check($auth[$sub_menu], 'r');
$token = get_token();
-$sql_common = " from {$g4['poll_table']} ";
+$sql_common = " from {$g5['poll_table']} ";
$sql_search = " where (1) ";
if ($stx) {
@@ -48,7 +48,7 @@ $listall = '';
if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
$listall = '전체목록';
-$g4['title'] = '투표관리';
+$g5['title'] = '투표관리';
include_once('./admin.head.php');
$colspan = 6;
@@ -99,7 +99,7 @@ $colspan = 6;
-
+
\ No newline at end of file
diff --git a/adm/shop_admin/categoryformupdate.php b/adm/shop_admin/categoryformupdate.php
index 11238d8da..9fe77632c 100644
--- a/adm/shop_admin/categoryformupdate.php
+++ b/adm/shop_admin/categoryformupdate.php
@@ -26,19 +26,19 @@ if ($w == "" || $w == "u")
{
if ($ca_mb_id)
{
- $sql = " select mb_id from {$g4['member_table']} where mb_id = '$ca_mb_id' ";
+ $sql = " select mb_id from {$g5['member_table']} where mb_id = '$ca_mb_id' ";
$row = sql_fetch($sql);
if (!$row['mb_id'])
alert("\'$ca_mb_id\' 은(는) 존재하는 회원아이디가 아닙니다.");
}
}
-$g4['category_path'] = G4_DATA_PATH."/category";
-@mkdir($g4['category_path'], G4_DIR_PERMISSION);
-@chmod($g4['category_path'], G4_DIR_PERMISSION);
+$g5['category_path'] = G5_DATA_PATH."/category";
+@mkdir($g5['category_path'], G5_DIR_PERMISSION);
+@chmod($g5['category_path'], G5_DIR_PERMISSION);
-if ($ca_image1_del) @unlink("{$g4['category_path']}/{$ca_id}_1");
-if ($ca_image0_del) @unlink("{$g4['category_path']}/{$ca_id}_0");
+if ($ca_image1_del) @unlink("{$g5['category_path']}/{$ca_id}_1");
+if ($ca_image0_del) @unlink("{$g5['category_path']}/{$ca_id}_0");
$sql_common = " ca_skin = '$ca_skin',
ca_mobile_skin = '$ca_mobile_skin',
@@ -72,7 +72,7 @@ if ($w == "")
// 소문자로 변환
$ca_id = strtolower($ca_id);
- $sql = " insert {$g4['shop_category_table']}
+ $sql = " insert {$g5['shop_category_table']}
set ca_id = '$ca_id',
ca_name = '$ca_name',
$sql_common ";
@@ -80,7 +80,7 @@ if ($w == "")
}
else if ($w == "u")
{
- $sql = " update {$g4['shop_category_table']}
+ $sql = " update {$g5['shop_category_table']}
set ca_name = '$ca_name',
$sql_common
where ca_id = '$ca_id' ";
@@ -89,7 +89,7 @@ else if ($w == "u")
// 하위분류를 똑같은 설정으로 반영
if ($sub_category) {
$len = strlen($ca_id);
- $sql = " update {$g4['shop_category_table']}
+ $sql = " update {$g5['shop_category_table']}
set $sql_common
where SUBSTRING(ca_id,1,$len) = '$ca_id' ";
if ($is_admin != 'super')
@@ -102,7 +102,7 @@ else if ($w == "d")
// 분류의 길이
$len = strlen($ca_id);
- $sql = " select COUNT(*) as cnt from {$g4['shop_category_table']}
+ $sql = " select COUNT(*) as cnt from {$g5['shop_category_table']}
where SUBSTRING(ca_id,1,$len) = '$ca_id'
and ca_id <> '$ca_id' ";
$row = sql_fetch($sql);
@@ -110,7 +110,7 @@ else if ($w == "d")
alert("이 분류에 속한 하위 분류가 있으므로 삭제 할 수 없습니다.\\n\\n하위분류를 우선 삭제하여 주십시오.");
$str = $comma = "";
- $sql = " select it_id from {$g4['shop_item_table']} where ca_id = '$ca_id' ";
+ $sql = " select it_id from {$g5['shop_item_table']} where ca_id = '$ca_id' ";
$result = sql_query($sql);
$i=0;
while ($row = mysql_fetch_array($result))
@@ -125,11 +125,11 @@ else if ($w == "d")
alert("이 분류와 관련된 상품이 총 {$i} 건 존재하므로 상품을 삭제한 후 분류를 삭제하여 주십시오.\\n\\n$str");
// 상, 하단 이미지 삭제
- @unlink("{$g4['category_path']}/$ca_id"."_h");
- @unlink("{$g4['category_path']}/$ca_id"."_t");
+ @unlink("{$g5['category_path']}/$ca_id"."_h");
+ @unlink("{$g5['category_path']}/$ca_id"."_t");
// 분류 삭제
- $sql = " delete from {$g4['shop_category_table']} where ca_id = '$ca_id' ";
+ $sql = " delete from {$g5['shop_category_table']} where ca_id = '$ca_id' ";
sql_query($sql);
}
diff --git a/adm/shop_admin/categorylist.php b/adm/shop_admin/categorylist.php
index a7581beca..acab3a5a5 100644
--- a/adm/shop_admin/categorylist.php
+++ b/adm/shop_admin/categorylist.php
@@ -4,8 +4,8 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
-$g4['title'] = '분류관리';
-include_once (G4_ADMIN_PATH.'/admin.head.php');
+$g5['title'] = '분류관리';
+include_once (G5_ADMIN_PATH.'/admin.head.php');
$where = " where ";
$sql_search = "";
@@ -18,7 +18,7 @@ if ($stx != "") {
$page = 1;
}
-$sql_common = " from {$g4['shop_category_table']} ";
+$sql_common = " from {$g5['shop_category_table']} ";
if ($is_admin != 'super')
$sql_common .= " $where ca_mb_id = '{$member['mb_id']}' ";
$sql_common .= $sql_search;
@@ -135,7 +135,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
$class = 'class="cate_list_lbl"'; // 2단 이상 분류의 label 에 스타일 부여 - 지운아빠 2013-04-02
// 상위단계의 분류명
$p_ca_id = substr($row['ca_id'], 0, $level*2);
- $sql = " select ca_name from {$g4['shop_category_table']} where ca_id = '$p_ca_id' ";
+ $sql = " select ca_name from {$g5['shop_category_table']} where ca_id = '$p_ca_id' ";
$temp = sql_fetch($sql);
$p_ca_name = $temp['ca_name'].'의하위';
} else {
@@ -153,7 +153,7 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
$s_del = ''.get_text($row['ca_name']).' 삭제 ';
// 해당 분류에 속한 상품의 갯수
- $sql1 = " select COUNT(*) as cnt from {$g4['shop_item_table']}
+ $sql1 = " select COUNT(*) as cnt from {$g5['shop_item_table']}
where ca_id = '{$row['ca_id']}'
or ca_id2 = '{$row['ca_id']}'
or ca_id3 = '{$row['ca_id']}' ";
@@ -162,13 +162,13 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
|
-
+
|
|
|
@@ -240,10 +240,10 @@ if ($sfl || $stx) // 검색렬일 때만 처음 버튼을 보여줌
-
+
diff --git a/adm/shop_admin/categorylistupdate.php b/adm/shop_admin/categorylistupdate.php
index 8ffe820da..38dc63185 100644
--- a/adm/shop_admin/categorylistupdate.php
+++ b/adm/shop_admin/categorylistupdate.php
@@ -10,13 +10,13 @@ for ($i=0; $i
사업자정보
@@ -177,7 +177,7 @@ $pg_anchor = '
|
| |
@@ -683,7 +683,7 @@ $pg_anchor = '
| 관련상품출력 |
-
+
@@ -720,7 +720,7 @@ $pg_anchor = '
- 
+
diff --git a/adm/shop_admin/configformupdate.php b/adm/shop_admin/configformupdate.php
index 2efff08fd..7ccfca684 100644
--- a/adm/shop_admin/configformupdate.php
+++ b/adm/shop_admin/configformupdate.php
@@ -9,20 +9,20 @@ auth_check($auth[$sub_menu], "w");
// 로그인을 바로 이 주소로 하는 경우 쇼핑몰설정값이 사라지는 현상을 방지
if (!$de_admin_company_owner) goto_url("./configform.php");
-if ($logo_img_del) @unlink(G4_DATA_PATH."/common/logo_img");
-if ($main_img_del) @unlink(G4_DATA_PATH."/common/main_img");
-if ($mobile_logo_img_del) @unlink(G4_DATA_PATH."/common/mobile_logo_img");
+if ($logo_img_del) @unlink(G5_DATA_PATH."/common/logo_img");
+if ($main_img_del) @unlink(G5_DATA_PATH."/common/main_img");
+if ($mobile_logo_img_del) @unlink(G5_DATA_PATH."/common/mobile_logo_img");
-if ($_FILES['logo_img']['name']) upload_file($_FILES['logo_img']['tmp_name'], "logo_img", G4_DATA_PATH."/common");
-if ($_FILES['main_img']['name']) upload_file($_FILES['main_img']['tmp_name'], "main_img", G4_DATA_PATH."/common");
-if ($_FILES['mobile_logo_img']['name']) upload_file($_FILES['mobile_logo_img']['tmp_name'], "mobile_logo_img", G4_DATA_PATH."/common");
+if ($_FILES['logo_img']['name']) upload_file($_FILES['logo_img']['tmp_name'], "logo_img", G5_DATA_PATH."/common");
+if ($_FILES['main_img']['name']) upload_file($_FILES['main_img']['tmp_name'], "main_img", G5_DATA_PATH."/common");
+if ($_FILES['mobile_logo_img']['name']) upload_file($_FILES['mobile_logo_img']['tmp_name'], "mobile_logo_img", G5_DATA_PATH."/common");
$de_kcp_mid = substr($_POST['de_kcp_mid'],0,3);
//
// 영카트 default
//
-$sql = " update {$g4['shop_default_table']}
+$sql = " update {$g5['shop_default_table']}
set de_admin_company_owner = '$de_admin_company_owner',
de_admin_company_name = '$de_admin_company_name',
de_admin_company_saupja_no = '$de_admin_company_saupja_no',
@@ -152,7 +152,7 @@ $sql = " update {$g4['shop_default_table']}
sql_query($sql);
// 환경설정 > 포인트 사용
-sql_query(" update {$g4['config_table']} set cf_use_point = '$cf_use_point' ");
+sql_query(" update {$g5['config_table']} set cf_use_point = '$cf_use_point' ");
goto_url("./configform.php");
?>
diff --git a/adm/shop_admin/contentform.php b/adm/shop_admin/contentform.php
index 3a963a3ac..17406dcc4 100644
--- a/adm/shop_admin/contentform.php
+++ b/adm/shop_admin/contentform.php
@@ -1,24 +1,24 @@
|
@@ -80,7 +80,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
750)
@@ -89,7 +89,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
$width = $size[0];
echo ' ';
- $himg_str = ' ';
+ $himg_str = ' ';
}
if ($himg_str) {
echo '';
@@ -104,7 +104,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
750)
@@ -113,7 +113,7 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
$width = $size[0];
echo ' ';
- $timg_str = ' ';
+ $timg_str = ' ';
}
if ($timg_str) {
echo '';
@@ -156,5 +156,5 @@ function frmcontentform_check(f)
diff --git a/adm/shop_admin/contentformupdate.php b/adm/shop_admin/contentformupdate.php
index fa716100d..d15641662 100644
--- a/adm/shop_admin/contentformupdate.php
+++ b/adm/shop_admin/contentformupdate.php
@@ -10,11 +10,11 @@ if ($w == 'd')
else
auth_check($auth[$sub_menu], "w");
-@mkdir(G4_DATA_PATH."/content", G4_DIR_PERMISSION);
-@chmod(G4_DATA_PATH."/content", G4_DIR_PERMISSION);
+@mkdir(G5_DATA_PATH."/content", G5_DIR_PERMISSION);
+@chmod(G5_DATA_PATH."/content", G5_DIR_PERMISSION);
-if ($co_himg_del) @unlink(G4_DATA_PATH."/content/{$co_id}_h");
-if ($co_timg_del) @unlink(G4_DATA_PATH."/content/{$co_id}_t");
+if ($co_himg_del) @unlink(G5_DATA_PATH."/content/{$co_id}_h");
+if ($co_timg_del) @unlink(G5_DATA_PATH."/content/{$co_id}_t");
$sql_common = " co_include_head = '$co_include_head',
co_include_tail = '$co_include_tail',
@@ -27,36 +27,36 @@ if ($w == "")
//if(eregi("[^a-z0-9_]", $co_id)) alert("ID 는 영문자, 숫자, _ 만 가능합니다.");
if(preg_match("/[^a-z0-9_]/i", $co_id)) alert("ID 는 영문자, 숫자, _ 만 가능합니다.");
- $sql = " select co_id from {$g4['shop_content_table']} where co_id = '$co_id' ";
+ $sql = " select co_id from {$g5['shop_content_table']} where co_id = '$co_id' ";
$row = sql_fetch($sql);
if ($row['co_id'])
alert("이미 같은 ID로 등록된 내용이 있습니다.");
- $sql = " insert {$g4['shop_content_table']}
+ $sql = " insert {$g5['shop_content_table']}
set co_id = '$co_id',
$sql_common ";
sql_query($sql);
}
else if ($w == "u")
{
- $sql = " update {$g4['shop_content_table']}
+ $sql = " update {$g5['shop_content_table']}
set $sql_common
where co_id = '$co_id' ";
sql_query($sql);
}
else if ($w == "d")
{
- @unlink(G4_DATA_PATH."/content/{$co_id}_h");
- @unlink(G4_DATA_PATH."/content/{$co_id}_t");
+ @unlink(G5_DATA_PATH."/content/{$co_id}_h");
+ @unlink(G5_DATA_PATH."/content/{$co_id}_t");
- $sql = " delete from {$g4['shop_content_table']} where co_id = '$co_id' ";
+ $sql = " delete from {$g5['shop_content_table']} where co_id = '$co_id' ";
sql_query($sql);
}
if ($w == "" || $w == "u")
{
- if ($_FILES['co_himg']['name']) upload_file($_FILES['co_himg']['tmp_name'], $co_id."_h", G4_DATA_PATH."/content");
- if ($_FILES['co_timg']['name']) upload_file($_FILES['co_timg']['tmp_name'], $co_id."_t", G4_DATA_PATH."/content");
+ if ($_FILES['co_himg']['name']) upload_file($_FILES['co_himg']['tmp_name'], $co_id."_h", G5_DATA_PATH."/content");
+ if ($_FILES['co_timg']['name']) upload_file($_FILES['co_timg']['tmp_name'], $co_id."_t", G5_DATA_PATH."/content");
goto_url("./contentform.php?w=u&co_id=$co_id");
}
diff --git a/adm/shop_admin/contentlist.php b/adm/shop_admin/contentlist.php
index 9d87b2e3a..2edb77a40 100644
--- a/adm/shop_admin/contentlist.php
+++ b/adm/shop_admin/contentlist.php
@@ -4,10 +4,10 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
-$g4['title'] = '내용관리';
-include_once (G4_ADMIN_PATH.'/admin.head.php');
+$g5['title'] = '내용관리';
+include_once (G5_ADMIN_PATH.'/admin.head.php');
-$sql_common = " from {$g4['shop_content_table']} ";
+$sql_common = " from {$g5['shop_content_table']} ";
// 테이블의 전체 레코드수만 얻음
$sql = " select count(*) as cnt " . $sql_common;
@@ -46,7 +46,7 @@ $result = sql_query($sql);
|
|
- 보기
+ 보기
수정
삭제
|
@@ -61,8 +61,8 @@ $result = sql_query($sql);
-
+
diff --git a/adm/shop_admin/couponform.php b/adm/shop_admin/couponform.php
index 5c60f09e4..5802b6c44 100644
--- a/adm/shop_admin/couponform.php
+++ b/adm/shop_admin/couponform.php
@@ -4,20 +4,20 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "w");
-$g4['title'] = '쿠폰관리';
+$g5['title'] = '쿠폰관리';
if ($w == 'u') {
$html_title = '쿠폰 수정';
- $sql = " select * from {$g4['shop_coupon_table']} where cp_id = '$cp_id' ";
+ $sql = " select * from {$g5['shop_coupon_table']} where cp_id = '$cp_id' ";
$cp = sql_fetch($sql);
if (!$cp['cp_id']) alert('등록된 자료가 없습니다.');
}
else
{
$html_title = '쿠폰 입력';
- $cp['cp_start'] = G4_TIME_YMD;
- $cp['cp_end'] = date('Y-m-d', (G4_SERVER_TIME + 86400 * 7));
+ $cp['cp_start'] = G5_TIME_YMD;
+ $cp['cp_end'] = date('Y-m-d', (G5_SERVER_TIME + 86400 * 7));
}
if($cp['cp_method'] == 1) {
@@ -28,7 +28,7 @@ if($cp['cp_method'] == 1) {
$cp_target_btn = '상품검색';
}
-include_once (G4_ADMIN_PATH.'/admin.head.php');
+include_once (G5_ADMIN_PATH.'/admin.head.php');
?>
-
+
\ No newline at end of file
diff --git a/adm/shop_admin/couponlist_delete.php b/adm/shop_admin/couponlist_delete.php
index d73645d77..7b9286c63 100644
--- a/adm/shop_admin/couponlist_delete.php
+++ b/adm/shop_admin/couponlist_delete.php
@@ -17,7 +17,7 @@ for ($i=0; $i<$count; $i++)
// 실제 번호를 넘김
$k = $_POST['chk'][$i];
- $sql = " delete from {$g4['shop_coupon_table']} where cp_id = '{$_POST['cp_id'][$k]}' ";
+ $sql = " delete from {$g5['shop_coupon_table']} where cp_id = '{$_POST['cp_id'][$k]}' ";
sql_query($sql);
}
diff --git a/adm/shop_admin/couponmember.php b/adm/shop_admin/couponmember.php
index b9cb7b242..8bc3e9118 100644
--- a/adm/shop_admin/couponmember.php
+++ b/adm/shop_admin/couponmember.php
@@ -6,10 +6,10 @@ auth_check($auth[$sub_menu], "w");
$html_title = '회원검색';
-$g4['title'] = $html_title;
-include_once(G4_PATH.'/head.sub.php');
+$g5['title'] = $html_title;
+include_once(G5_PATH.'/head.sub.php');
-$sql_common = " from {$g4['member_table']} ";
+$sql_common = " from {$g5['member_table']} ";
$sql_where = " where mb_id <> '{$config['cf_admin']}' and mb_leave_date = '' and mb_intercept_date ='' ";
if($_GET['mb_name'])
@@ -72,7 +72,7 @@ $qstr1 = 'mb_name='.$_GET['mb_name'];
-
+
@@ -90,5 +90,5 @@ function sel_member_id(id)
\ No newline at end of file
diff --git a/adm/shop_admin/coupontarget.php b/adm/shop_admin/coupontarget.php
index 5d8ec8b7d..96ba9ece7 100644
--- a/adm/shop_admin/coupontarget.php
+++ b/adm/shop_admin/coupontarget.php
@@ -18,18 +18,18 @@ if($_GET['sch_target'] == 1) {
$t_desc2 = '상품이';
}
-$g4['title'] = $html_title.'검색';
-include_once(G4_PATH.'/head.sub.php');
+$g5['title'] = $html_title.'검색';
+include_once(G5_PATH.'/head.sub.php');
if($_GET['sch_target'] == 1) {
- $sql_common = " from {$g4['shop_category_table']} ";
+ $sql_common = " from {$g5['shop_category_table']} ";
$sql_where = " where ca_use = '1' ";
if($_GET['sch_word'])
$sql_where .= " and ca_name like '%$sch_word%' ";
$sql_select = " select ca_id as t_id, ca_name as t_name ";
$sql_order = " order by ca_name ";
} else {
- $sql_common = " from {$g4['shop_item_table']} ";
+ $sql_common = " from {$g5['shop_item_table']} ";
$sql_where = " where it_use = '1' ";
if($GET['sch_word'])
$sql_where .= " and it_name like '%$sch_word%' ";
@@ -97,7 +97,7 @@ $qstr1 = 'sch_target='.$_GET['sch_target'].'&sch_word='.$_GET['sch_word'];
-
+
@@ -115,5 +115,5 @@ function sel_target_id(id)
\ No newline at end of file
diff --git a/adm/shop_admin/deliverycodeform.php b/adm/shop_admin/deliverycodeform.php
index a9e10092e..01476fded 100644
--- a/adm/shop_admin/deliverycodeform.php
+++ b/adm/shop_admin/deliverycodeform.php
@@ -5,13 +5,13 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "w");
$html_title = '배송업체';
-$g4['title'] = $html_title;
+$g5['title'] = $html_title;
if ($w == "u") {
$html_title .= ' 수정';
$readonly = ' readonly';
- $sql = " select * from {$g4['shop_delivery_table']} where dl_id = '$dl_id' ";
+ $sql = " select * from {$g5['shop_delivery_table']} where dl_id = '$dl_id' ";
$dl = sql_fetch($sql);
if (!$dl['dl_id']) alert('등록된 자료가 없습니다.');
}
@@ -21,7 +21,7 @@ else
$dl['dl_url'] = "http://";
}
-include_once (G4_ADMIN_PATH.'/admin.head.php');
+include_once (G5_ADMIN_PATH.'/admin.head.php');
?>
diff --git a/adm/shop_admin/deliverycodeformupdate.php b/adm/shop_admin/deliverycodeformupdate.php
index 50e4dc749..4d6b5d576 100644
--- a/adm/shop_admin/deliverycodeformupdate.php
+++ b/adm/shop_admin/deliverycodeformupdate.php
@@ -16,19 +16,19 @@ $sql_common .= "set dl_company = '$dl_company',
dl_order = '$dl_order' ";
if ($w == "") {
- $sql = " alter table {$g4['shop_delivery_table']} auto_increment=1 ";
+ $sql = " alter table {$g5['shop_delivery_table']} auto_increment=1 ";
sql_query($sql);
- $sql = " insert {$g4['shop_delivery_table']} $sql_common ";
+ $sql = " insert {$g5['shop_delivery_table']} $sql_common ";
sql_query($sql);
$dl_id = mysql_insert_id();
} else if ($w == "u") {
- $sql = " update {$g4['shop_delivery_table']} $sql_common where dl_id = '$dl_id' ";
+ $sql = " update {$g5['shop_delivery_table']} $sql_common where dl_id = '$dl_id' ";
sql_query($sql);
} else if ($w == "d") {
// Master 삭제
- $sql = " delete from {$g4['shop_delivery_table']} where dl_id = '$dl_id' ";
+ $sql = " delete from {$g5['shop_delivery_table']} where dl_id = '$dl_id' ";
sql_query($sql);
}
diff --git a/adm/shop_admin/deliverycodelist.php b/adm/shop_admin/deliverycodelist.php
index bc7fde446..fa8441b36 100644
--- a/adm/shop_admin/deliverycodelist.php
+++ b/adm/shop_admin/deliverycodelist.php
@@ -4,10 +4,10 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
-$g4['title'] = '배송업체관리';
-include_once (G4_ADMIN_PATH.'/admin.head.php');
+$g5['title'] = '배송업체관리';
+include_once (G5_ADMIN_PATH.'/admin.head.php');
-$sql_common = " from {$g4['shop_delivery_table']} ";
+$sql_common = " from {$g5['shop_delivery_table']} ";
// 테이블의 전체 레코드수만 얻음
$sql = " select count(*) as cnt " . $sql_common;
@@ -61,5 +61,5 @@ $result = sql_query($sql);
diff --git a/adm/shop_admin/deliverylist.php b/adm/shop_admin/deliverylist.php
index c74f834d7..d4c8f6d0d 100644
--- a/adm/shop_admin/deliverylist.php
+++ b/adm/shop_admin/deliverylist.php
@@ -4,14 +4,14 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
-$g4['title'] = '배송일괄처리';
-include_once (G4_ADMIN_PATH.'/admin.head.php');
+$g5['title'] = '배송일괄처리';
+include_once (G5_ADMIN_PATH.'/admin.head.php');
-//sql_query(" update $g4[shop_cart_table] set ct_status = '완료' where ct_status = '배송' ");
+//sql_query(" update $g5[shop_cart_table] set ct_status = '완료' where ct_status = '배송' ");
// 배송회사리스트 ---------------------------------------------
$delivery_options = ' '.PHP_EOL;
-$sql = " select * from {$g4['shop_delivery_table']} order by dl_order ";
+$sql = " select * from {$g5['shop_delivery_table']} order by dl_order ";
$result = sql_query($sql);
for($i=0; $row=sql_fetch_array($result); $i++) {
$delivery_options .= ' '.PHP_EOL;
@@ -33,7 +33,7 @@ if ($sel_ca_id != "") {
if ($sel_field == "") $sel_field = "od_id";
-$sql_common = " from {$g4['shop_order_table']}
+$sql_common = " from {$g5['shop_order_table']}
$sql_search ";
// 테이블의 전체 레코드수만 얻음
@@ -43,7 +43,7 @@ if ($chk_misu) {
$total_count = mysql_num_rows($result);
}
else {
- $row = sql_fetch("select count(od_id) as cnt from {$g4['shop_order_table']} $sql_search ");
+ $row = sql_fetch("select count(od_id) as cnt from {$g5['shop_order_table']} $sql_search ");
$total_count = $row['cnt'];
}
@@ -152,11 +152,11 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
$result = sql_query($sql);
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
- $invoice_time = G4_TIME_YMDHIS;
+ $invoice_time = G5_TIME_YMDHIS;
if (!is_null_time($row['od_invoice_time']))
$invoice_time = $row['od_invoice_time'];
- $sql1 = " select * from {$g4['member_table']} where mb_id = '{$row['mb_id']}' ";
+ $sql1 = " select * from {$g5['member_table']} where mb_id = '{$row['mb_id']}' ";
$row1 = sql_fetch($sql1);
$name = get_sideview($row['mb_id'], $row['mb_name'], $row['mb_email'], $row['mb_homepage']);
@@ -216,8 +216,8 @@ if ($search) // 검색렬일 때만 처음 버튼을 보여줌
-
+
diff --git a/adm/shop_admin/deliverylistupdate.php b/adm/shop_admin/deliverylistupdate.php
index 3ecde04b1..dbcb7c750 100644
--- a/adm/shop_admin/deliverylistupdate.php
+++ b/adm/shop_admin/deliverylistupdate.php
@@ -1,8 +1,8 @@
| |
@@ -95,5 +95,5 @@ function frmfaqform_check(f)
diff --git a/adm/shop_admin/faqformupdate.php b/adm/shop_admin/faqformupdate.php
index e5b134d70..4db37618e 100644
--- a/adm/shop_admin/faqformupdate.php
+++ b/adm/shop_admin/faqformupdate.php
@@ -16,7 +16,7 @@ $sql_common = " fa_subject = '$fa_subject',
if ($w == "")
{
- $sql = " insert {$g4['shop_faq_table']}
+ $sql = " insert {$g5['shop_faq_table']}
set fm_id ='$fm_id',
$sql_common ";
sql_query($sql);
@@ -25,14 +25,14 @@ if ($w == "")
}
else if ($w == "u")
{
- $sql = " update {$g4['shop_faq_table']}
+ $sql = " update {$g5['shop_faq_table']}
set $sql_common
where fa_id = '$fa_id' ";
sql_query($sql);
}
else if ($w == "d")
{
- $sql = " delete from {$g4['shop_faq_table']} where fa_id = '$fa_id' ";
+ $sql = " delete from {$g5['shop_faq_table']} where fa_id = '$fa_id' ";
sql_query($sql);
}
diff --git a/adm/shop_admin/faqlist.php b/adm/shop_admin/faqlist.php
index 18702d457..704c4d9f3 100644
--- a/adm/shop_admin/faqlist.php
+++ b/adm/shop_admin/faqlist.php
@@ -4,14 +4,14 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
-$g4['title'] = 'FAQ 상세관리';
-if ($fm_subject) $g4['title'] .= ' : '.$fm_subject;
-include_once (G4_ADMIN_PATH.'/admin.head.php');
+$g5['title'] = 'FAQ 상세관리';
+if ($fm_subject) $g5['title'] .= ' : '.$fm_subject;
+include_once (G5_ADMIN_PATH.'/admin.head.php');
-$sql = " select * from {$g4['shop_faq_master_table']} where fm_id = '$fm_id' ";
+$sql = " select * from {$g5['shop_faq_master_table']} where fm_id = '$fm_id' ";
$fm = sql_fetch($sql);
-$sql_common = " from {$g4['shop_faq_table']} where fm_id = '$fm_id' ";
+$sql_common = " from {$g5['shop_faq_table']} where fm_id = '$fm_id' ";
// 테이블의 전체 레코드수만 얻음
$sql = " select count(*) as cnt " . $sql_common;
@@ -49,7 +49,7 @@ $result = sql_query($sql);
diff --git a/adm/shop_admin/faqmasterform.php b/adm/shop_admin/faqmasterform.php
index 9359cef16..41e12c960 100644
--- a/adm/shop_admin/faqmasterform.php
+++ b/adm/shop_admin/faqmasterform.php
@@ -1,19 +1,19 @@
|