mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@798 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
a11ddec974
commit
a5528e0099
41 changed files with 298 additions and 478 deletions
|
|
@ -12,55 +12,12 @@
|
|||
function init() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief admin 모듈내에서 다른 모듈을 실행하는 부분
|
||||
**/
|
||||
function procOtherModule($module, $act) {
|
||||
$oModuleHandler = new ModuleHandler($module, $act);
|
||||
$oModule = &$oModuleHandler->procModule();
|
||||
return $oModule;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 로그인 시킴
|
||||
**/
|
||||
function procLogin() {
|
||||
// 아이디, 비밀번호를 받음
|
||||
$user_id = Context::get('user_id');
|
||||
$password = Context::get('password');
|
||||
|
||||
// member controller 객체 생성
|
||||
$oMemberController = &getController('member');
|
||||
return $oMemberController->procLogin($user_id, $password);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 로그아웃 시킴
|
||||
**/
|
||||
function procLogout() {
|
||||
// member controller 객체 생성
|
||||
$oMemberController = &getController('member');
|
||||
$output = $oMemberController->procLogout();
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
$this->setRedirectUrl('./?module=admin');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 숏컷 추가
|
||||
**/
|
||||
function procInsertShortCut() {
|
||||
function procAdminInsertShortCut() {
|
||||
$module = Context::get('selected_module');
|
||||
$output = $this->insertShortCut($module);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
$this->setMessage('success_registed');
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 숏컷을 추가하는 method
|
||||
**/
|
||||
function insertShortCut($module) {
|
||||
// 선택된 모듈의 정보중에서 admin_index act를 구함
|
||||
$oModuleModel = &getModel('module');
|
||||
$module_info = $oModuleModel->getModuleInfoXml($module);
|
||||
|
|
@ -72,14 +29,15 @@
|
|||
|
||||
$oDB = &DB::getInstance();
|
||||
$output = $oDB->executeQuery('admin.insertShortCut', $args);
|
||||
return $output;
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
$this->setMessage('success_registed');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief 숏컷의 내용 수정
|
||||
* @brief 숏컷의 삭제
|
||||
**/
|
||||
function procDeleteShortCut() {
|
||||
function procAdminDeleteShortCut() {
|
||||
|
||||
$oDB = &DB::getInstance();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue