-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
36 lines (29 loc) · 1.17 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
<?php
// +----------------------------------------------------------------------
// | Fanwe 方维众筹商业系统
// +----------------------------------------------------------------------
// | Copyright (c) 2011 http://www.fanwe.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: 甘味人生(526130@qq.com)
// +----------------------------------------------------------------------
require './system/system_init.php';
require './app/Lib/App.class.php';
define('APP_DEBUG',true);
if($_REQUEST['is_pc']==1)
es_cookie::set("is_pc","1",24*3600*30);
if (isMobile() && !isset($_REQUEST['is_pc']) && es_cookie::get("is_pc")!=1&&is_dir(APP_ROOT_PATH."wap")&$_REQUEST['ctl']!='collocation'&&$_REQUEST['ctl']!='collocation'){
$ctl=$_REQUEST['ctl']?$_REQUEST['ctl']:'index';
$act=$_REQUEST['act']?$_REQUEST['act']:'index';
$id=$_REQUEST['id'];
if($id){
app_redirect(url_wap($ctl."#".$act,array('id'=>$id)));
}else{
app_redirect(url_wap($ctl."#".$act));
}
}else{
set_source_url();
//实例化一个网站应用实例
$AppWeb = new App();
}
//实例化一个网站应用实例
?>