git-svn-id: http://xe-core.googlecode.com/svn/trunk@736 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-28 03:06:44 +00:00
parent fa23900142
commit 278178735f
7 changed files with 5 additions and 35 deletions

View file

@ -214,9 +214,6 @@
* @brief module의 위치를 찾아서 return
**/
function getModulePath($module) {
$class_path = sprintf('./files/modules/%s/', $module);
if(is_dir($class_path)) return $class_path;
$class_path = sprintf('./modules/%s/', $module);
if(is_dir($class_path)) return $class_path;
@ -235,8 +232,6 @@
/**
* 모듈의 위치를 파악
* 기본적으로는 ./modules/* 있지만 웹업데이트나 웹설치시 ./files/modules/* 있음
* ./files/modules/* 클래스 파일을 우선으로 처리해야
**/
// 상위 클래스명 구함

View file

@ -17,12 +17,8 @@
* @brief 애드온의 경로를 구함
**/
function getAddonPath($addon_name) {
$class_path = sprintf('./files/addons/%s/', $addon_name);
if(is_dir($class_path)) return $class_path;
$class_path = sprintf('./addons/%s/', $addon_name);
if(is_dir($class_path)) return $class_path;
return "";
}

View file

@ -2,7 +2,7 @@
<column name="member_srl" type="number" size="11" notnull="notnull" default="0" primary_key="primary_key" />
<column name="ipaddress" type="varchar" size="128" notnull="notnull" index="idx_ipaddress"/>
<column name="module_srl" type="number" size="11" notnull="notnull" default="0" index="idx_srl" />
<column name="document_srl" type="number" size="11" default="N" default="0" notnull="notnull" index="idx_srl" />
<column name="document_srl" type="number" size="11" default="0" notnull="notnull" index="idx_srl" />
<column name="title" type="varchar" size="250" />
<column name="content" type="bigtext" notnull="notnull" />
<column name="regdate" type="date" index="idx_regdate" />

View file

@ -96,10 +96,6 @@
function makeDefaultDirectory() {
$directory_list = array(
'./files/config',
'./files/modules',
'./files/plugins',
'./files/addons',
'./files/layouts',
'./files/cache/queries',
'./files/cache/js_filter_compiled',
'./files/cache/template_compiled',
@ -125,9 +121,7 @@
$this->installModule('module', './modules/module/');
// 각 모듈의 schemas/*.xml 파일을 모두 찾아서 table 생성
$module_list_1 = FileHandler::readDir('./modules/', NULL, false, true);
$module_list_2 = FileHandler::readDir('./files/modules/', NULL, false, true);
$module_list = array_merge($module_list_1, $module_list_2);
$module_list = FileHandler::readDir('./modules/', NULL, false, true);
foreach($module_list as $module_path) {
// 모듈 이름을 구함
$tmp_arr = explode('/',$module_path);

View file

@ -49,12 +49,8 @@
/**
* @brief 레이아웃의 경로를 구함
* 기본으로는 ./layouts에 있지만 웹관리기능으로 다운로드시 ./files/layouts에 존재함
**/
function getLayoutPath($layout_name) {
$class_path = sprintf('./files/layouts/%s/', $layout_name);
if(is_dir($class_path)) return $class_path;
$class_path = sprintf('./layouts/%s/', $layout_name);
if(is_dir($class_path)) return $class_path;
@ -67,9 +63,7 @@
**/
function getDownloadedLayoutList() {
// 다운받은 레이아웃과 설치된 레이아웃의 목록을 구함
$downloaded_list = FileHandler::readDir('./files/layouts');
$installed_list = FileHandler::readDir('./layouts');
$searched_list = array_merge($downloaded_list, $installed_list);
$searched_list = FileHandler::readDir('./layouts');
$searched_count = count($searched_list);
if(!$searched_count) return;

View file

@ -468,9 +468,7 @@
$oDB = &DB::getInstance();
// 다운받은 모듈과 설치된 모듈의 목록을 구함
$downloaded_list = FileHandler::readDir('./files/modules');
$installed_list = FileHandler::readDir('./modules');
$searched_list = array_merge($downloaded_list, $installed_list);
$searched_list = FileHandler::readDir('./modules');
$searched_count = count($searched_list);
if(!$searched_count) return;
@ -478,7 +476,6 @@
// 모듈의 이름
$module_name = $searched_list[$i];
// 모듈의 경로 (files/modules가 우선)
$path = ModuleHandler::getModulePath($module_name);
// schemas내의 테이블 생성 xml파일수를 구함

View file

@ -16,12 +16,8 @@
/**
* @brief 플러그인의 경로를 구함
* 기본으로는 ./plugins에 있지만 웹관리기능으로 다운로드시 ./files/plugins에 존재함
**/
function getPluginPath($plugin_name) {
$path = sprintf('./files/plugins/%s/', $plugin_name);
if(is_dir($path)) return $path;
$path = sprintf('./plugins/%s/', $plugin_name);
if(is_dir($path)) return $path;
@ -34,9 +30,7 @@
**/
function getDownloadedPluginList() {
// 다운받은 플러그인과 설치된 플러그인의 목록을 구함
$downloaded_list = FileHandler::readDir('./files/plugins');
$installed_list = FileHandler::readDir('./plugins');
$searched_list = array_merge($downloaded_list, $installed_list);
$searched_list = FileHandler::readDir('./plugins');
$searched_count = count($searched_list);
if(!$searched_count) return;