XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
login_info.class.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) NAVER <http://www.navercorp.com> */
12 {
18  function proc($args)
19  {
20  // Set a path of the template skin (values of skin, colorset settings)
21  $tpl_path = sprintf('%sskins/%s', $this->widget_path, $args->skin);
22  Context::set('colorset', $args->colorset);
23  // Specify a template file
24  if(Context::get('is_logged')) $tpl_file = 'login_info';
25  else $tpl_file = 'login_form';
26  // Get the member configuration
27  $oModuleModel = getModel('module');
28  $this->member_config = $oModuleModel->getModuleConfig('member');
29  Context::set('member_config', $this->member_config);
30 
31  // Set a flag to check if the https connection is made when using SSL and create https url
32  $ssl_mode = false;
33  $useSsl = Context::getSslStatus();
34  if($useSsl != 'none')
35  {
36  if(strncasecmp('https://', Context::getRequestUri(), 8) === 0) $ssl_mode = true;
37  }
38  Context::set('ssl_mode',$ssl_mode);
39 
40  // Compile a template
41  $oTemplate = &TemplateHandler::getInstance();
42  return $oTemplate->compile($tpl_path, $tpl_file);
43  }
44 }
45 /* End of file login_info.class.php */
46 /* Location: ./widgets/login_info/login_info.class.php */
$oModuleModel
Definition: ko.install.php:236
set($key, $val, $set_to_get_vars=0)
Handler class for widget execution.
$args
Definition: ko.install.php:185
Widget to display log-in form.
proc($args)
Widget execution Get extra_vars declared in ./widgets/widget/conf/info.xml as arguments After generat...
getRequestUri($ssl_mode=FOLLOW_REQUEST_SSL, $domain=null)
getModel($module_name)
Definition: func.inc.php:145