XpressEngine Core
1.11.2
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
widgets
login_info
login_info.class.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) NAVER <http://www.navercorp.com> */
11
class
login_info
extends
WidgetHandler
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
$oModuleModel
Definition:
ko.install.php:236
TemplateHandler\getInstance
static & getInstance()
Definition:
TemplateHandler.class.php:60
Context\set
set($key, $val, $set_to_get_vars=0)
Definition:
Context.class.php:1948
WidgetHandler
Handler class for widget execution.
Definition:
WidgetHandler.class.php:10
Context\getSslStatus
getSslStatus()
Definition:
Context.class.php:572
$args
$args
Definition:
ko.install.php:185
login_info
Widget to display log-in form.
Definition:
login_info.class.php:11
login_info\proc
proc($args)
Widget execution Get extra_vars declared in ./widgets/widget/conf/info.xml as arguments After generat...
Definition:
login_info.class.php:18
Context\getRequestUri
getRequestUri($ssl_mode=FOLLOW_REQUEST_SSL, $domain=null)
Definition:
Context.class.php:1849
getModel
getModel($module_name)
Definition:
func.inc.php:145
Context\get
get($key)
Definition:
Context.class.php:1973
Generated on Tue Dec 18 2018 17:04:29 for XpressEngine Core by
1.8.5