diff --git a/lib/cheditor.lib.php b/lib/cheditor.lib.php
deleted file mode 100644
index 4bfe377a1..000000000
--- a/lib/cheditor.lib.php
+++ /dev/null
@@ -1,33 +0,0 @@
-
-if (!defined('_GNUBOARD_')) exit;
-
-function cheditor1($id, $content)
-{
- return "";
-}
-
-function cheditor2($form, $id, $width='100%', $height='250')
-{
- global $g4;
-
- return "
-
- ";
-}
-
-function cheditor3($id)
-{
- //return "document.getElementById('{$id}').value = ed_{$id}.outputHTML();";
- // body 태그 안의 내용만 반환 (백경동 님)
- return "document.getElementById('{$id}').value = ed_{$id}.outputBodyHTML();";
-}
-?>
\ No newline at end of file
diff --git a/lib/cheditor4.lib.php b/lib/cheditor4.lib.php
deleted file mode 100644
index af2b201b2..000000000
--- a/lib/cheditor4.lib.php
+++ /dev/null
@@ -1,56 +0,0 @@
-
-if (!defined('_GNUBOARD_')) exit;
-
-if ($g4['is_cheditor5'])
-{
- $g4['cheditor4'] = "cheditor5";
- $g4['cheditor4_path'] = $g4['path'] . "/" . $g4['cheditor4'];
-
- function cheditor1($id, $width='100%', $height='250')
- {
- global $g4;
-
- return "
- ";
- }
-}
-else
-{
- function cheditor1($id, $width='100%', $height='250')
- {
- global $g4;
-
- return "
- ";
- }
-}
-
-function cheditor2($id, $content='')
-{
- global $g4;
-
- return "
-
- ";
-}
-
-function cheditor3($id)
-{
- return "document.getElementById('tx_{$id}').value = ed_{$id}.outputBodyHTML();";
-}
-?>
diff --git a/shop/_common.php b/shop/_common.php
index 3dadd2a9e..8f558eafb 100644
--- a/shop/_common.php
+++ b/shop/_common.php
@@ -1,4 +1,3 @@
-$g4_path = "..";
-include_once("$g4_path/common.php");
+include_once('../common.php');
?>
\ No newline at end of file
diff --git a/shop/_head.php b/shop/_head.php
index a3adcd264..c3e0a4a26 100644
--- a/shop/_head.php
+++ b/shop/_head.php
@@ -1,4 +1,4 @@
-if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
-include_once("$g4[path]/head.php");
+if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
+include_once(G4_SHOP_PATH.'/shop.head.php');
?>
\ No newline at end of file
diff --git a/shop/_tail.php b/shop/_tail.php
index ecb08437a..90772dd85 100644
--- a/shop/_tail.php
+++ b/shop/_tail.php
@@ -1,4 +1,4 @@
-if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
-include_once("$g4[path]/tail.php");
+if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
+include_once(G4_SHOP_PATH.'/shop.tail.php');
?>
\ No newline at end of file
diff --git a/shop/bannerhit.php b/shop/bannerhit.php
index 8ccc7e37a..3bc36551d 100644
--- a/shop/bannerhit.php
+++ b/shop/bannerhit.php
@@ -1,12 +1,12 @@
include_once("./_common.php");
-if ($_COOKIE[ck_bn_id] != $bn_id)
+if ($_COOKIE['ck_bn_id'] != $bn_id)
{
- $sql = " update $g4[yc4_banner_table] set bn_hit = bn_hit + 1 where bn_id = '$bn_id' ";
+ $sql = " update {$g4['yc4_banner_table']} set bn_hit = bn_hit + 1 where bn_id = '$bn_id' ";
sql_query($sql);
- // 하루 동안
- setcookie("ck_bn_id", $bn_id, 60*60*24, $default[de_cookie_dir], $default[de_cookie_domain]);
+ // 하루 동안
+ set_cookie("ck_bn_id", $bn_id, 60*60*24);
}
goto_url($url);
diff --git a/shop/boxcart.inc.php b/shop/boxcart.inc.php
index bbafa447a..49d04f605 100644
--- a/shop/boxcart.inc.php
+++ b/shop/boxcart.inc.php
@@ -1,11 +1,11 @@
-if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
+if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
-
+
-$hsql = " select a.it_id, b.it_name, a.ct_qty from $g4[yc4_cart_table] a, $g4[yc4_item_table] b
+$hsql = " select a.it_id, b.it_name, a.ct_qty from {$g4['yc4_cart_table']} a, {$g4['yc4_item_table']} b
where a.on_uid = '".get_session('ss_on_uid')."'
and a.it_id = b.it_id
order by a.ct_id ";
@@ -13,13 +13,13 @@ $hresult = sql_query($hsql);
for ($i=0; $row=sql_fetch_array($hresult); $i++)
{
echo "
\n";
}
if ($i==0)
diff --git a/shop/boxevent.inc.php b/shop/boxevent.inc.php
index 53f4152ad..12e7430ec 100644
--- a/shop/boxevent.inc.php
+++ b/shop/boxevent.inc.php
@@ -1,25 +1,25 @@
-if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
+if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
?>
-
+
-$hsql = " select ev_id, ev_subject from $g4[yc4_event_table] where ev_use = '1' order by ev_id desc ";
+$hsql = " select ev_id, ev_subject from {$g4['yc4_event_table']} where ev_use = '1' order by ev_id desc ";
$hresult = sql_query($hsql);
-for ($i=0; $row=sql_fetch_array($hresult); $i++)
+for ($i=0; $row=sql_fetch_array($hresult); $i++)
{
if ($i > 0)
- echo "
\n";
+ echo "
\n";
- $href = "$g4[shop_path]/event.php?ev_id=$row[ev_id]";
+ $href = G4_SHOP_URL."/event.php?ev_id={$row['ev_id']}";
// 이벤트 메뉴이미지가 있다면
- $event_img = "$g4[path]/data/event/$row[ev_id]_m";
+ $event_img = G4_DATA_PATH."/event/{$row['ev_id']}_m";
if (file_exists($event_img)) {
- echo "