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,16 +10,16 @@ if (!function_exists("itemdelete")) {
// 메세지출력후 주문개별내역페이지로 이동
function itemdelete($it_id)
{
global $g4, $is_admin;
global $g5, $is_admin;
$sql = " select it_explan, it_mobile_explan, 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']} where it_id = '$it_id' ";
from {$g5['shop_item_table']} where it_id = '$it_id' ";
$it = sql_fetch($sql);
// 상품 이미지 삭제
$dir_list = array();
for($i=1; $i<=10; $i++) {
$file = G4_DATA_PATH.'/item/'.$it['it_img'.$i];
$file = G5_DATA_PATH.'/item/'.$it['it_img'.$i];
if(is_file($file) && $it['it_img'.$i]) {
@unlink($file);
$dir = dirname($file);
@ -37,27 +37,27 @@ if (!function_exists("itemdelete")) {
}
// 상, 하단 이미지 삭제
@unlink(G4_DATA_PATH."/item/$it_id"."_h");
@unlink(G4_DATA_PATH."/item/$it_id"."_t");
@unlink(G5_DATA_PATH."/item/$it_id"."_h");
@unlink(G5_DATA_PATH."/item/$it_id"."_t");
// 장바구니 삭제
$sql = " delete from {$g4['shop_cart_table']} where it_id = '$it_id' ";
$sql = " delete from {$g5['shop_cart_table']} where it_id = '$it_id' ";
sql_query($sql);
// 이벤트삭제
$sql = " delete from {$g4['shop_event_item_table']} where it_id = '$it_id' ";
$sql = " delete from {$g5['shop_event_item_table']} where it_id = '$it_id' ";
sql_query($sql);
// 사용후기삭제
$sql = " delete from {$g4['shop_item_use_table']} where it_id = '$it_id' ";
$sql = " delete from {$g5['shop_item_use_table']} where it_id = '$it_id' ";
sql_query($sql);
// 상품문의삭제
$sql = " delete from {$g4['shop_item_qa_table']} where it_id = '$it_id' ";
$sql = " delete from {$g5['shop_item_qa_table']} where it_id = '$it_id' ";
sql_query($sql);
// 관련상품삭제
$sql = " delete from {$g4['shop_item_relation_table']} where it_id = '$it_id' or it_id2 = '$it_id' ";
$sql = " delete from {$g5['shop_item_relation_table']} where it_id = '$it_id' or it_id2 = '$it_id' ";
sql_query($sql);
@ -73,7 +73,7 @@ if (!function_exists("itemdelete")) {
else
$data_path = $p['path'];
$destfile = G4_PATH.$data_path;
$destfile = G5_PATH.$data_path;
if(is_file($destfile))
@unlink($destfile);
@ -88,7 +88,7 @@ if (!function_exists("itemdelete")) {
else
$data_path = $p['path'];
$destfile = G4_PATH.$data_path;
$destfile = G5_PATH.$data_path;
if(is_file($destfile))
@unlink($destfile);
@ -97,7 +97,7 @@ if (!function_exists("itemdelete")) {
// 상품 삭제
$sql = " delete from {$g4['shop_item_table']} where it_id = '$it_id' ";
$sql = " delete from {$g5['shop_item_table']} where it_id = '$it_id' ";
sql_query($sql);
}
}