diff --git a/shop/index.php b/shop/index.php
index c7d85bac9..55ffdb8c4 100644
--- a/shop/index.php
+++ b/shop/index.php
@@ -121,7 +121,5 @@ include_once(G4_SHOP_PATH.'/shop.head.php');
-include G4_SHOP_PATH.'/newwin.inc.php'; // 새창띄우기
-
include_once(G4_SHOP_PATH.'/shop.tail.php');
?>
\ No newline at end of file
diff --git a/shop/newwin.inc.php b/shop/newwin.inc.php
index b96915f17..e5096d3ce 100644
--- a/shop/newwin.inc.php
+++ b/shop/newwin.inc.php
@@ -14,7 +14,7 @@ for ($i=0; $row_nw=sql_fetch_array($result); $i++)
$sql = " select * from {$g4['shop_new_win_table']} where nw_id = '{$row_nw['nw_id']}' ";
$nw = sql_fetch($sql);
?>
-
| =conv_content($nw['nw_content'], 1);?> | diff --git a/shop/shop.head.php b/shop/shop.head.php index cebfd752a..7df490045 100644 --- a/shop/shop.head.php +++ b/shop/shop.head.php @@ -29,6 +29,11 @@ $table_width = 900;
|
+
+ if(defined('_INDEX_')) { // index에서만 실행 ?>
+ include G4_SHOP_PATH.'/newwin.inc.php'; // 새창띄우기 ?>
+ } ?>
+
|