코드 규칙에 맞게 정리

This commit is contained in:
BJRambo 2016-05-26 23:01:05 +09:00
parent e69e0697a4
commit b7ba92170f

View file

@ -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);