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

@ -47,8 +47,8 @@ ob_start();
$lt = "[[";
$gt = "]]";
$shop_url = G4_SHOP_URL;
$data_url = G4_DATA_URL;
$shop_url = G5_SHOP_URL;
$data_url = G5_DATA_URL;
// 배송비
if ($default['de_send_cost_case'] == '없음')
@ -64,27 +64,27 @@ else if($default['de_send_cost_case'] == '상한')
$delivery = (int)$tmp[0];
}
$time = date("Y-m-d 00:00:00", G4_SERVER_TIME - 86400);
$sql =" select * from {$g4['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
$time = date("Y-m-d 00:00:00", G5_SERVER_TIME - 86400);
$sql =" select * from {$g5['shop_item_table']} where it_use = '1' and it_time >= '$time' order by ca_id";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,2)."' ");
$ca_name1 = $row2['ca_name'];
if (strlen($row['ca_id']) >= 4) {
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,4)."' ");
$ca_name2 = $row2['ca_name'];
}
if (strlen($row['ca_id']) >= 6) {
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,6)."' ");
$ca_name3 = $row2['ca_name'];
}
if (strlen($row['ca_id']) >= 8) {
$row2 = sql_fetch(" select ca_name from {$g4['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
$row2 = sql_fetch(" select ca_name from {$g5['shop_category_table']} where ca_id = '".substr($row['ca_id'],0,8)."' ");
$ca_name4 = $row2['ca_name'];
}