Ignore:
Timestamp:
Sep 5, 2012, 4:15:54 PM (12 years ago)
Author:
grum
Message:

version 0.1.0b

. Fix install bugs
. Manage anonymous directories
. Manage CSV export options settings
. Fix IPadress<=>country association bug & improve join performances
. Fix bug on IP filter
. Improve performances for history consult

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/EStat/lib/statDBGlobal.class.inc.php

    r17737 r17758  
    223223            SELECT uaType, IPadress, catId, $year, $month, SUM(visits), country
    224224            FROM period.statIP
    225             GROUP BY uaType, IPadress, catId;
     225            GROUP BY uaType, IPadress, catId, country;
    226226
    227227        REPLACE INTO main.statUA (uaData, uaValue, uaVersion, year, month, visits)
     
    486486    if(!isset($filter['country'])) $filter['country']=null;
    487487
     488    $filter['IPadress']=$this->checkIPFilter($filter['IPadress']);
    488489    // check filter values - getOperator check and 'clean' the filter
    489490    $filter['IPadress']=$this->getOperator($filter['IPadress'], 'IP');
     
    543544      case ASDF_GET_ROWS:
    544545          $sql=$select." FROM statip ".$where.$groupBy.$orderBy.$limit;
    545 
    546546          $sqlStm=$this->dbHandle->prepare($sql);
    547547          foreach($IPList as $num=>$IP)
     
    12451245            );
    12461246          $this->dbHandle->exec("CREATE UNIQUE INDEX iIP ON statIP ('uaType', 'IPadress', 'catId', 'year', 'month');");
    1247           $this->dbHandle->exec("CREATE UNIQUE INDEX iIPPeriod ON statIP ('year', 'month', 'IPadress', 'uaType');");
     1247          $this->dbHandle->exec("CREATE INDEX iIPPeriod ON statIP ('year', 'month', 'IPadress', 'uaType');");
    12481248        }
    12491249
Note: See TracChangeset for help on using the changeset viewer.