Rozdiely pre phpWebLogAnalyzer/phpWebLogAnalyzer.inc.php medzi verziami 1.19 a 1.20
| verzia 1.19, 2002/02/17 00:34:58 |
verzia 1.20, 2002/02/19 23:07:15 |
|
|
| * connection inserts the same record as we |
* connection inserts the same record as we |
| * 16/02/2002 - property manipulation methods (get/set value, get array) |
* 16/02/2002 - property manipulation methods (get/set value, get array) |
| * - fixed geting max session ID when raw logging enabled |
* - fixed geting max session ID when raw logging enabled |
| |
* 19/02/2002 - getActiveSessions() added |
| */ |
*/ |
| |
|
| /* |
/* |
| Riadok 812 class Web_Log { |
|
| Riadok 813 class Web_Log { |
|
| /* |
/* |
| * getSessionsCount() |
* getSessionsCount() |
| * |
* |
| |
* Returns total count of all sessions in database. |
| */ |
*/ |
| |
|
| function getSessionsCount($array = '') |
function getSessionsCount($array = '') |
| { |
{ |
| $this->_checkDB(); |
$this->_checkDB(); |
| Riadok 862 class Web_Log { |
|
| Riadok 865 class Web_Log { |
|
| return false; |
return false; |
| } |
} |
| |
|
| |
/* |
| |
* getActiveSessions() |
| |
* |
| |
* Returns array with IDs of active sessions. |
| |
*/ |
| |
|
| |
function getActiveSessions() |
| |
{ |
| |
$this->_checkDB(); |
| |
|
| |
$accesses_table = $this->_raw_log |
| |
? "weblog_accesses_raw" |
| |
: "weblog_accesses"; |
| |
|
| |
$query = "select" |
| |
." session_id" |
| |
." from $accesses_table" |
| |
." group by session_id" |
| |
." having unix_timestamp(sysdate())" |
| |
." - unix_timestamp(max(datetime)) < " . $this->_session_timeout; |
| |
|
| |
$active_sessions = $this->_db->getCol($query); |
| |
|
| |
if (DB::isError($active_sessions)) |
| |
$this->_error($active_sessions->getMessage()); |
| |
|
| |
return $active_sessions; |
| |
} |
| } |
} |
| |
|
| ?> |
?> |
Platon Group <platon@platon.sk> http://platon.sk/
|
|