mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 04:52:14 +09:00
코드 규칙에 맞게 정리
This commit is contained in:
parent
e69e0697a4
commit
b7ba92170f
1 changed files with 14 additions and 4 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/* Copyright (C) NAVER <http://www.navercorp.com> */
|
/* Copyright (C) NAVER <http://www.navercorp.com> */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @class login_info
|
* @class login_info
|
||||||
* @author NAVER (developers@xpressengine.com)
|
* @author NAVER (developers@xpressengine.com)
|
||||||
|
|
@ -21,8 +22,14 @@ class login_info extends WidgetHandler
|
||||||
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
|
$tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
|
||||||
Context::set('colorset', $args->colorset);
|
Context::set('colorset', $args->colorset);
|
||||||
// Specify a template file
|
// Specify a template file
|
||||||
if(Context::get('is_logged')) $tpl_file = 'login_info';
|
if(Context::get('is_logged'))
|
||||||
else $tpl_file = 'login_form';
|
{
|
||||||
|
$tpl_file = 'login_info';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$tpl_file = 'login_form';
|
||||||
|
}
|
||||||
// Get the member configuration
|
// Get the member configuration
|
||||||
$oModuleModel = getModel('module');
|
$oModuleModel = getModel('module');
|
||||||
$this->member_config = $oModuleModel->getModuleConfig('member');
|
$this->member_config = $oModuleModel->getModuleConfig('member');
|
||||||
|
|
@ -33,7 +40,10 @@ class login_info extends WidgetHandler
|
||||||
$useSsl = Context::getSslStatus();
|
$useSsl = Context::getSslStatus();
|
||||||
if($useSsl != 'none')
|
if($useSsl != 'none')
|
||||||
{
|
{
|
||||||
if(strncasecmp('https://', Context::getRequestUri(), 8) === 0) $ssl_mode = true;
|
if(strncasecmp('https://', Context::getRequestUri(), 8) === 0)
|
||||||
|
{
|
||||||
|
$ssl_mode = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Context::set('ssl_mode', $ssl_mode);
|
Context::set('ssl_mode', $ssl_mode);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue