diff --git a/extend/shop.extend.php b/extend/shop.extend.php
index d3250a88e..95efbbd0c 100644
--- a/extend/shop.extend.php
+++ b/extend/shop.extend.php
@@ -1,8 +1,8 @@
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
-if (!defined('G4_IS_SHOP') || !G4_IS_SHOP) return;
+//if (!defined('G4_IS_SHOP') || !G4_IS_SHOP) return;
-include_once("$g4[lib_path]/shop.lib.php");
+include_once(G4_LIB_PATH.'/shop.lib.php');
//==============================================================================
// 쇼핑몰 설정 상수 및 변수
diff --git a/lib/shop.lib.php b/lib/shop.lib.php
index ac109ff54..f227b05d7 100644
--- a/lib/shop.lib.php
+++ b/lib/shop.lib.php
@@ -116,7 +116,7 @@ function get_image($img, $width=0, $height=0)
{
global $g4, $default;
- $full_img = "$g4[path]/data/item/$img";
+ $full_img = G4_DATA_PATH."/item/$img";
if (file_exists($full_img) && $img)
{
@@ -126,11 +126,11 @@ function get_image($img, $width=0, $height=0)
$width = $size[0];
$height = $size[1];
}
- $str = "";
+ $str = "
";
}
else
{
- $str = "
$str";
+ $str = "$str";
}
return $str;
}
@@ -819,7 +819,7 @@ function display_banner($position, $num="")
if (!$position) $position = "왼쪽";
- include "$g4[shop_path]/boxbanner{$num}.inc.php";
+ include G4_SHOP_PATH."/boxbanner{$num}.inc.php";
}
// 1.00.02
diff --git a/shop.head.php b/shop.head.php
index 8ed4f74d8..0337e2a02 100644
--- a/shop.head.php
+++ b/shop.head.php
@@ -1,12 +1,12 @@
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
-include_once("$g4[path]/head.sub.php");
-include_once("$g4[path]/lib/outlogin.lib.php");
-include_once("$g4[path]/lib/poll.lib.php");
-include_once("$g4[path]/lib/visit.lib.php");
-include_once("$g4[path]/lib/connect.lib.php");
-include_once("$g4[path]/lib/popular.lib.php");
+include_once(G4_PATH.'/head.sub.php');
+include_once(G4_LIB_PATH.'/outlogin.lib.php');
+include_once(G4_LIB_PATH.'/poll.lib.php');
+include_once(G4_LIB_PATH.'/visit.lib.php');
+include_once(G4_LIB_PATH.'/connect.lib.php');
+include_once(G4_LIB_PATH.'/popular.lib.php');
//print_r2(get_defined_constants());
@@ -34,28 +34,28 @@ $table_width = 900;
|
-
+
|
||