commit | author | age
|
dba282
|
1 |
<?php |
B |
2 |
/** |
|
3 |
* [WeEngine System] Copyright (c) 20181025112639 WE7.CC |
|
4 |
* WeEngine is NOT a free software, it under the license terms, visited http://www.we7.cc/ for more details. |
|
5 |
*/ |
|
6 |
|
|
7 |
require './framework/bootstrap.inc.php'; |
|
8 |
|
|
9 |
$host = $_SERVER['HTTP_HOST']; |
|
10 |
if (!empty($host)) { |
|
11 |
$bindhost = pdo_fetch("SELECT * FROM ".tablename('site_multi')." WHERE bindhost = :bindhost", array(':bindhost' => $host)); |
|
12 |
if (!empty($bindhost)) { |
|
13 |
header("Location: ". $_W['siteroot'] . 'app/index.php?i='.$bindhost['uniacid'].'&t='.$bindhost['id']); |
|
14 |
exit; |
|
15 |
} |
|
16 |
|
|
17 |
} |
|
18 |
if($_W['os'] == 'mobile' && (!empty($_GPC['i']) || !empty($_SERVER['QUERY_STRING']))) { |
|
19 |
header('Location: ./app/index.php?' . $_SERVER['QUERY_STRING']); |
|
20 |
} else { |
|
21 |
header('Location: ./web/index.php?' . (!empty($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] : 'c=account&a=display')); |
|
22 |
} |