mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 13:02:15 +09:00
현재 접속자 추출시 쿼리가 잘못 작성되는 오류 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4294 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b42d75e650
commit
5c741cde1b
3 changed files with 5 additions and 4 deletions
|
|
@ -6,7 +6,8 @@
|
||||||
<column name="member_srl" />
|
<column name="member_srl" />
|
||||||
</columns>
|
</columns>
|
||||||
<conditions>
|
<conditions>
|
||||||
<condition operation="more" column="last_update" var="last_update" notnull="notnull" />
|
<condition operation="more" column="member_srl" default="1" pipe="and" />
|
||||||
|
<condition operation="more" column="last_update" var="last_update" notnull="notnull" pipe="and" />
|
||||||
<condition operation="equal" column="cur_mid" var="mid" pipe="and" />
|
<condition operation="equal" column="cur_mid" var="mid" pipe="and" />
|
||||||
</conditions>
|
</conditions>
|
||||||
<navigation>
|
<navigation>
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
$oModuleController->insertActionForward('session', 'view', 'dispSessionAdminIndex');
|
$oModuleController->insertActionForward('session', 'view', 'dispSessionAdminIndex');
|
||||||
|
|
||||||
$oDB = &DB::getInstance();
|
$oDB = &DB::getInstance();
|
||||||
$oDB->addIndex("session","idx_session_update_mid", array("last_update","cur_mid"));
|
$oDB->addIndex("session","idx_session_update_mid", array("member_srl","last_update","cur_mid"));
|
||||||
|
|
||||||
return new Object();
|
return new Object();
|
||||||
}
|
}
|
||||||
|
|
@ -67,7 +67,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$oDB->isIndexExists("session","idx_session_update_mid"))
|
if(!$oDB->isIndexExists("session","idx_session_update_mid"))
|
||||||
$oDB->addIndex("session","idx_session_update_mid", array("last_update","cur_mid"));
|
$oDB->addIndex("session","idx_session_update_mid", array("member_srl","last_update","cur_mid"));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
* mid : 특정 mid에 속한 사용자
|
* mid : 특정 mid에 속한 사용자
|
||||||
**/
|
**/
|
||||||
function getLoggedMembers($args) {
|
function getLoggedMembers($args) {
|
||||||
if(!$args->limit_count) $args->limit_count = 20;
|
if(!$args->list_count) $args->list_count = 20;
|
||||||
if(!$args->page) $args->page = 1;
|
if(!$args->page) $args->page = 1;
|
||||||
if(!$args->period_time) $args->period_time = 3;
|
if(!$args->period_time) $args->period_time = 3;
|
||||||
$args->last_update = date("YmdHis", time() - $args->period_time*60);
|
$args->last_update = date("YmdHis", time() - $args->period_time*60);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue