1 Star 0 Fork 648

小崔 / 开源版微擎系统

forked from 微擎 / 开源版微擎系统
Closed
 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
index.php 885 Bytes
Copy Edit Raw Blame History
brjun authored 2020-05-06 18:50 . 2.6.1版本
<?php
/**
* [WeEngine System] Copyright (c) 2014 W7.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: ' . $_W['siteroot'] . 'app/index.php?' . $_SERVER['QUERY_STRING']);
} else {
if (!empty($_SERVER['QUERY_STRING'])) {
header('Location: ' . $_W['siteroot'] . 'web/index.php?' . $_SERVER['QUERY_STRING']);
} else {
header('Location: ' . $_W['siteroot'] . 'web/home.php');
}
}
PHP
1
https://gitee.com/ucenters/pros.git
git@gitee.com:ucenters/pros.git
ucenters
pros
开源版微擎系统
master

Search