XpressEngine Core
1.11.2
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
modules
message
message.mobile.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) NAVER <http://www.navercorp.com> */
3
require_once(
_XE_PATH_
.
'modules/message/message.view.php'
);
4
class
messageMobile
extends
messageView
5
{
9
function
init
()
10
{
11
}
12
16
function
dispMessage
()
17
{
18
// Get configurations (using module model object)
19
$oModuleModel
=
getModel
(
'module'
);
20
$config =
$oModuleModel
->getModuleConfig(
'message'
);
21
if
(!is_object($config)) $config =
new
stdClass;
22
if
(!$config->mskin) $config->mskin =
'default'
;
23
// Set the template path
24
$template_path
= sprintf(
'%sm.skins/%s'
, $this->module_path, $config->mskin);
25
// Get the member configuration
26
$oModuleModel
=
getModel
(
'module'
);
27
$member_config =
$oModuleModel
->getModuleConfig(
'member'
);
28
Context::set
(
'member_config'
, $member_config);
29
// Set a flag to check if the https connection is made when using SSL and create https url
30
$ssl_mode =
false
;
31
if
($member_config->enable_ssl ==
'Y'
)
32
{
33
if
(strncasecmp(
'https://'
,
Context::getRequestUri
(), 8) === 0) $ssl_mode =
true
;
34
}
35
Context::set
(
'ssl_mode'
,$ssl_mode);
36
37
Context::set
(
'system_message'
, nl2br($this->
getMessage
()));
38
39
Context::set
(
'act'
,
'procMemberLogin'
);
40
Context::set
(
'mid'
,
''
);
41
42
$this->
setTemplatePath
(
$template_path
);
43
$this->
setTemplateFile
(
'system_message'
);
44
}
45
}
46
/* End of file message.mobile.php */
47
/* Location: ./modules/message/message.mobile.php */
ModuleObject\setTemplateFile
setTemplateFile($filename)
Definition:
ModuleObject.class.php:252
$oModuleModel
$oModuleModel
Definition:
ko.install.php:236
ModuleObject\$template_path
$template_path
a path of directory where template files reside
Definition:
ModuleObject.class.php:20
Context\set
set($key, $val, $set_to_get_vars=0)
Definition:
Context.class.php:1948
messageMobile
Definition:
message.mobile.php:4
messageMobile\dispMessage
dispMessage()
Message output.
Definition:
message.mobile.php:16
_XE_PATH_
const _XE_PATH_
Definition:
config.inc.php:49
Context\getRequestUri
getRequestUri($ssl_mode=FOLLOW_REQUEST_SSL, $domain=null)
Definition:
Context.class.php:1849
getModel
getModel($module_name)
Definition:
func.inc.php:145
BaseObject\getMessage
getMessage()
Definition:
BaseObject.class.php:116
messageView
view class of the message module
Definition:
message.view.php:8
ModuleObject\setTemplatePath
setTemplatePath($path)
Definition:
ModuleObject.class.php:275
messageMobile\init
init()
Initialization.
Definition:
message.mobile.php:9
Generated on Tue Dec 18 2018 17:04:29 for XpressEngine Core by
1.8.5