mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0_english@8278 201d5d3c-b55e-5fd7-737f-ddc643e51545
40 lines
1.4 KiB
PHP
40 lines
1.4 KiB
PHP
<?php
|
|
require_once(_XE_PATH_.'modules/message/message.view.php');
|
|
|
|
class messageMobile extends messageView {
|
|
|
|
/**
|
|
* @brief Initialization
|
|
**/
|
|
function init() {
|
|
}
|
|
|
|
/**
|
|
* @brief Message output
|
|
**/
|
|
function dispMessage() {
|
|
// Get configurations (using module model object)
|
|
$oModuleModel = &getModel('module');
|
|
$config = $oModuleModel->getModuleConfig('message');
|
|
if(!$config->skin) $config->skin = 'default';
|
|
// Set the template path
|
|
$template_path = sprintf('%sm.skins/%s', $this->module_path, $config->skin);
|
|
// Get the member configuration
|
|
$oModuleModel = &getModel('module');
|
|
$member_config = $oModuleModel->getModuleConfig('member');
|
|
Context::set('member_config', $member_config);
|
|
// Set a flag to check if the https connection is made when using SSL and create https url
|
|
$ssl_mode = false;
|
|
if($member_config->enable_ssl == 'Y') {
|
|
if(preg_match('/^https:\/\//i',Context::getRequestUri())) $ssl_mode = true;
|
|
}
|
|
Context::set('ssl_mode',$ssl_mode);
|
|
|
|
Context::set('system_message', nl2br($this->getMessage()));
|
|
|
|
$this->setTemplatePath($template_path);
|
|
$this->setTemplateFile('system_message');
|
|
}
|
|
|
|
}
|
|
?>
|