XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
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');
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 
43  $this->setTemplateFile('system_message');
44  }
45 }
46 /* End of file message.mobile.php */
47 /* Location: ./modules/message/message.mobile.php */
setTemplateFile($filename)
$oModuleModel
Definition: ko.install.php:236
$template_path
a path of directory where template files reside
set($key, $val, $set_to_get_vars=0)
dispMessage()
Message output.
const _XE_PATH_
Definition: config.inc.php:49
getRequestUri($ssl_mode=FOLLOW_REQUEST_SSL, $domain=null)
getModel($module_name)
Definition: func.inc.php:145
view class of the message module
Definition: message.view.php:8
init()
Initialization.