Merge pull request !13 from 耐小心/search-https
This commit is contained in:
commit
ffe1e3ed66
|
@ -15,14 +15,13 @@ define('NOROBOT', TRUE);
|
||||||
|
|
||||||
$url = '';
|
$url = '';
|
||||||
if($_G['setting']['domain']['app']['home'] || $_G['setting']['domain']['app']['default']) {
|
if($_G['setting']['domain']['app']['home'] || $_G['setting']['domain']['app']['default']) {
|
||||||
$port = empty($_SERVER['SERVER_PORT']) || $_SERVER['SERVER_PORT'] == '80' ? '' : ':'.$_SERVER['SERVER_PORT'];
|
|
||||||
$domain = '';
|
$domain = '';
|
||||||
if($_G['setting']['domain']['app']['home']) {
|
if($_G['setting']['domain']['app']['home']) {
|
||||||
$domain = $_G['setting']['domain']['app']['home'];
|
$domain = $_G['setting']['domain']['app']['home'];
|
||||||
} else {
|
} else {
|
||||||
$domain = $_G['setting']['domain']['app']['default'];
|
$domain = $_G['setting']['domain']['app']['default'];
|
||||||
}
|
}
|
||||||
$url = 'http://'.$domain.$port.'/';
|
$url = $_G['scheme'].'://'.$domain.$_G['siteport'].'/';
|
||||||
}
|
}
|
||||||
$url .= 'home.php?mod=spacecp&ac=search';
|
$url .= 'home.php?mod=spacecp&ac=search';
|
||||||
if($_GET['srchtxt']) {
|
if($_GET['srchtxt']) {
|
||||||
|
|
Loading…
Reference in New Issue