모바일 접속시 include 파일관련 코드 추가

This commit is contained in:
chicpro
2013-05-08 10:28:44 +09:00
parent 390ed9bcf7
commit d03364799d
5 changed files with 32 additions and 4 deletions

View File

@ -1,10 +1,16 @@
<?php
include_once("./_common.php");
include_once(G4_LIB_PATH.'/latest.lib.php');
include_once(G4_LIB_PATH.'/poll.lib.php');
include_once('./_common.php');
if (G4_IS_MOBILE) {
include_once(G4_MSHOP_PATH.'/index.php');
return;
}
define("_INDEX_", TRUE);
include_once(G4_LIB_PATH.'/latest.lib.php');
include_once(G4_LIB_PATH.'/poll.lib.php');
include_once(G4_SHOP_PATH.'/shop.head.php');
?>

View File

@ -1,5 +1,11 @@
<?php
include_once('./_common.php');
if (G4_IS_MOBILE) {
include_once(G4_MSHOP_PATH.'/item.php');
return;
}
include_once(G4_LIB_PATH.'/iteminfo.lib.php');
include_once(G4_GCAPTCHA_PATH.'/gcaptcha.lib.php');

View File

@ -1,5 +1,10 @@
<?php
include_once("./_common.php");
include_once('./_common.php');
if (G4_IS_MOBILE) {
include_once(G4_MSHOP_PATH.'/list.php');
return;
}
$sql = " select *
from {$g4['shop_category_table']}

View File

@ -1,5 +1,11 @@
<?php
include_once('./_common.php');
if (G4_IS_MOBILE) {
include_once(G4_MSHOP_PATH.'/listtype.php');
return;
}
include_once('./_head.php');
$type = $_REQUEST['type'];

View File

@ -1,6 +1,11 @@
<?php
include_once('./_common.php');
if (G4_IS_MOBILE) {
include_once(G4_MSHOP_PATH.'/mypage.php');
return;
}
if (!$is_member)
goto_url(G4_BBS_URL."/login.php?url=".urlencode(G4_SHOP_URL."/mypage.php"));