index 파일 등을 지정할 수 있는 기능 추가
This commit is contained in:
@ -77,6 +77,14 @@ if(!isset($default['de_pg_service'])) {
|
|||||||
sql_query(" ALTER TABLE `{$g5['g5_shop_default_table']}`
|
sql_query(" ALTER TABLE `{$g5['g5_shop_default_table']}`
|
||||||
ADD `de_pg_service` varchar(255) NOT NULL DEFAULT '' AFTER `de_sms_hp` ", true);
|
ADD `de_pg_service` varchar(255) NOT NULL DEFAULT '' AFTER `de_sms_hp` ", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 레이아웃 파일 필드 추가
|
||||||
|
if(!isset($default['de_include_index'])) {
|
||||||
|
sql_query(" ALTER TABLE `{$g5['g5_shop_default_table']}`
|
||||||
|
ADD `de_include_index` varchar(255) NOT NULL DEFAULT '' AFTER `de_admin_info_email`,
|
||||||
|
ADD `de_include_head` varchar(255) NOT NULL DEFAULT '' AFTER `de_include_index`,
|
||||||
|
ADD `de_include_tail` varchar(255) NOT NULL DEFAULT '' AFTER `de_include_head` ", true);
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<form name="fconfig" action="./configformupdate.php" onsubmit="return fconfig_check(this)" method="post" enctype="MULTIPART/FORM-DATA">
|
<form name="fconfig" action="./configformupdate.php" onsubmit="return fconfig_check(this)" method="post" enctype="MULTIPART/FORM-DATA">
|
||||||
@ -160,6 +168,70 @@ if(!isset($default['de_pg_service'])) {
|
|||||||
|
|
||||||
<?php echo $frm_submit; ?>
|
<?php echo $frm_submit; ?>
|
||||||
|
|
||||||
|
<section id="anc_scf_lay">
|
||||||
|
<h2 class="h2_frm">레이아웃 설정</h2>
|
||||||
|
<?php echo $pg_anchor; ?>
|
||||||
|
<div class="local_desc02 local_desc">
|
||||||
|
<p>기본 설정된 파일 등을 변경할 수 있습니다.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="tbl_frm01 tbl_wrap">
|
||||||
|
<table>
|
||||||
|
<caption>레이아웃 설정</caption>
|
||||||
|
<colgroup>
|
||||||
|
<col class="grid_4">
|
||||||
|
<col>
|
||||||
|
</colgroup>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"><label for="cf_include_index">초기화면 파일</label></th>
|
||||||
|
<td>
|
||||||
|
<?php echo help('입력이 없으면 '.G5_SHOP_DIR.'/index.php가 초기화면 파일로 설정됩니다.<br>초기화면 파일은 '.G5_SHOP_DIR.'/index.php 파일과 동일한 위치에 존재해야 합니다.') ?>
|
||||||
|
<input type="text" name="de_include_index" value="<?php echo $default['de_include_index'] ?>" id="de_include_index" class="frm_input" size="50">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"><label for="de_include_head">상단 파일</label></th>
|
||||||
|
<td>
|
||||||
|
<?php echo help('입력이 없으면 '.G5_SHOP_DIR.'/shop.head.php가 상단 파일로 설정됩니다.<br>상단 파일은 '.G5_SHOP_DIR.'/shop.head.php 파일과 동일한 위치에 존재해야 합니다.') ?>
|
||||||
|
<input type="text" name="de_include_head" value="<?php echo $default['de_include_head'] ?>" id="de_include_head" class="frm_input" size="50">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"><label for="de_include_tail">하단 파일</label></th>
|
||||||
|
<td>
|
||||||
|
<?php echo help('입력이 없으면 '.G5_SHOP_DIR.'/shop.tail.php가 하단 파일로 설정됩니다.<br>하단 파일은 '.G5_SHOP_DIR.'/shop.tail.php 파일과 동일한 위치에 존재해야 합니다.') ?>
|
||||||
|
<input type="text" name="de_include_tail" value="<?php echo $default['de_include_tail'] ?>" id="de_include_tail" class="frm_input" size="50">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"><label for="de_root_index_use">루트 index 사용</label></th>
|
||||||
|
<td>
|
||||||
|
<?php echo help('쇼핑몰의 접속경로를 '.G5_SHOP_URL.' 에서 '.G5_URL.' 으로 변경하시려면 사용으로 설정해 주십시오.'); ?>
|
||||||
|
<select name="de_root_index_use" id="de_root_index_use">
|
||||||
|
<option value="0" <?php echo get_selected($default['de_root_index_use'], 0); ?>>사용안함</option>
|
||||||
|
<option value="1" <?php echo get_selected($default['de_root_index_use'], 1); ?>>사용</option>
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th scope="row"><label for="de_shop_layout_use">쇼핑몰 레이아웃 사용</label></th>
|
||||||
|
<td>
|
||||||
|
<?php echo help('커뮤니티의 레이아웃을 쇼핑몰과 동일하게 적용하시려면 사용으로 설정해 주십시오.'); ?>
|
||||||
|
<select name="de_shop_layout_use" id="de_shop_layout_use">
|
||||||
|
<option value="0" <?php echo get_selected($default['de_shop_layout_use'], 0); ?>>사용안함</option>
|
||||||
|
<option value="1" <?php echo get_selected($default['de_shop_layout_use'], 1); ?>>사용</option>
|
||||||
|
</select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<?php echo $frm_submit; ?>
|
||||||
|
|
||||||
<section id="anc_scf_skin">
|
<section id="anc_scf_skin">
|
||||||
<h2 class="h2_frm">스킨설정</h2>
|
<h2 class="h2_frm">스킨설정</h2>
|
||||||
<?php echo $pg_anchor; ?>
|
<?php echo $pg_anchor; ?>
|
||||||
@ -787,26 +859,6 @@ if(!isset($default['de_pg_service'])) {
|
|||||||
<col>
|
<col>
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="de_root_index_use">루트 index 사용</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help('쇼핑몰의 접속경로를 '.G5_SHOP_URL.' 에서 '.G5_URL.' 으로 변경하시려면 사용으로 설정해 주십시오.'); ?>
|
|
||||||
<select name="de_root_index_use" id="de_root_index_use">
|
|
||||||
<option value="0" <?php echo get_selected($default['de_root_index_use'], 0); ?>>사용안함</option>
|
|
||||||
<option value="1" <?php echo get_selected($default['de_root_index_use'], 1); ?>>사용</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<th scope="row"><label for="de_shop_layout_use">쇼핑몰 레이아웃 사용</label></th>
|
|
||||||
<td>
|
|
||||||
<?php echo help('커뮤니티의 레이아웃을 쇼핑몰과 동일하게 적용하시려면 사용으로 설정해 주십시오.'); ?>
|
|
||||||
<select name="de_shop_layout_use" id="de_shop_layout_use">
|
|
||||||
<option value="0" <?php echo get_selected($default['de_shop_layout_use'], 0); ?>>사용안함</option>
|
|
||||||
<option value="1" <?php echo get_selected($default['de_shop_layout_use'], 1); ?>>사용</option>
|
|
||||||
</select>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">관련상품출력</th>
|
<th scope="row">관련상품출력</th>
|
||||||
<td>
|
<td>
|
||||||
|
|||||||
@ -41,6 +41,9 @@ $sql = " update {$g5['g5_shop_default_table']}
|
|||||||
de_admin_company_addr = '$de_admin_company_addr',
|
de_admin_company_addr = '$de_admin_company_addr',
|
||||||
de_admin_info_name = '$de_admin_info_name',
|
de_admin_info_name = '$de_admin_info_name',
|
||||||
de_admin_info_email = '$de_admin_info_email',
|
de_admin_info_email = '$de_admin_info_email',
|
||||||
|
de_include_index = '$de_include_index',
|
||||||
|
de_include_head = '$de_include_head',
|
||||||
|
de_include_tail = '$de_include_tail',
|
||||||
de_root_index_use = '$de_root_index_use',
|
de_root_index_use = '$de_root_index_use',
|
||||||
de_shop_layout_use = '$de_shop_layout_use',
|
de_shop_layout_use = '$de_shop_layout_use',
|
||||||
de_shop_skin = '$de_shop_skin',
|
de_shop_skin = '$de_shop_skin',
|
||||||
|
|||||||
@ -186,6 +186,9 @@ CREATE TABLE IF NOT EXISTS `g5_shop_default` (
|
|||||||
`de_admin_company_addr` varchar(255) NOT NULL DEFAULT '',
|
`de_admin_company_addr` varchar(255) NOT NULL DEFAULT '',
|
||||||
`de_admin_info_name` varchar(255) NOT NULL DEFAULT '',
|
`de_admin_info_name` varchar(255) NOT NULL DEFAULT '',
|
||||||
`de_admin_info_email` varchar(255) NOT NULL DEFAULT '',
|
`de_admin_info_email` varchar(255) NOT NULL DEFAULT '',
|
||||||
|
`de_include_index` varchar(255) NOT NULL DEFAULT '',
|
||||||
|
`de_include_head` varchar(255) NOT NULL DEFAULT '',
|
||||||
|
`de_include_tail` varchar(255) NOT NULL DEFAULT '',
|
||||||
`de_root_index_use` tinyint(4) NOT NULL DEFAULT '0',
|
`de_root_index_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||||
`de_shop_layout_use` tinyint(4) NOT NULL DEFAULT '0',
|
`de_shop_layout_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||||
`de_shop_skin` varchar(255) NOT NULL DEFAULT '',
|
`de_shop_skin` varchar(255) NOT NULL DEFAULT '',
|
||||||
|
|||||||
@ -1,6 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
include_once('./_common.php');
|
include_once('./_common.php');
|
||||||
|
|
||||||
|
// 초기화면 파일 지정 : 이 코드는 가능한 삭제하지 마십시오.
|
||||||
|
if ($default['de_include_index'] && is_file(G5_SHOP_PATH.'/'.$default['de_include_index'])) {
|
||||||
|
include_once($default['de_include_index']);
|
||||||
|
return; // 이 코드의 아래는 실행을 하지 않습니다.
|
||||||
|
}
|
||||||
|
|
||||||
if (G5_IS_MOBILE) {
|
if (G5_IS_MOBILE) {
|
||||||
include_once(G5_MSHOP_PATH.'/index.php');
|
include_once(G5_MSHOP_PATH.'/index.php');
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -8,6 +8,12 @@ include_once(G5_LIB_PATH.'/visit.lib.php');
|
|||||||
include_once(G5_LIB_PATH.'/connect.lib.php');
|
include_once(G5_LIB_PATH.'/connect.lib.php');
|
||||||
include_once(G5_LIB_PATH.'/popular.lib.php');
|
include_once(G5_LIB_PATH.'/popular.lib.php');
|
||||||
include_once(G5_LIB_PATH.'/latest.lib.php');
|
include_once(G5_LIB_PATH.'/latest.lib.php');
|
||||||
|
|
||||||
|
// 상단 파일 지정 : 이 코드는 가능한 삭제하지 마십시오.
|
||||||
|
if ($default['de_include_head'] && is_file(G5_SHOP_PATH.'/'.$default['de_include_head'])) {
|
||||||
|
include_once($default['de_include_head']);
|
||||||
|
return; // 이 코드의 아래는 실행을 하지 않습니다.
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- 상단 시작 { -->
|
<!-- 상단 시작 { -->
|
||||||
|
|||||||
@ -1,6 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||||
|
|
||||||
|
// 하단 파일 지정 : 이 코드는 가능한 삭제하지 마십시오.
|
||||||
|
if ($default['de_include_tail'] && is_file(G5_SHOP_PATH.'/'.$default['de_include_tail'])) {
|
||||||
|
include_once($default['de_include_tail']);
|
||||||
|
return; // 이 코드의 아래는 실행을 하지 않습니다.
|
||||||
|
}
|
||||||
|
|
||||||
$admin = get_admin("super");
|
$admin = get_admin("super");
|
||||||
|
|
||||||
// 사용자 화면 우측과 하단을 담당하는 페이지입니다.
|
// 사용자 화면 우측과 하단을 담당하는 페이지입니다.
|
||||||
|
|||||||
Reference in New Issue
Block a user