Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Monday, November 23, 2026

Diff for phpWebLogAnalyzer/phpWebLogAnalyzer.inc.php between version 1.19 and 1.20

version 1.19, 2002/02/17 00:34:58 version 1.20, 2002/02/19 23:07:15
Line 35 
Line 35 
  *              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
  */   */
   
 /*  /*
Line 812  class Web_Log {
Line 813  class Web_Log {
         /*          /*
          * getSessionsCount()           * getSessionsCount()
          *           *
            * Returns total count of all sessions in database.
          */           */
   
         function getSessionsCount($array = '')          function getSessionsCount($array = '')
         {          {
                 $this->_checkDB();                  $this->_checkDB();
Line 862  class Web_Log {
Line 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;
           }
 }  }
   
 ?>  ?>

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top