#18958822 : add member mobile

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7535 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2010-06-21 11:55:29 +00:00
parent d0e36ff7f3
commit 2dd25da09f
4 changed files with 89 additions and 0 deletions

View file

@ -0,0 +1,35 @@
<?php
class memberMobile extends member
{
function init() {
// 회원 관리 정보를 받음
$oModuleModel = &getModel('module');
$this->member_config = $oModuleModel->getModuleConfig('member');
if(!$this->member_config->skin) $this->member_config->skin = "default";
if(!$this->member_config->colorset) $this->member_config->colorset = "white";
Context::set('member_config', $this->member_config);
$skin = $this->member_config->mskin;
// template path 지정
$tpl_path = sprintf('%sm.skins/%s', $this->module_path, $skin);
if(!$skin || !is_dir($tpl_path)) $tpl_path = sprintf('%sm.skins/%s', $this->module_path, 'default');
$this->setTemplatePath($tpl_path);
}
function dispMemberLoginForm() {
if(Context::get('is_logged')) {
Context::set('redirect_url', getUrl('act',''));
$this->setTemplatePath($this->module_path.'tpl');
$this->setTemplateFile('redirect.html');
return;
}
// 템플릿 파일 지정
Context::set('referer_url', $_SERVER['HTTP_REFERER']);
$this->setTemplateFile('login_form');
}
}
?>