Changeset 1168 in ExiteCMS


Ignore:
Timestamp:
12/16/07 10:45:28 (4 years ago)
Author:
hverton
Message:

added the Iolite image to the statistics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/PLi-Fusion/download_statistics_panel/php-files/modules/download_statistics_panel/download_statistics_panel.php

    r1003 r1168  
    8888 
    8989// image releases (new to old) 
    90 $images = array('Helenite', 'Garnet', 'Flubber-The Sequel', 'Flubber', 'Emerald', 'Diamond', 'Citrine', 'Beryl', 'Amber'); 
     90$images = array('Iolite', 'Helenite', 'Garnet', 'Flubber-The Sequel', 'Flubber', 'Emerald', 'Diamond', 'Citrine', 'Beryl', 'Amber'); 
    9191 
    9292if (isset($_POST['show_stats'])) { 
     
    112112            break; 
    113113        case 1:         // current image release only 
    114             $where = " AND ds_file LIKE '%pli-".reset($images)."%'"; 
     114            $where = " AND (ds_file LIKE '%pli-".reset($images)."%' OR ds_file LIKE '%pli-enigma2-".reset($images)."%')"; 
    115115            $title = " (".$locale['dls140'].")"; 
    116116            break; 
     
    149149                $output[$t] = array('title' => sprintf($locale['dls153'], $type), 'headers' => array($locale['dls151'], $locale['dls152'])); 
    150150                $temp = array(); 
    151                 $result = dbquery("SELECT ds_file, count(*) as count FROM ".$db_prefix."dls_statistics WHERE ds_file LIKE '%pli-".$type."-dm%'".$where." GROUP BY ds_file ORDER BY count DESC LIMIT ".$top); 
     151                $result = dbquery("SELECT ds_file, count(*) as count FROM ".$db_prefix."dls_statistics WHERE (ds_file LIKE '%pli-".$type."-dm%' OR ds_file LIKE '%pli-enigma2-".$type."-dm%')".$where." GROUP BY ds_file ORDER BY count DESC LIMIT ".$top); 
    152152                while ($data = dbarray($result)) { 
    153153                    $data['ds_file'] = substr(strrchr($data['ds_file'], "/"), 1); 
Note: See TracChangeset for help on using the changeset viewer.