Use SSL from the beginning if the installer is called with SSL

This commit is contained in:
Kijin Sung 2016-01-10 15:23:26 +09:00
parent 43098721b1
commit 545a47448b
4 changed files with 56 additions and 22 deletions

View file

@ -181,7 +181,8 @@ class installView extends install
include _XE_PATH_.'files/config/tmpDB.config.php';
Context::set('use_rewrite', $_SESSION['use_rewrite']);
Context::set('use_rewrite', $_SESSION['use_rewrite']);
Context::set('use_ssl', $_SERVER['HTTPS'] === 'on' ? 'always' : 'none');
Context::set('time_zone', $GLOBALS['time_zone']);
Context::set('db_type', $db_info->db_type);
$this->setTemplateFile('admin_form');