mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 10:11:38 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4331 201d5d3c-b55e-5fd7-737f-ddc643e51545
56 lines
1.5 KiB
PHP
56 lines
1.5 KiB
PHP
<?php
|
|
/**
|
|
* @class admin
|
|
* @author zero (zero@nzeo.com)
|
|
* @brief admin 모듈의 high class
|
|
**/
|
|
|
|
class admin extends ModuleObject {
|
|
|
|
/**
|
|
* @brief 설치시 추가 작업이 필요할시 구현
|
|
**/
|
|
function moduleInstall() {
|
|
return new Object();
|
|
}
|
|
|
|
/**
|
|
* @brief 설치가 이상이 없는지 체크하는 method
|
|
**/
|
|
function checkUpdate() {
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* @brief 업데이트 실행
|
|
**/
|
|
function moduleUpdate() {
|
|
return new Object();
|
|
}
|
|
|
|
/**
|
|
* @brief 캐시 파일 재생성
|
|
**/
|
|
function recompileCache() {
|
|
|
|
// 템플릿 컴파일 파일 삭제
|
|
FileHandler::removeFilesInDir("./files/cache/template_compiled");
|
|
|
|
// optimized 파일 삭제
|
|
FileHandler::removeFilesInDir("./files/cache/optimized");
|
|
|
|
// js_filter_compiled 파일 삭제
|
|
FileHandler::removeFilesInDir("./files/cache/js_filter_compiled");
|
|
|
|
// queries 파일 삭제
|
|
FileHandler::removeFilesInDir("./files/cache/queries");
|
|
|
|
// ./files/cache/news* 파일 삭제
|
|
$directory = dir(_XE_PATH_."files/cache/");
|
|
while($entry = $directory->read()) {
|
|
if(substr($entry,0,11)=='newest_news') FileHandler::removeFile("./files/cache/".$entry);
|
|
}
|
|
$directory->close();
|
|
}
|
|
}
|
|
?>
|