1 Star 0 Fork 17

丁新源 / weiqing

forked from 微凉 / weiqing 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.php 726 Bytes
一键复制 编辑 原始数据 按行查看 历史
donknap 提交于 2016-10-07 16:47 . 项目迁移至git
<?php
/**
* [WeEngine System] Copyright (c) 2013 WE7.CC
* $sn: pro/index.php : v 815cdc81ea88 : 2015/08/29 09:40:39 : RenChao $
*/
require './framework/bootstrap.inc.php';
$host = $_SERVER['HTTP_HOST'];
if (!empty($host)) {
$bindhost = pdo_fetch("SELECT * FROM ".tablename('site_multi')." WHERE bindhost = :bindhost", array(':bindhost' => $host));
if (!empty($bindhost)) {
header("Location: ". $_W['siteroot'] . 'app/index.php?i='.$bindhost['uniacid'].'&t='.$bindhost['id']);
exit;
}
}
if($_W['os'] == 'mobile' && (!empty($_GPC['i']) || !empty($_SERVER['QUERY_STRING']))) {
header('Location: ./app/index.php?' . $_SERVER['QUERY_STRING']);
} else {
header('Location: ./web/index.php?' . $_SERVER['QUERY_STRING']);
}
PHP
1
https://gitee.com/ding_xinyuan/weiqing.git
git@gitee.com:ding_xinyuan/weiqing.git
ding_xinyuan
weiqing
weiqing
master

搜索帮助