mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 21:59:55 +09:00
issue 90 apply patch.
show security login message by config status git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9827 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5af206c9a7
commit
339b2de797
6 changed files with 21 additions and 13 deletions
|
|
@ -26,12 +26,16 @@
|
|||
$oModuleModel = &getModel('module');
|
||||
$this->member_config = $oModuleModel->getModuleConfig('member');
|
||||
Context::set('member_config', $this->member_config);
|
||||
|
||||
// Set a flag to check if the https connection is made when using SSL and create https url
|
||||
$ssl_mode = false;
|
||||
if($this->member_config->enable_ssl == 'Y') {
|
||||
if(preg_match('/^https:\/\//i',Context::getRequestUri())) $ssl_mode = true;
|
||||
$useSsl = Context::getSslStatus();
|
||||
if($useSsl != 'none')
|
||||
{
|
||||
if(preg_match('/^https:\/\//i', Context::getRequestUri())) $ssl_mode = true;
|
||||
}
|
||||
Context::set('ssl_mode',$ssl_mode);
|
||||
|
||||
// Compile a template
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue