diff --git a/config/config.inc.php b/config/config.inc.php
index 3a499b961..7808f0fdd 100644
--- a/config/config.inc.php
+++ b/config/config.inc.php
@@ -48,7 +48,7 @@
require_once("./classes/db/DB.class.php");
require_once("./classes/file/FileHandler.class.php");
require_once("./classes/object/Object.class.php");
- require_once("./classes/module/Plugin.class.php");
+ require_once("./classes/plugin/Plugin.class.php");
require_once("./classes/module/ModuleObject.class.php");
require_once("./classes/module/ModuleHandler.class.php");
require_once("./classes/display/DisplayHandler.class.php");
diff --git a/modules/plugin/conf/info.xml b/modules/plugin/conf/info.xml
index 830bd046d..35dacc6a7 100644
--- a/modules/plugin/conf/info.xml
+++ b/modules/plugin/conf/info.xml
@@ -1,11 +1,11 @@
- 레이아웃 관리
- layout management
+ 플러그인 관리
+ plugin management
제로
zero
- 레이아웃 관리 모듈
- layout management
+ 플러그인 관리 모듈
+ plugin management
diff --git a/modules/plugin/conf/module.xml b/modules/plugin/conf/module.xml
index 9cb787b0d..a83b2705a 100644
--- a/modules/plugin/conf/module.xml
+++ b/modules/plugin/conf/module.xml
@@ -1,19 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/modules/plugin/tpl.admin/downloaded_layout_list.html b/modules/plugin/tpl.admin/downloaded_layout_list.html
deleted file mode 100644
index 786a49ee4..000000000
--- a/modules/plugin/tpl.admin/downloaded_layout_list.html
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
-
-
-
- | {$lang->layout_name} |
- {$lang->version} |
- {$lang->author} |
- {$lang->menu_count} |
- {$lang->date} |
- {$lang->path} |
- {$lang->layout_info} |
- {$lang->cmd_make} |
-
-
-
-
- {$val->title}
- ({$val->layout})
- |
- {$val->version} |
- {$val->author->name} |
- {$val->menu_count} |
- {$val->author->date} |
- {$val->path} |
- {$lang->cmd_view} |
- {$lang->cmd_make} |
-
-
- |
- {nl2br($val->author->description)}
- |
-
-
-
-
diff --git a/modules/plugin/tpl.admin/filter/delete_layout.xml b/modules/plugin/tpl.admin/filter/delete_layout.xml
deleted file mode 100644
index b7d8daa3e..000000000
--- a/modules/plugin/tpl.admin/filter/delete_layout.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
diff --git a/modules/plugin/tpl.admin/filter/delete_layout_menu.xml b/modules/plugin/tpl.admin/filter/delete_layout_menu.xml
deleted file mode 100644
index 4a9de5f93..000000000
--- a/modules/plugin/tpl.admin/filter/delete_layout_menu.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/modules/plugin/tpl.admin/filter/insert_layout.xml b/modules/plugin/tpl.admin/filter/insert_layout.xml
deleted file mode 100644
index 81c8f43da..000000000
--- a/modules/plugin/tpl.admin/filter/insert_layout.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/modules/plugin/tpl.admin/filter/insert_layout_menu.xml b/modules/plugin/tpl.admin/filter/insert_layout_menu.xml
deleted file mode 100644
index 26025b827..000000000
--- a/modules/plugin/tpl.admin/filter/insert_layout_menu.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/modules/plugin/tpl.admin/filter/move_layout_menu.xml b/modules/plugin/tpl.admin/filter/move_layout_menu.xml
deleted file mode 100644
index 0fd6b8a67..000000000
--- a/modules/plugin/tpl.admin/filter/move_layout_menu.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/modules/plugin/tpl.admin/filter/update_layout_info.xml b/modules/plugin/tpl.admin/filter/update_layout_info.xml
deleted file mode 100644
index 0c869e6d1..000000000
--- a/modules/plugin/tpl.admin/filter/update_layout_info.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
diff --git a/modules/plugin/tpl.admin/header.html b/modules/plugin/tpl.admin/header.html
deleted file mode 100644
index 37855aa62..000000000
--- a/modules/plugin/tpl.admin/header.html
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
diff --git a/modules/plugin/tpl.admin/index.html b/modules/plugin/tpl.admin/index.html
deleted file mode 100644
index 4e929fb75..000000000
--- a/modules/plugin/tpl.admin/index.html
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
-
- {$lang->total_count} {number_format(count($layout_list))}
-
-
-
-
-
-
-
-
-
- | {$lang->no} |
- {$lang->layout} |
- {$lang->title} |
- {$lang->regdate} |
- {$lang->cmd_delete} |
-
-
-
- | {$no+1} |
- {$val->layout} |
- {$val->title} |
- {zdate($val->regdate,"Y-m-d")} |
- {$lang->cmd_delete} |
-
-
-
-
-
-
-
diff --git a/modules/plugin/tpl.admin/insert_layout.html b/modules/plugin/tpl.admin/insert_layout.html
deleted file mode 100644
index 48a485ced..000000000
--- a/modules/plugin/tpl.admin/insert_layout.html
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-
-
-
-
diff --git a/modules/plugin/tpl.admin/js/admin.js b/modules/plugin/tpl.admin/js/admin.js
deleted file mode 100644
index a6be75c68..000000000
--- a/modules/plugin/tpl.admin/js/admin.js
+++ /dev/null
@@ -1,130 +0,0 @@
-/* 레이아웃 신규 생성시 완료 후 요청하는 함수 */
-function completeInsertLayout(ret_obj) {
- var layout_srl = ret_obj['layout_srl'];
- location.href="./?module=admin&mo=layout&act=dispLayoutMenu&layout_srl="+layout_srl;
-}
-
-/* 레이아웃메뉴 입력후 */
-function completeInsertLayoutMenu(ret_obj) {
- var menu_id = ret_obj['menu_id'];
- var xml_file = ret_obj['xml_file'];
- var menu_title = ret_obj['menu_title'];
- var menu_srl = ret_obj['menu_srl'];
-
- if(!xml_file) return;
- loadTreeMenu(xml_file, menu_id, "menu_zone_"+menu_id, menu_title, doGetMenuInfo, menu_srl, doMoveTree);
-
- if(!menu_srl) {
- xInnerHtml("menu_zone_info_"+menu_id, "");
- }
-}
-
-/* 레이아웃 삭제 */
-function doDeleteLayout(layout_srl) {
- var fo_obj = xGetElementById("fo_layout");
- if(!fo_obj) return;
- fo_obj.layout_srl.value = layout_srl;
-
- procFilter(fo_obj, delete_layout);
-}
-
-/* 레이아웃 메뉴 삭제 */
-function doDeleteLayoutMenu(menu_srl, menu_id) {
- var fo_obj = xGetElementById("fo_"+menu_id);
- if(!fo_obj) return;
-
- procFilter(fo_obj, delete_layout_menu);
-}
-
-/* 레이아웃 메뉴에를 클릭시 적용할 함수 */
-function doGetMenuInfo(menu_id, obj) {
- // layout, menu_id, node_srl을 추출
- var fo_obj = xGetElementById("fo_layout");
- var layout = fo_obj.layout.value;
- var node_srl = 0;
- var parent_srl = 0;
- if(typeof(obj.getAttribute)!="undefined") {
- node_srl = obj.getAttribute("node_srl");
- } else {
- node_srl = obj.node_srl;
- parent_srl = obj.parent_srl;
- }
-
- var params = new Array();
- params["menu_id"] = menu_id;
- params["layout"] = layout;
- params["menu_srl"] = node_srl;
- params["parent_srl"] = parent_srl;
-
- // 서버에 요청하여 해당 노드의 정보를 수정할 수 있도록 한다.
- var response_tags = new Array('error','message','menu_id', 'tpl');
- exec_xml('layout', 'getMenuTplInfo', params, completeGetMenuInfo, response_tags, params);
-}
-
-/* 메뉴를 드래그하여 이동한 후 실행할 함수 , 이동하는 node_srl과 대상 node_srl을 받음 */
-function doMoveTree(menu_id, source_node_srl, target_node_srl) {
- var fo_obj = xGetElementById("fo_move_menu");
- fo_obj.menu_id.value = menu_id;
- fo_obj.source_node_srl.value = source_node_srl;
- fo_obj.target_node_srl.value = target_node_srl;
-
- // 이동 취소를 선택하였을 경우 다시 그림;;
- if(!procFilter(fo_obj, move_layout_menu)) {
- var params = new Array();
- params["menu_id"] = menu_id;
- params["source_node_srl"] = source_node_srl;
- completeMoveLayoutMenu(params);
- }
-}
-
-function completeMoveLayoutMenu(ret_obj) {
- var menu_id = ret_obj['menu_id'];
- var source_node_srl = ret_obj['source_node_srl'];
-
- var fo_menu = xGetElementById("fo_"+menu_id);
- if(!fo_menu) return;
-
- var params = new Array();
- params["menu_id"] = menu_id;
- params["layout"] = fo_menu.layout.value;
- params["layout_srl"] = fo_menu.layout_srl.value;
- var xml_file = fo_menu.xml_file.value;
- var menu_title = fo_menu.menu_title.value;
- var tmp = source_node_srl.split('_');
- var menu_srl = tmp[tmp.length-1];
- loadTreeMenu(xml_file, menu_id, "menu_zone_"+menu_id, menu_title, doGetMenuInfo, menu_srl, doMoveTree);
-}
-
-/* 서버로부터 받아온 메뉴 정보를 출력 */
-function completeGetMenuInfo(ret_obj, response_tags) {
- var menu_id = ret_obj['menu_id'];
- var tpl = ret_obj['tpl'];
- xInnerHtml("menu_zone_info_"+menu_id, "");
- xInnerHtml("menu_zone_info_"+menu_id, tpl);
-
- var fo_obj = xGetElementById("fo_"+menu_id);
- fo_obj.menu_name.focus();
-}
-
-/* 빈 메뉴 추가시 사용 */
-function doInsertLayoutMenu(menu_id, parent_srl) {
- if(typeof(parent_srl)=='undefined') parent_srl = 0;
- var params = {node_srl:0, parent_srl:parent_srl}
- doGetMenuInfo(menu_id, params);
- deSelectNode();
-}
-
-/* 메뉴 목록 갱신 */
-function doReloadTreeMenu(menu_id) {
- var fo_obj = xGetElementById("fo_"+menu_id);
- if(!fo_obj) return;
-
- var params = new Array();
- params["menu_id"] = menu_id;
- params["layout"] = fo_obj.layout.value;
- params["layout_srl"] = fo_obj.layout_srl.value;
-
- // 서버에 요청하여 해당 노드의 정보를 수정할 수 있도록 한다.
- var response_tags = new Array('error','message','menu_id', 'xml_file', 'menu_title');
- exec_xml('layout', 'procMakeXmlFile', params, completeInsertLayoutMenu, response_tags, params);
-}
diff --git a/modules/plugin/tpl.admin/layout_detail_info.html b/modules/plugin/tpl.admin/layout_detail_info.html
deleted file mode 100644
index 1d940bbb8..000000000
--- a/modules/plugin/tpl.admin/layout_detail_info.html
+++ /dev/null
@@ -1,56 +0,0 @@
-
-
-
-
- | {$lang->layout_maker} |
-
-
- | {$lang->title} |
- {$layout_info->title} ver {$layout_info->version} |
-
-
- | {$lang->author} |
- {$layout_info->author->name} |
-
-
- | {$lang->homepage} |
- {$layout_info->author->homepage} |
-
-
- | {$lang->regdate} |
- {$layout_info->author->date} |
-
-
- | {$lang->description} |
- {nl2br($layout_info->author->description)} |
-
-
-
- | {$lang->layout_history} |
-
-
-
-
- | {$lang->name} |
- {$history->name} |
-
-
- | {$lang->homepage} |
- {$history->homepage} |
-
-
- | {$lang->regdate} |
- {$history->date} |
-
-
- | {$lang->description} |
- {nl2br($history->description)} |
-
-
-
-
- |
- {$lang->cmd_close}
- |
-
-
diff --git a/modules/plugin/tpl.admin/layout_info.html b/modules/plugin/tpl.admin/layout_info.html
deleted file mode 100644
index a2ddaf0bd..000000000
--- a/modules/plugin/tpl.admin/layout_info.html
+++ /dev/null
@@ -1,128 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- | {$lang->layout} |
- {$layout_info->title} ver {$layout_info->version} ({$layout_info->layout}) |
-
-
- | {$lang->path} |
- {$layout_info->path} |
-
-
- | {$lang->author} |
- {$layout_info->author->name} |
-
-
- | {$lang->description} |
- {nl2br($layout_info->author->description)} |
-
-
-
-
-
-
-
-
-
-
-
- | {$lang->menu_management} |
- {nl2br($lang->about_menu_management)} |
-
-
-
-
- {$menu->name}
- ({$menu->maxdepth} {$lang->depth})
- |
-
-
-
- |
-
-
-
-
diff --git a/modules/plugin/tpl.admin/layout_menu_info.html b/modules/plugin/tpl.admin/layout_menu_info.html
deleted file mode 100644
index 7185334d2..000000000
--- a/modules/plugin/tpl.admin/layout_menu_info.html
+++ /dev/null
@@ -1,81 +0,0 @@
-
-
-
-