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@1892 201d5d3c-b55e-5fd7-737f-ddc643e51545
46 lines
1.2 KiB
PHP
46 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* @class installAdminController
|
|
* @author zero (zero@nzeo.com)
|
|
* @brief install module의 admin controller class
|
|
**/
|
|
|
|
class installAdminController extends install {
|
|
|
|
|
|
/**
|
|
* @brief 초기화
|
|
**/
|
|
function init() {
|
|
}
|
|
|
|
/**
|
|
* @brief 모듈 설치
|
|
**/
|
|
function procInstallAdminInstall() {
|
|
$module_name = Context::get('module_name');
|
|
if(!$module_name) return new object(-1, 'invalid_request');
|
|
|
|
$oInstallController = &getController('install');
|
|
$oInstallController->installModule($module_name, './modules/'.$module_name);
|
|
|
|
$this->setMessage('success_installed');
|
|
}
|
|
|
|
/**
|
|
* @brief time zone변경
|
|
**/
|
|
function procInstallAdminSaveTimeZone() {
|
|
$time_zone = Context::get('time_zone');
|
|
|
|
$db_info = Context::getDBInfo();
|
|
$db_info->time_zone = $time_zone;
|
|
Context::setDBInfo($db_info);
|
|
|
|
$oInstallController = &getController('install');
|
|
$oInstallController->makeConfigFile();
|
|
|
|
$this->setMessage('success_updated');
|
|
}
|
|
}
|
|
?>
|