/
index.php
25 lines (20 loc) · 962 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
// +----------------------------------------------------------------------
// | Fanwe 方维o2o商业系统
// +----------------------------------------------------------------------
// | Copyright (c) 2011 http://www.fanwe.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: 云淡风轻(97139915@qq.com)
// +----------------------------------------------------------------------
define("FILE_PATH",""); //文件目录,空为根目录
require_once './system/system_init.php';
if (isMobile() && !isset($_REQUEST['is_pc']) && es_cookie::get("is_pc")!=1 && file_exists("./wap/index.php") && strim($_REQUEST['ctl'])!="app_download"){
app_redirect("./wap/index.php");
}else{
require_once APP_ROOT_PATH.'app/Lib/'.APP_TYPE.'/core/MainApp.class.php';
//实例化一个网站应用实例
$AppWeb = new MainApp();
if($_REQUEST['is_pc']==1)
es_cookie::set("is_pc","1",24*3600*30);
}
?>