mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 04:09:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1846 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3aa0e229b2
commit
ab374b12f2
5 changed files with 28 additions and 10 deletions
|
|
@ -1,11 +1,17 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<addon version="0.1">
|
||||
<title xml:lang="ko">기본 카운터 애드온</title>
|
||||
<title xml:lang="jp">基本接続カウンター機能拡張</title>
|
||||
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">제로</name>
|
||||
<name xml:lang="jp">ゼロ</name>
|
||||
<description xml:lang="ko">
|
||||
제로보드XE의 기본 카운터 모듈을 이용하여 접속 정보를 기록합니다.
|
||||
이 애드온을 켜셔야 접속 정보 수집이 됩니다.
|
||||
</description>
|
||||
<description xml:lang="jp">
|
||||
セロボードXEの基本接続カウンターモジュルを利用して接続情報を記録します。
|
||||
この機能拡張をオンにしておくと接続情報が記録されます。
|
||||
</description>
|
||||
</author>
|
||||
</addon>
|
||||
|
|
|
|||
|
|
@ -121,14 +121,13 @@
|
|||
* @brief 로그 남김
|
||||
**/
|
||||
function actStart($query) {
|
||||
if(__DEBUG__ < 2) return;
|
||||
$this->setError(0,'success');
|
||||
$this->query = $query;
|
||||
$this->act_start = getMicroTime();
|
||||
}
|
||||
|
||||
function actFinish() {
|
||||
if(__DEBUG__ < 2 || !$this->query ) return;
|
||||
if(!$this->query ) return;
|
||||
$this->act_finish = getMicroTime();
|
||||
$elapsed_time = $this->act_finish - $this->act_start;
|
||||
$GLOBALS['__db_elapsed_time__'] += $elapsed_time;
|
||||
|
|
|
|||
|
|
@ -35,15 +35,25 @@
|
|||
$output = executeQuery('module.getDefaultMidInfo');
|
||||
if($output->data) return new Object();
|
||||
|
||||
// 기본 데이터 세팅
|
||||
$args->board_name = 'board';
|
||||
$args->browser_title = 'test module';
|
||||
$args->is_default = 'Y';
|
||||
$args->skin = 'default';
|
||||
// 기본 모듈을 찾음
|
||||
$oModuleModel = &getModel('module');
|
||||
$module_info = $oModuleModel->getModuleInfoByMid();
|
||||
|
||||
// 게시판 controller 생성
|
||||
$oBoardController = &getAdminController('board');
|
||||
$oBoardController->procBoardAdminInsertBoard($args);
|
||||
// 기본 모듈이 없으면 새로 등록
|
||||
if(!$module_info->module_srl) {
|
||||
$args->board_name = 'board';
|
||||
$args->browser_title = 'test module';
|
||||
$args->is_default = 'Y';
|
||||
$args->skin = 'default';
|
||||
|
||||
// board 라는 이름의 모듈이 있는지 확인
|
||||
$module_info = $oModuleModel->getModuleInfoByMid($args->board_name);
|
||||
if($module_info->module_srl) $args->module_srl = $module_info->module_srl;
|
||||
|
||||
// 게시판 controller 생성
|
||||
$oBoardController = &getAdminController('board');
|
||||
$oBoardController->procBoardAdminInsertBoard($args);
|
||||
}
|
||||
|
||||
return new Object();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -320,6 +320,8 @@
|
|||
header("Content-Transfer-Encoding: binary\n");
|
||||
|
||||
fpassthru($fp);
|
||||
|
||||
exit();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,6 +40,7 @@
|
|||
if(!$output->data) {
|
||||
$output = executeQuery('module.getDefaultMidInfo');
|
||||
}
|
||||
|
||||
$module_info = $this->arrangeModuleInfo($output->data);
|
||||
|
||||
return $module_info;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue