Merge pull request !13 from 耐小心/search-https

This commit is contained in:
耐小心 2017-01-16 09:41:54 +08:00 committed by 康盛Discuz!
commit ffe1e3ed66
1 changed files with 2 additions and 3 deletions

View File

@ -15,14 +15,13 @@ define('NOROBOT', TRUE);
$url = '';
if($_G['setting']['domain']['app']['home'] || $_G['setting']['domain']['app']['default']) {
$port = empty($_SERVER['SERVER_PORT']) || $_SERVER['SERVER_PORT'] == '80' ? '' : ':'.$_SERVER['SERVER_PORT'];
$domain = '';
if($_G['setting']['domain']['app']['home']) {
$domain = $_G['setting']['domain']['app']['home'];
} else {
$domain = $_G['setting']['domain']['app']['default'];
}
$url = 'http://'.$domain.$port.'/';
$url = $_G['scheme'].'://'.$domain.$_G['siteport'].'/';
}
$url .= 'home.php?mod=spacecp&ac=search';
if($_GET['srchtxt']) {
@ -31,4 +30,4 @@ if($_GET['srchtxt']) {
dheader('Location: '.$url);
?>
?>