diff --git a/tools/blank_cleaner/blank_cleaner.php b/tools/blank_cleaner/blank_cleaner.php deleted file mode 100644 index 8b39a6034..000000000 --- a/tools/blank_cleaner/blank_cleaner.php +++ /dev/null @@ -1,16 +0,0 @@ - - * @brief 첨부파일 디렉토리의 빈 디렉토리 삭제 - **/ - - // 인증이 되지 않은 접근이면 종료 - if(!defined('__XE_TOOL_AUTH__') || !__XE_TOOL_AUTH__) exit(); - - // 캐시 파일 제거 - FileHandler::removeBlankDir(_XE_PATH_.'files'); - $output = Context::getLang('success_deleted'); - - Context::set('output', $output); -?> diff --git a/tools/blank_cleaner/lang/en.lang.php b/tools/blank_cleaner/lang/en.lang.php deleted file mode 100644 index 1b8e38922..000000000 --- a/tools/blank_cleaner/lang/en.lang.php +++ /dev/null @@ -1,3 +0,0 @@ -blank_cleaner = 'Remove Empty Directories'; -?> diff --git a/tools/blank_cleaner/lang/jp.lang.php b/tools/blank_cleaner/lang/jp.lang.php deleted file mode 100644 index 1910342cd..000000000 --- a/tools/blank_cleaner/lang/jp.lang.php +++ /dev/null @@ -1,3 +0,0 @@ -blank_cleaner = '空きディレクトリの削除'; -?> diff --git a/tools/blank_cleaner/lang/ko.lang.php b/tools/blank_cleaner/lang/ko.lang.php deleted file mode 100644 index ba0cdd512..000000000 --- a/tools/blank_cleaner/lang/ko.lang.php +++ /dev/null @@ -1,3 +0,0 @@ -blank_cleaner = '빈디렉토리 삭제'; -?> diff --git a/tools/blank_cleaner/lang/zh-CN.lang.php b/tools/blank_cleaner/lang/zh-CN.lang.php deleted file mode 100644 index c7d712867..000000000 --- a/tools/blank_cleaner/lang/zh-CN.lang.php +++ /dev/null @@ -1,3 +0,0 @@ -blank_cleaner = '删除空文件夹'; -?> diff --git a/tools/blank_cleaner/lang/zh-TW.lang.php b/tools/blank_cleaner/lang/zh-TW.lang.php deleted file mode 100644 index 25f48ba01..000000000 --- a/tools/blank_cleaner/lang/zh-TW.lang.php +++ /dev/null @@ -1,3 +0,0 @@ -blank_cleaner = '移除空的資料夾'; -?> diff --git a/tools/cache_cleaner/cache_cleaner.php b/tools/cache_cleaner/cache_cleaner.php deleted file mode 100644 index e6fba631a..000000000 --- a/tools/cache_cleaner/cache_cleaner.php +++ /dev/null @@ -1,17 +0,0 @@ - - * @brief XE 캐시파일 및 불필요한 파일 정리 - **/ - - // 인증이 되지 않은 접근이면 종료 - if(!defined('__XE_TOOL_AUTH__') || !__XE_TOOL_AUTH__) exit(); - - // 캐시 파일 제거 - $oAdminController = &getAdminController('admin'); - $oAdminController->procAdminRecompileCacheFile(); - $output = Context::getLang('success_reset'); - - Context::set('output', $output); -?> diff --git a/tools/cache_cleaner/lang/en.lang.php b/tools/cache_cleaner/lang/en.lang.php deleted file mode 100644 index 543d42c2f..000000000 --- a/tools/cache_cleaner/lang/en.lang.php +++ /dev/null @@ -1,3 +0,0 @@ -cache_cleaner = 'Recreat Cache File'; -?> diff --git a/tools/cache_cleaner/lang/jp.lang.php b/tools/cache_cleaner/lang/jp.lang.php deleted file mode 100644 index 479e910ba..000000000 --- a/tools/cache_cleaner/lang/jp.lang.php +++ /dev/null @@ -1,3 +0,0 @@ -cache_cleaner = 'キャッシュファイル再生成'; -?> diff --git a/tools/cache_cleaner/lang/ko.lang.php b/tools/cache_cleaner/lang/ko.lang.php deleted file mode 100644 index 562e4167d..000000000 --- a/tools/cache_cleaner/lang/ko.lang.php +++ /dev/null @@ -1,3 +0,0 @@ -cache_cleaner = '캐시파일 재생성'; -?> diff --git a/tools/cache_cleaner/lang/zh-CN.lang.php b/tools/cache_cleaner/lang/zh-CN.lang.php deleted file mode 100644 index a38fdb77d..000000000 --- a/tools/cache_cleaner/lang/zh-CN.lang.php +++ /dev/null @@ -1,3 +0,0 @@ -cache_cleaner = '重新生成缓冲文件'; -?> diff --git a/tools/cache_cleaner/lang/zh-TW.lang.php b/tools/cache_cleaner/lang/zh-TW.lang.php deleted file mode 100644 index a01b31502..000000000 --- a/tools/cache_cleaner/lang/zh-TW.lang.php +++ /dev/null @@ -1,3 +0,0 @@ -cache_cleaner = '重新建立暫存檔'; -?> diff --git a/tools/form.html b/tools/form.html deleted file mode 100644 index da25f6c9a..000000000 --- a/tools/form.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - XE Tools - -{@ $js_files = Context::getJsFile() } - - - - - - - - - -{@ $css_files = Context::getCssFile() } - - - - - - - - - - - - -

XE Tools

-
- - -
{$msg}
- - -
-
- - - - - -
-
- - - - - - - - - -
-
- - -
{$output}
- - - diff --git a/tools/index.php b/tools/index.php deleted file mode 100644 index 407a8212e..000000000 --- a/tools/index.php +++ /dev/null @@ -1,66 +0,0 @@ - - * @brief 각종 tools 목록을 보여주기 인증 시도 - **/ - - /** - * @brief 기본적인 상수 선언, 웹에서 직접 호출되는 것을 막기 위해 체크하는 상수 선언 - **/ - define('__ZBXE__', true); - - /** - * @brief 필요한 설정 파일들을 include - **/ - require_once('../config/config.inc.php'); - - // id/ password/ tool 구함 - $id = $_POST['id']; - $pw = $_POST['pw']; - $tool = $_POST['tool']; - - // 저장되어 있는 비밀번호와 비교 - $oContext = &Context::getInstance(); - $oContext->init(); - $db_info = $oContext->getDBInfo(); - - // 툴 목록을 구하고 언어파일 로그, 변수 설정 - Context::loadLang(_XE_PATH_.'modules/install/lang'); - $list = FileHandler::readDir(_XE_PATH_.'tools/'); - $filters = array('index.php','style.css','form.html'); - for($i=0;$idb_userid || $pw !== $db_info->db_password) { - - if(!$tool) $msg = Context::getLang('msg_not_founded'); - elseif($id !== $db_info->db_userid) $msg = sprintf($lang->filter->equalto, Context::getLang('user_id')); - else $msg = sprintf($lang->filter->equalto, Context::getLang('password')); - - // tool 실행 - } else if($id === $db_info->db_userid && $pw === $db_info->db_password) { - - define('__XE_TOOL_AUTH__', true); - include(_XE_PATH_.'tools/'.$tool.'/'.$tool.'.php'); - } - - Context::set('msg', $msg); - - $oTemplate = &TemplateHandler::getInstance(); - print $oTemplate->compile('./tools','form'); -?> diff --git a/tools/style.css b/tools/style.css deleted file mode 100644 index 73d85fbee..000000000 --- a/tools/style.css +++ /dev/null @@ -1,27 +0,0 @@ -body { margin:10px !important; } -h1 { font-size:1.5em; font-family:tahoma; margin:0; padding:0; } -hr { border:none; border-top:1px solid #555555; border-bottom:1px solid #888888; margin:0; margin-bottom:10px; padding:0; } -blockquote.message { border:2px solid red; color:red; margin:0 0 10px 0; padding:10px; font-size:9pt; font-weight:bold; clear:both; } -blockquote.output { border:2px solid blue; margin:10px 0 0 0; padding:10px; font-size:9pt; font-weight:bold; clear:both; } - -form { margin:0; padding:0; clear:both; overflow:hidden; } - -div.tools { float:left; margin-right:20px; padding-right:20px; border-right:1px dotted #AAAAAA; } -div.tools code label { display:block; white-space:nowrap; margin-bottom:5px; font-size:9pt; } -div.tools code label input { display:inline; } - -div.auth { float:left; } -div.auth code label { font-size:9pt; } -div.auth code { display:block; clear:both; margin-bottom:10px;} -div.auth code label { float:left; display:block; width:100px; } -div.auth code input { display:block; width:150px; border:1px solid #AAAAAA; } -div.auth input.submit { width:252px; border:1px solid #AAAAAA;} - -div.back { font-size:9pt; text-align:right; margin-bottom:10px; } -div.back a { text-decoration:none; color:#888888; } - -table { width:100%; border:none; font-size:9pt; background-color:#CCCCCC; } -table thead th { background-color:#EFEFEF; padding:3px 0 3px 0; } -table tbody th { background-color:#F3F3F3; vertical-align:top; color:#888888; padding:3px 0 3px 0; } -table tbody td { background-color:#FFFFFF; font-family:verdana; padding:3px; } - diff --git a/tools/validator/lang/en.lang.php b/tools/validator/lang/en.lang.php deleted file mode 100644 index cf4449fb2..000000000 --- a/tools/validator/lang/en.lang.php +++ /dev/null @@ -1,14 +0,0 @@ -validator = 'Validator'; - - $lang->msg_cannot_get_source_files = 'Could not download original files'; - $lang->msg_cannot_get_target_files = 'Could not get installed target list'; - - $lang->files_count = 'Number of Files'; - $lang->source_files = 'Original File'; - $lang->target_files = 'Target File'; - - $lang->leaveout_files = 'Omitted File'; - $lang->modified_files = 'Modified File'; - $lang->additional_files = 'Added File'; -?> diff --git a/tools/validator/lang/jp.lang.php b/tools/validator/lang/jp.lang.php deleted file mode 100644 index bfa20b22a..000000000 --- a/tools/validator/lang/jp.lang.php +++ /dev/null @@ -1,14 +0,0 @@ -validator = 'インストールファイルの検証'; - - $lang->msg_cannot_get_source_files = 'オリジナルファイルのダウンロードが出来ませんでした。'; - $lang->msg_cannot_get_target_files = 'インストールされた対象ファイルのリスト読み取りが出来ませんでした。'; - - $lang->files_count = 'ファイル数'; - $lang->source_files = 'オリジナルファイル'; - $lang->target_files = '対象ファイル'; - - $lang->leaveout_files = '省略されたファイル'; - $lang->modified_files = '修正されたファイル'; - $lang->additional_files = '追加されたファイル'; -?> diff --git a/tools/validator/lang/ko.lang.php b/tools/validator/lang/ko.lang.php deleted file mode 100644 index 68d57576f..000000000 --- a/tools/validator/lang/ko.lang.php +++ /dev/null @@ -1,14 +0,0 @@ -validator = '설치파일 검증'; - - $lang->msg_cannot_get_source_files = '원본 파일을 다운로드 하지 못했습니다'; - $lang->msg_cannot_get_target_files = '설치된 대상 파일의 목록을 구하지 못했습니다'; - - $lang->files_count = '파일 수'; - $lang->source_files = '원본 파일'; - $lang->target_files = '대상 파일'; - - $lang->leaveout_files = '누락된 파일'; - $lang->modified_files = '수정된 파일'; - $lang->additional_files = '추가된 파일'; -?> diff --git a/tools/validator/lang/zh-CN.lang.php b/tools/validator/lang/zh-CN.lang.php deleted file mode 100644 index 2aae77422..000000000 --- a/tools/validator/lang/zh-CN.lang.php +++ /dev/null @@ -1,14 +0,0 @@ -validator = '检测安装文件'; - - $lang->msg_cannot_get_source_files = '没能下载原版文件。'; - $lang->msg_cannot_get_target_files = '没能读取安装文件目录。'; - - $lang->files_count = '文件数'; - $lang->source_files = '原版文件'; - $lang->target_files = '对象文件'; - - $lang->leaveout_files = '遗漏的文件'; - $lang->modified_files = '修改过的文件'; - $lang->additional_files = '添加的文件'; -?> diff --git a/tools/validator/lang/zh-TW.lang.php b/tools/validator/lang/zh-TW.lang.php deleted file mode 100644 index 4cf406f87..000000000 --- a/tools/validator/lang/zh-TW.lang.php +++ /dev/null @@ -1,14 +0,0 @@ -validator = '安裝檔案驗證'; - - $lang->msg_cannot_get_source_files = '無法下載原始檔'; - $lang->msg_cannot_get_target_files = '無法獲得安裝目標清單'; - - $lang->files_count = '檔案數量'; - $lang->source_files = '原始檔案'; - $lang->target_files = '目標檔案'; - - $lang->leaveout_files = '省略檔案'; - $lang->modified_files = '修改檔案'; - $lang->additional_files = '新增檔案'; -?> diff --git a/tools/validator/style.css b/tools/validator/style.css deleted file mode 100644 index 1c6cfc00a..000000000 --- a/tools/validator/style.css +++ /dev/null @@ -1,5 +0,0 @@ -table { width:100%; border:none; font-size:9pt; background-color:#CCCCCC; } -table thead th { background-color:#EFEFEF; padding:3px 0 3px 0; } -table tbody th { background-color:#F3F3F3; vertical-align:top; color:#888888; padding:3px 0 3px 0; } -table tbody td { font-weight:normal; background-color:#FFFFFF; font-family:verdana; padding:3px; } - diff --git a/tools/validator/validator.html b/tools/validator/validator.html deleted file mode 100644 index 2bc97beb2..000000000 --- a/tools/validator/validator.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 {$lang->source_files}{$lang->target_files}
{$lang->current_version}{__ZBXE_VERSION__}
{$lang->released_version}{$released_version}
{$lang->current_path}{_XE_PATH_}
{$lang->files_count}{$source_cnt}{$target_cnt}
{$lang->leaveout_files} ({count($leaveouts)}) - - {$val}
- -
{$lang->modified_files} ({count($modified)})  - - {$val}
- -
{$lang->additional_files} ({count($added)})  - - {$val}
- -
diff --git a/tools/validator/validator.php b/tools/validator/validator.php deleted file mode 100644 index 6d9995b4d..000000000 --- a/tools/validator/validator.php +++ /dev/null @@ -1,102 +0,0 @@ - - * @brief 현재 설치된 버전에 해당하는 XE 파일 비교 - **/ - - // 인증이 되지 않은 접근이면 종료 - if(!defined('__XE_TOOL_AUTH__') || !__XE_TOOL_AUTH__) exit(); - - // 언어파일을 로드 - Context::loadLang(_XE_PATH_.'modules/admin/lang'); - - // 현재 버전을 구함 - $ver = __ZBXE_VERSION__; - - // 현재 버전에 맞는 배포 정보를 구함 - $header = "GET /validatorLogs/{$ver}.log HTTP/1.0\r\nHost: news.zeroboard.com\r\n\r\n"; - $is_started = false; - $f = fsockopen('news.zeroboard.com', 80); - fputs($f, $header); - while($buff = fgets($f, 1024)) { - if(!trim($buff)) $is_started = true; - if($is_started && trim($buff)) { - $buff = trim($buff); - $pos = strpos($buff,','); - $size = (int)substr($buff,0,$pos); - $filename = substr($buff,$pos+1); - if($filename && $size) $source[$filename] = $size; - } - } - fclose($f); - - if(!count($source)) $output = Context::getLang('msg_cannot_get_source_files'); - else { - // 현재 설치된 디렉토리와 비교 - $avoid_path = array(_XE_PATH_.'files'); - getFiles(_XE_PATH_, _XE_PATH_, $avoid_path, $target); - if(!count($target)) $output = Context::getLang('msg_cannot_get_target_files'); - else { - // 파일 수를 지정 - Context::set('source_cnt', count($source)); - Context::set('target_cnt', count($target)); - - // 최신 버전 정보 구함 - $oAdminView = &getAdminView('admin'); - $oAdminView->dispAdminIndex(); - - // 누락된 파일 구함 - $leaveouts = array(); - foreach($source as $key => $val) { - if(!isset($target[$key])) $leaveouts[] = $key; - } - Context::set('leaveouts', $leaveouts); - - // 수정된 파일 구함 - $modified = array(); - foreach($source as $key => $val) { - if(isset($target[$key]) && $val!=$target[$key]) $modified[] = $key; - } - Context::set('modified', $modified); - - // 추가된 파일 구함 - $added = array(); - foreach($target as $key => $val) { - if(!isset($source[$key])) $added[] = $key; - } - Context::set('added', $added); - - // CSS 지정 - Context::addCssFile('./validator/style.css', false); - - // 결과물을 구함 - $oTemplate = &TemplateHandler::getInstance(); - $output = $oTemplate->compile('./tools/validator/','validator'); - } - } - Context::set('output', $output); - - // recursive하게 돌면서 파일 정보 수집 - function getFiles($path, $base_path, $avoid_path, &$buff) { - if(substr($path,-1)=='/') $path = substr($path,0,-1); - if(substr($base_path,-1)=='/') $base_path = substr($base_path,0,-1); - if(in_array($path, $avoid_path)) return; - - $oDir = @dir($path); - if($oDir) { - while($item = $oDir->read()) { - if(substr($item,0,1)=='.' && $item != '.htaccess' ) continue; - $new_path = $path.'/'.$item; - if(!is_dir($new_path)) { - $filesize = filesize($new_path); - $filename = substr($new_path, strlen($base_path)+1); - $buff[$filename] = $filesize; - } else { - getFiles($new_path, $base_path, $avoid_path, $buff); - } - } - $oDir->close(); - } - } -?>