g4를 g5로 변경

This commit is contained in:
chicpro
2013-09-13 14:32:06 +09:00
parent 9a18a049d5
commit 0f78b67eb7
563 changed files with 4097 additions and 4097 deletions

View File

@ -10,13 +10,13 @@ if ($w == '' || $w == 'u')
else if ($w == 'd')
auth_check($auth[$sub_menu], "d");
@mkdir(G4_DATA_PATH."/item", G4_DIR_PERMISSION);
@chmod(G4_DATA_PATH."/item", G4_DIR_PERMISSION);
@mkdir(G5_DATA_PATH."/item", G5_DIR_PERMISSION);
@chmod(G5_DATA_PATH."/item", G5_DIR_PERMISSION);
// 파일정보
if($w == "u") {
$sql = " select it_img1, it_img2, it_img3, it_img4, it_img5, it_img6, it_img7, it_img8, it_img9, it_img10
from {$g4['shop_item_table']}
from {$g5['shop_item_table']}
where it_id = '$it_id' ";
$file = sql_fetch($sql);
@ -32,7 +32,7 @@ if($w == "u") {
$it_img10 = $file['it_img10'];
}
$it_img_dir = G4_DATA_PATH.'/item';
$it_img_dir = G5_DATA_PATH.'/item';
// 파일삭제
if ($it_img1_del) {
@ -193,16 +193,16 @@ if ($w == "" || $w == "u")
// 관련상품을 우선 삭제함
sql_query(" delete from {$g4['shop_item_relation_table']} where it_id = '$it_id' ");
sql_query(" delete from {$g5['shop_item_relation_table']} where it_id = '$it_id' ");
// 관련상품의 반대도 삭제
sql_query(" delete from {$g4['shop_item_relation_table']} where it_id2 = '$it_id' ");
sql_query(" delete from {$g5['shop_item_relation_table']} where it_id2 = '$it_id' ");
// 이벤트상품을 우선 삭제함
sql_query(" delete from {$g4['shop_event_item_table']} where it_id = '$it_id' ");
sql_query(" delete from {$g5['shop_event_item_table']} where it_id = '$it_id' ");
// 선택옵션
sql_query(" delete from {$g4['shop_item_option_table']} where io_type = '0' and it_id = '$it_id' "); // 기존선택옵션삭제
sql_query(" delete from {$g5['shop_item_option_table']} where io_type = '0' and it_id = '$it_id' "); // 기존선택옵션삭제
$option_count = count($_POST['opt_id']);
if($option_count) {
@ -228,7 +228,7 @@ if($option_count) {
}
// 추가옵션
sql_query(" delete from {$g4['shop_item_option_table']} where io_type = '1' and it_id = '$it_id' "); // 기존추가옵션삭제
sql_query(" delete from {$g5['shop_item_option_table']} where io_type = '1' and it_id = '$it_id' "); // 기존추가옵션삭제
$supply_count = count($_POST['spl_id']);
if($supply_count) {
@ -293,7 +293,7 @@ $sql_common = " ca_id = '$ca_id',
it_tail_html = '$it_tail_html',
it_mobile_head_html = '$it_mobile_head_html',
it_mobile_tail_html = '$it_mobile_tail_html',
it_time = '".G4_TIME_YMDHIS."',
it_time = '".G5_TIME_YMDHIS."',
it_ip = '{$_SERVER['REMOTE_ADDR']}',
it_order = '$it_order',
it_tel_inq = '$it_tel_inq',
@ -323,14 +323,14 @@ if ($w == "")
if($t_it_id)
alert('상품 코드는 영문자, 숫자, -, _ 만 사용할 수 있습니다.');
$sql = " insert {$g4['shop_item_table']}
$sql = " insert {$g5['shop_item_table']}
set it_id = '$it_id',
$sql_common ";
sql_query($sql);
}
else if ($w == "u")
{
$sql = " update {$g4['shop_item_table']}
$sql = " update {$g5['shop_item_table']}
set $sql_common
where it_id = '$it_id' ";
sql_query($sql);
@ -340,7 +340,7 @@ else if ($w == "d")
{
if ($is_admin != 'super')
{
$sql = " select it_id from {$g4['shop_item_table']} a, {$g4['shop_category_table']} b
$sql = " select it_id from {$g5['shop_item_table']} a, {$g5['shop_category_table']} b
where a.it_id = '$it_id'
and a.ca_id = b.ca_id
and b.ca_mb_id = '{$member['mb_id']}' ";
@ -361,14 +361,14 @@ if ($w == "" || $w == "u")
{
if (trim($it_id2[$i]))
{
$sql = " insert into {$g4['shop_item_relation_table']}
$sql = " insert into {$g5['shop_item_relation_table']}
set it_id = '$it_id',
it_id2 = '$it_id2[$i]',
ir_no = '$i' ";
sql_query($sql, false);
// 관련상품의 반대로도 등록
$sql = " insert into {$g4['shop_item_relation_table']}
$sql = " insert into {$g5['shop_item_relation_table']}
set it_id = '$it_id2[$i]',
it_id2 = '$it_id',
ir_no = '$i' ";
@ -382,7 +382,7 @@ if ($w == "" || $w == "u")
{
if (trim($ev_id[$i]))
{
$sql = " insert into {$g4['shop_event_item_table']}
$sql = " insert into {$g5['shop_event_item_table']}
set ev_id = '$ev_id[$i]',
it_id = '$it_id' ";
sql_query($sql, false);
@ -393,7 +393,7 @@ if ($w == "" || $w == "u")
// 선택옵션등록
if($option_count) {
$comma = '';
$sql = " INSERT INTO {$g4['shop_item_option_table']}
$sql = " INSERT INTO {$g5['shop_item_option_table']}
( `io_id`, `io_type`, `it_id`, `io_price`, `io_stock_qty`, `io_noti_qty`, `io_use` )
VALUES ";
for($i=0; $i<$option_count; $i++) {
@ -407,7 +407,7 @@ if($option_count) {
// 추가옵션등록
if($supply_count) {
$comma = '';
$sql = " INSERT INTO {$g4['shop_item_option_table']}
$sql = " INSERT INTO {$g5['shop_item_option_table']}
( `io_id`, `io_type`, `it_id`, `io_price`, `io_stock_qty`, `io_noti_qty`, `io_use` )
VALUES ";
for($i=0; $i<$supply_count; $i++) {
@ -443,11 +443,11 @@ if(is_checked('chk_ca_it_mobile_head_html')) $ca_fields .= " , it_mobile_head
if(is_checked('chk_ca_it_mobile_tail_html')) $ca_fields .= " , it_mobile_tail_html = '$it_mobile_tail_html' ";
if($ca_fields) {
sql_query(" update {$g4['shop_item_table']} set it_name = it_name {$ca_fields} where ca_id = '$ca_id' ");
sql_query(" update {$g5['shop_item_table']} set it_name = it_name {$ca_fields} where ca_id = '$ca_id' ");
if($ca_id2)
sql_query(" update {$g4['shop_item_table']} set it_name = it_name {$ca_fields} where ca_id2 = '$ca_id2' ");
sql_query(" update {$g5['shop_item_table']} set it_name = it_name {$ca_fields} where ca_id2 = '$ca_id2' ");
if($ca_id3)
sql_query(" update {$g4['shop_item_table']} set it_name = it_name {$ca_fields} where ca_id3 = '$ca_id3' ");
sql_query(" update {$g5['shop_item_table']} set it_name = it_name {$ca_fields} where ca_id3 = '$ca_id3' ");
}
// 모든 상품 동일 옵션 적용
@ -475,7 +475,7 @@ if(is_checked('chk_all_it_mobile_head_html')) $all_fields .= " , it_mobile_he
if(is_checked('chk_all_it_mobile_tail_html')) $all_fields .= " , it_mobile_tail_html = '$it_mobile_tail_html' ";
if($all_fields) {
sql_query(" update {$g4['shop_item_table']} set it_name = it_name {$all_fields} ");
sql_query(" update {$g5['shop_item_table']} set it_name = it_name {$all_fields} ");
}
$qstr = "$qstr&amp;sca=$sca&amp;page=$page";