Commit c6155fd3 authored by wwccw0591's avatar wwccw0591

pc

parent 9777a7a3
...@@ -8,7 +8,19 @@ class IndexController extends \Our\Controller_Abstract { ...@@ -8,7 +8,19 @@ class IndexController extends \Our\Controller_Abstract {
public function init(){ public function init(){
} }
public function is_https() {
if ( !empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off') {
return true;
} elseif ( isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https' ) {
return true;
} elseif ( !empty($_SERVER['HTTP_FRONT_END_HTTPS']) && strtolower($_SERVER['HTTP_FRONT_END_HTTPS']) !== 'off') {
return true;
}elseif($_SERVER['SERVER_PORT'] == 89){
return true;
}
return false;
}
public function getHtmlAction(){ public function getHtmlAction(){
$this->req=$this->getRequest()->getQuery(); $this->req=$this->getRequest()->getQuery();
$postData=$this->req; $postData=$this->req;
...@@ -40,6 +52,7 @@ class IndexController extends \Our\Controller_Abstract { ...@@ -40,6 +52,7 @@ class IndexController extends \Our\Controller_Abstract {
} }
public function indexAction() { public function indexAction() {
json_encode($_SERVER);exit;
$elasticConfig=\Our\Common::getConfig('elastic.master'); $elasticConfig=\Our\Common::getConfig('elastic.master');
$configArray=array( $configArray=array(
$elasticConfig->host.':'.$elasticConfig->port, $elasticConfig->host.':'.$elasticConfig->port,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment