mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 07:12:15 +09:00
세션 정보에 해당 세션이 위치하는 mid값을 기입하도록 하였고 현재 접속자 출력 위젯에서 mid값을 반영할 수 있도록 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4292 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
befe944a1e
commit
d5126c2925
10 changed files with 63 additions and 20 deletions
|
|
@ -25,6 +25,9 @@
|
|||
$oModuleController = &getController('module');
|
||||
$oModuleController->insertActionForward('session', 'view', 'dispSessionAdminIndex');
|
||||
|
||||
$oDB = &DB::getInstance();
|
||||
$oDB->addIndex("session","idx_session_update_mid", array("last_update","cur_mid"));
|
||||
|
||||
return new Object();
|
||||
}
|
||||
|
||||
|
|
@ -39,6 +42,10 @@
|
|||
|
||||
if(!$oDB->isTableExists('session')) return true;
|
||||
|
||||
if(!$oDB->isColumnExists("session","cur_mid")) return true;
|
||||
|
||||
if(!$oDB->isIndexExists("session","idx_session_update_mid")) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -54,6 +61,14 @@
|
|||
|
||||
if(!$oModuleModel->getActionForward('dispSessionAdminIndex'))
|
||||
$oModuleController->insertActionForward('session', 'view', 'dispSessionAdminIndex');
|
||||
|
||||
if(!$oDB->isColumnExists("session","cur_mid")) {
|
||||
$oDB->addColumn('session',"cur_mid","varchar",128);
|
||||
}
|
||||
|
||||
if(!$oDB->isIndexExists("session","idx_session_update_mid"))
|
||||
$oDB->addIndex("session","idx_session_update_mid", array("last_update","cur_mid"));
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue