테마에서 마이페이지등을 지정할 수 있도록 수정

This commit is contained in:
chicpro
2015-09-22 15:43:52 +09:00
parent ced60631e4
commit a09aa36cd6
8 changed files with 88 additions and 34 deletions

View File

@ -1,13 +1,23 @@
<?php
include_once('./_common.php');
if (!$is_member)
goto_url(G5_BBS_URL."/login.php?url=".urlencode(G5_SHOP_URL."/mypage.php"));
if (G5_IS_MOBILE) {
include_once(G5_MSHOP_PATH.'/mypage.php');
return;
}
if (!$is_member)
goto_url(G5_BBS_URL."/login.php?url=".urlencode(G5_SHOP_URL."/mypage.php"));
// 테마에 mypage.php 있으면 include
if(defined('G5_THEME_SHOP_PATH')) {
$theme_mypage_file = G5_THEME_SHOP_PATH.'/mypage.php';
if(is_file($theme_mypage_file)) {
include_once($theme_mypage_file);
return;
unset($theme_mypage_file);
}
}
$g5['title'] = $member['mb_name'].'님 마이페이지';
include_once('./_head.php');

View File

@ -2,6 +2,16 @@
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_ORDERINQUIRY_")) exit; // 개별 페이지 접근 불가
// 테마에 orderinquiry.sub.php 있으면 include
if(defined('G5_THEME_SHOP_PATH')) {
$theme_inquiry_file = G5_THEME_SHOP_PATH.'/orderinquiry.sub.php';
if(is_file($theme_inquiry_file)) {
include_once($theme_inquiry_file);
return;
unset($theme_inquiry_file);
}
}
?>
<!-- 주문 내역 목록 시작 { -->

View File

@ -1,11 +1,6 @@
<?php
include_once('./_common.php');
if (G5_IS_MOBILE) {
include_once(G5_MSHOP_PATH.'/orderinquiryview.php');
return;
}
// 불법접속을 할 수 없도록 세션에 아무값이나 저장하여 hidden 으로 넘겨서 다음 페이지에서 비교함
$token = md5(uniqid(rand(), true));
set_session("ss_token", $token);
@ -26,6 +21,21 @@ if (!$od['od_id'] || (!$is_member && md5($od['od_id'].$od['od_time'].$od['od_ip'
// 결제방법
$settle_case = $od['od_settle_case'];
if (G5_IS_MOBILE) {
include_once(G5_MSHOP_PATH.'/orderinquiryview.php');
return;
}
// 테마에 orderinquiryview.php 있으면 include
if(defined('G5_THEME_SHOP_PATH')) {
$theme_inquiryview_file = G5_THEME_SHOP_PATH.'/orderinquiryview.php';
if(is_file($theme_inquiryview_file)) {
include_once($theme_inquiryview_file);
return;
unset($theme_inquiryview_file);
}
}
$g5['title'] = '주문상세내역';
include_once('./_head.php');

View File

@ -1,13 +1,23 @@
<?php
include_once('./_common.php');
if (!$is_member)
goto_url(G5_BBS_URL."/login.php?url=".urlencode(G5_SHOP_URL.'/wishlist.php'));
if (G5_IS_MOBILE) {
include_once(G5_MSHOP_PATH.'/wishlist.php');
return;
}
if (!$is_member)
goto_url(G5_BBS_URL."/login.php?url=".urlencode(G5_SHOP_URL.'/wishlist.php'));
// 테마에 wishlist.php 있으면 include
if(defined('G5_THEME_SHOP_PATH')) {
$theme_wishlist_file = G5_THEME_SHOP_PATH.'/wishlist.php';
if(is_file($theme_wishlist_file)) {
include_once($theme_wishlist_file);
return;
unset($theme_wishlist_file);
}
}
$g5['title'] = "위시리스트";
include_once('./_head.php');