mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 07:09:56 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@464 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0a41787b97
commit
1349cf70ed
6 changed files with 9 additions and 70 deletions
|
|
@ -12,18 +12,9 @@
|
||||||
**/
|
**/
|
||||||
function moduleInstall() {
|
function moduleInstall() {
|
||||||
// file 모듈에서 사용할 디렉토리 생성
|
// file 모듈에서 사용할 디렉토리 생성
|
||||||
$directory_list = array(
|
FileHandler::makeDir('./files/attach/images');
|
||||||
'./files',
|
FileHandler::makeDir('./files/attach/binaries');
|
||||||
'./files/attach',
|
|
||||||
'./files/attach/images',
|
|
||||||
'./files/attach/binaries',
|
|
||||||
);
|
|
||||||
|
|
||||||
foreach($directory_list as $dir) {
|
|
||||||
if(is_dir($dir)) continue;
|
|
||||||
@mkdir($dir, 0707);
|
|
||||||
@chmod($dir, 0707);
|
|
||||||
}
|
|
||||||
return new Object();
|
return new Object();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -95,22 +95,18 @@
|
||||||
**/
|
**/
|
||||||
function makeDefaultDirectory() {
|
function makeDefaultDirectory() {
|
||||||
$directory_list = array(
|
$directory_list = array(
|
||||||
'./files',
|
|
||||||
'./files/config',
|
'./files/config',
|
||||||
'./files/modules',
|
'./files/modules',
|
||||||
'./files/plugins',
|
'./files/plugins',
|
||||||
'./files/addons',
|
'./files/addons',
|
||||||
'./files/layouts',
|
'./files/layouts',
|
||||||
'./files/cache',
|
|
||||||
'./files/cache/queries',
|
'./files/cache/queries',
|
||||||
'./files/cache/js_filter_compiled',
|
'./files/cache/js_filter_compiled',
|
||||||
'./files/cache/template_compiled',
|
'./files/cache/template_compiled',
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach($directory_list as $dir) {
|
foreach($directory_list as $dir) {
|
||||||
if(is_dir($dir)) continue;
|
FileHandler::makeDir($dir);
|
||||||
@mkdir($dir, 0707);
|
|
||||||
@chmod($dir, 0707);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -122,7 +118,7 @@
|
||||||
function installDownloadedModule() {
|
function installDownloadedModule() {
|
||||||
|
|
||||||
// 수동으로 설치를 할 목록
|
// 수동으로 설치를 할 목록
|
||||||
$manual_modules = array('install','module','pagemaker');
|
$manual_modules = array('install','module');
|
||||||
|
|
||||||
// install, module 모듈은 미리 설치
|
// install, module 모듈은 미리 설치
|
||||||
$this->installModule('install', './modules/install/');
|
$this->installModule('install', './modules/install/');
|
||||||
|
|
@ -143,8 +139,6 @@
|
||||||
$this->installModule($module, $module_path);
|
$this->installModule($module, $module_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
// pagemaker는 모두 설치된 후에 설치
|
|
||||||
$this->installModule('pagemaker','./modules/pagemaker');
|
|
||||||
return new Object();
|
return new Object();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,18 +11,9 @@
|
||||||
* @brief 설치시 추가 작업이 필요할시 구현
|
* @brief 설치시 추가 작업이 필요할시 구현
|
||||||
**/
|
**/
|
||||||
function moduleInstall() {
|
function moduleInstall() {
|
||||||
// layout 에서 사용할 cache디렉토리 생성
|
// 레이아웃에서 사용할 디렉토리 생성
|
||||||
$directory_list = array(
|
FileHandler::makeDir('./files/cache/layout');
|
||||||
'./files',
|
|
||||||
'./files/cache',
|
|
||||||
'./files/cache/layout',
|
|
||||||
);
|
|
||||||
|
|
||||||
foreach($directory_list as $dir) {
|
|
||||||
if(is_dir($dir)) continue;
|
|
||||||
@mkdir($dir, 0707);
|
|
||||||
@chmod($dir, 0707);
|
|
||||||
}
|
|
||||||
return new Object();
|
return new Object();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,17 +12,7 @@
|
||||||
**/
|
**/
|
||||||
function moduleInstall() {
|
function moduleInstall() {
|
||||||
// module 모듈에서 사용할 디렉토리 생성
|
// module 모듈에서 사용할 디렉토리 생성
|
||||||
$directory_list = array(
|
FileHandler::makeDir('./files/cache/module_info');
|
||||||
'./files',
|
|
||||||
'./files/cache',
|
|
||||||
'./files/cache/module_info',
|
|
||||||
);
|
|
||||||
|
|
||||||
foreach($directory_list as $dir) {
|
|
||||||
if(is_dir($dir)) continue;
|
|
||||||
@mkdir($dir, 0707);
|
|
||||||
@chmod($dir, 0707);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 기본 모듈을 생성
|
// 기본 모듈을 생성
|
||||||
$oModule = &getController('module');
|
$oModule = &getController('module');
|
||||||
|
|
|
||||||
|
|
@ -12,25 +12,7 @@
|
||||||
**/
|
**/
|
||||||
function moduleInstall() {
|
function moduleInstall() {
|
||||||
// plugin 에서 사용할 cache디렉토리 생성
|
// plugin 에서 사용할 cache디렉토리 생성
|
||||||
$directory_list = array(
|
FileHandler::makeDir('./files/cache/page');
|
||||||
'./files',
|
|
||||||
'./files/cache',
|
|
||||||
'./files/cache/page',
|
|
||||||
);
|
|
||||||
|
|
||||||
foreach($directory_list as $dir) {
|
|
||||||
if(is_dir($dir)) continue;
|
|
||||||
@mkdir($dir, 0707);
|
|
||||||
@chmod($dir, 0707);
|
|
||||||
}
|
|
||||||
|
|
||||||
// page 모듈로 모듈 추가
|
|
||||||
$oModuleController = &getController('module');
|
|
||||||
$args->mid = 'pagemaker';
|
|
||||||
$args->module = 'pagemaker';
|
|
||||||
$args->browser_title = 'pagemaker';
|
|
||||||
$args->is_default = 'N';
|
|
||||||
$output = $oModuleController->insertModule($args);
|
|
||||||
|
|
||||||
return new Object();
|
return new Object();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,17 +12,8 @@
|
||||||
**/
|
**/
|
||||||
function moduleInstall() {
|
function moduleInstall() {
|
||||||
// plugin 에서 사용할 cache디렉토리 생성
|
// plugin 에서 사용할 cache디렉토리 생성
|
||||||
$directory_list = array(
|
FileHandler::makeDir('./files/cache/plugin');
|
||||||
'./files',
|
|
||||||
'./files/cache',
|
|
||||||
'./files/cache/plugin',
|
|
||||||
);
|
|
||||||
|
|
||||||
foreach($directory_list as $dir) {
|
|
||||||
if(is_dir($dir)) continue;
|
|
||||||
@mkdir($dir, 0707);
|
|
||||||
@chmod($dir, 0707);
|
|
||||||
}
|
|
||||||
return new Object();
|
return new Object();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue