当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
408 Star 1.6K Fork 646

微擎 / 开源版微擎系统
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.php 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
brjun 提交于 2024-01-04 12:05 . 整理代码;删除无用文件
<?php
/**
* [WeEngine System] Copyright (c) 2014 W7.CC
* $sn: pro/index.php : v 815cdc81ea88 : 2015/08/29 09:40:39 : RenChao $
*/
require __DIR__ . '/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 (!empty($_W['setting']['app_redirect']) && safe_gpc_url($_W['setting']['app_redirect']) && !empty($_GPC['w7_app_redirect'])) {
$response = ihttp_get($_W['setting']['app_redirect']);
if ($response['code'] == 200 && !empty($response['content'])) {
die($response['content']);
}
}
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/index.php?c=home&a=home&do=home');
}
}
PHP
1
https://gitee.com/we7coreteam/pros.git
git@gitee.com:we7coreteam/pros.git
we7coreteam
pros
开源版微擎系统
master

搜索帮助