Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Piatok, 23. október 2026

Rozdiely pre phpWebLogAnalyzer/phpWebLogAnalyzer.inc.php medzi verziami 1.18 a 1.19

verzia 1.18, 2002/02/14 12:11:05 verzia 1.19, 2002/02/17 00:34:58
Riadok 33 
Riadok 33 
  * 12/02/2002 - raw logging support   * 12/02/2002 - raw logging support
  * 14/02/2002 - fixed posible SQL insert statement failure when parraler   * 14/02/2002 - fixed posible SQL insert statement failure when parraler
  *              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)
    *            - fixed geting max session ID when raw logging enabled
  */   */
   
 /*  /*
Riadok 255  class Web_Log {
Riadok 257  class Web_Log {
                                         'column' => 'ident_ostype_id',                                          'column' => 'ident_ostype_id',
                                         'table' => 'weblog_ident_ostypes',                                          'table' => 'weblog_ident_ostypes',
                                         'var' => '' ),                                          'var' => '' ),
                         'session' => array(                          'session_id' => array(
                                         'column' => 'session_id',                                          'column' => 'session_id',
                                         'table' => '',                                          'table' => '',
                                         'var' => '' )                                          'var' => '' )
Riadok 376  class Web_Log {
Riadok 378  class Web_Log {
         }          }
   
         /*          /*
            * getPropertyValue(), setPropertyValue()
            *
            * Gets/sets specific property value. Property cannot be disabled.
            */
   
           function getPropertyValue($prop_name)
           {
                   if ($this->_props[$prop_name]['disabled']) {
                           return false;
                   }
   
                   return $this->_props[$prop_name]['value'];
           }
   
           function setPropertyValue($value)
           {
                   //if (! $this->_props[$prop_name]['disabled'])
                           $this->_props[$prop_name]['value'] = $value;
           }
   
           /*
            * getPropertiesArray()
            *
            * Gets whole properties array.
            */
           function getPropertyArray()
           {
                   return $this->_props;
           }
   
           /*
          * setDSN()           * setDSN()
          *           *
          * Sets DSN (db_type://user:pass@host/db_name) for database connection.           * Gets/sets DSN (db_type://user:pass@host/db_name)
            * for database connection.
          */           */
   
           function getDSN($dsn)
           {
                   return $this->_dsn;
           }
   
         function setDSN($dsn)          function setDSN($dsn)
         {          {
                 $this->_dsn = $dsn;                  $this->_dsn = $dsn;
Riadok 429  class Web_Log {
Riadok 468  class Web_Log {
   
         function registerAccess($value = 0)          function registerAccess($value = 0)
         {          {
   
                 $this->_checkDB();                  $this->_checkDB();
   
                 global $HTTP_SERVER_VARS;                  global $HTTP_SERVER_VARS;
Riadok 505  class Web_Log {
Riadok 543  class Web_Log {
                 if (! $this->_props['ident_username']['disabled']                  if (! $this->_props['ident_username']['disabled']
                                 || ! $this->_props['ident_username']['disabled']) {                                  || ! $this->_props['ident_username']['disabled']) {
   
                         $ident = new Net_Ident( $remote_addr,                          $ident = new Net_Ident($remote_addr,
                                         $HTTP_SERVER_VARS["REMOTE_PORT"],                                          $HTTP_SERVER_VARS["REMOTE_PORT"],
                                         $HTTP_SERVER_VARS["SERVER_PORT"]);                                          $HTTP_SERVER_VARS["SERVER_PORT"]);
   
Riadok 556  class Web_Log {
Riadok 594  class Web_Log {
                  * so it must be after others IDs counting loop above.                   * so it must be after others IDs counting loop above.
                  */                   */
   
                 if (! $this->_props['session']['disabled']) {                  if (! $this->_props['session_id']['disabled']) {
                         $session_id = $this->_getSessionID();                          $session_id = $this->_getSessionID();
   
                         if (intval($session_id))                          if (intval($session_id))
                                 $this->_props['session']['id'] =                                  $this->_props['session_id']['id'] =
                                         $this->_props['session']['value'] =                                          $this->_props['session_id']['value'] =
                                         $session_id;                                          $session_id;
                 }                  }
   
Riadok 706  class Web_Log {
Riadok 744  class Web_Log {
          */           */
         function _getSessionID()          function _getSessionID()
         {          {
   
                 $this->_checkDB();                  $this->_checkDB();
   
                 $where = '';                  $where = '';
Riadok 747  class Web_Log {
Riadok 784  class Web_Log {
                         return $row[session_id];                          return $row[session_id];
                 }                  }
   
                 $query = "select max(session_id) + 1 as new_session_id"                  /*
                         ." from $accesses_table";                   * If raw logging is enabled first look into raw accesses table and
                 $id = $this->_db->getOne($query);                   * than if no max session ID cannot be counted look into normal
                    * accesses table. If raw logging is disabled look only in normal
                    * table. If although no max session ID is not present returns 1.
                    */
   
                 if (DB::isError($id))                  foreach (($this->_raw_log
                         $this->_error($id->getMessage());                                          ? array('weblog_accesses_raw', 'weblog_accesses')
                                           : array('weblog_accesses')) as $table) {
                           $query = "select max(session_id) + 1 as new_session_id"
                                   ." from $table";
                           $id = $this->_db->getOne($query);
   
                 if ($id)                          if (DB::isError($id))
                         return $id;                                  $this->_error($id->getMessage());
   
                           if ($id)
                                   return $id;
                   }
   
                   /* Returns starting session ID (1). */
                 return 1;                  return 1;
         }          }
   
Riadok 766  class Web_Log {
Riadok 815  class Web_Log {
          */           */
         function getSessionsCount($array = '')          function getSessionsCount($array = '')
         {          {
   
                 $this->_checkDB();                  $this->_checkDB();
   
                 $list_tables = '';                  $list_tables = '';

Legend:
Odstranené z verzie1.18  
zmenené riadky
  Pridané vo verzii1.19

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok