Changeset 1168 in ExiteCMS
- Timestamp:
- 12/16/07 10:45:28 (4 years ago)
- 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 88 88 89 89 // 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'); 91 91 92 92 if (isset($_POST['show_stats'])) { … … 112 112 break; 113 113 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)."%')"; 115 115 $title = " (".$locale['dls140'].")"; 116 116 break; … … 149 149 $output[$t] = array('title' => sprintf($locale['dls153'], $type), 'headers' => array($locale['dls151'], $locale['dls152'])); 150 150 $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); 152 152 while ($data = dbarray($result)) { 153 153 $data['ds_file'] = substr(strrchr($data['ds_file'], "/"), 1);
Note: See TracChangeset
for help on using the changeset viewer.
