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

@ -33,13 +33,13 @@ function paging($write_pages, $cur_page, $total_page, $url)
function it_image($img)
{
global $g4;
global $g5;
$tmp = G4_DATA_PATH.'/item/'.$img;
$tmp = G5_DATA_PATH.'/item/'.$img;
if (file_exists($tmp) && $img) {
$str = G4_DATA_URL.'/item/'.$img;
$str = G5_DATA_URL.'/item/'.$img;
} else {
$str = G4_SHOP_URL.'/img/no_image.gif';
$str = G5_SHOP_URL.'/img/no_image.gif';
}
return $str;
}
@ -49,7 +49,7 @@ include_once('./_common.php');
// 페이지당 행수
$page_rows = 100;
$sql = " select count(*) as cnt from {$g4['shop_item_table']} where it_use = '1' ";
$sql = " select count(*) as cnt from {$g5['shop_item_table']} where it_use = '1' ";
$row = sql_fetch($sql);
$total_count = $row['cnt'];
?>
@ -86,7 +86,7 @@ if ($page == "") $page = 1;
// 시작 레코드 구함
$from_record = ($page - 1) * $page_rows;
$sql = " select * from {$g4['shop_item_table']}
$sql = " select * from {$g5['shop_item_table']}
where it_use = '1'
order by ca_id
limit $from_record, $page_rows ";
@ -101,7 +101,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$code = substr($row['ca_id'],0,$k*2);
$sql3 = " select ca_name from {$g4['shop_category_table']} where ca_id = '$code' ";
$sql3 = " select ca_name from {$g5['shop_category_table']} where ca_id = '$code' ";
$row3 = sql_fetch($sql3);
$category .= $bar . $row3['ca_name'];
@ -120,7 +120,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
<tr>
<td>$num</td>
<td>{$row['it_id']}</td>
<td><a href='".G4_SHOP_URL."/item.php?it_id={$row['it_id']}'>{$row['it_name']}</a></td>
<td><a href='".G5_SHOP_URL."/item.php?it_id={$row['it_id']}'>{$row['it_name']}</a></td>
<td>{$row['it_price']}</td>
<td>$category</td>
<td>{$row['it_maker']}</td>