Changeset 349 for trunk/img_statistic.php
- Timestamp:
- Mar 3, 2010, 10:37:40 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/img_statistic.php
r328 r349 15 15 if(array_key_exists('language', $_GET)) 16 16 { 17 $language = ' AND `Language` = '.$_GET['language'].'';17 $language = ' AND (`Language` = '.$_GET['language'].')'; 18 18 } else $language = ''; 19 19 20 20 21 $ID = mysql_fetch_row($Database->SQLCommand('SELECT MAX(`VersionEnd`) FROM '.$Group['TablePrefix'])); 21 $DbResult = $Database->SQLCommand('SELECT MAX(`VersionEnd`) FROM '.$Group['TablePrefix']); 22 $ID = mysql_fetch_row($DbResult); 22 23 $BuildNumber_max = $ID[0]; 23 24 24 25 $where = 'VersionEnd = '.$BuildNumber_max.' AND (`Language` <> 0) AND (`Complete` = 1) '.$team.$language; 25 $ID = mysql_fetch_row($Database->SQLCommand('SELECT count(distinct(`entry`)) FROM '.$Group['TablePrefix'].'WHERE '.$where));26 $ID = mysql_fetch_row($Database->SQLCommand('SELECT count(distinct(`entry`)) FROM `'.$Group['TablePrefix'].'` WHERE '.$where)); 26 27 $NumberTranslate = $ID[0]; 27 28 28 $ID = mysql_fetch_row($Database->SQLCommand('SELECT count(distinct(`entry`)) FROM '.$Group['TablePrefix'].'WHERE `VersionEnd` = '.$BuildNumber_max.' AND (`Language` = 0)'));29 $ID = mysql_fetch_row($Database->SQLCommand('SELECT count(distinct(`entry`)) FROM `'.$Group['TablePrefix'].'` WHERE `VersionEnd` = '.$BuildNumber_max.' AND (`Language` = 0)')); 29 30 $NumberAJ = $ID[0]; 30 31 31 $ ID = mysql_fetch_row($Database->SQLCommand('SELECT count(*) FROM `log` WHERE `Type` = 1 AND `date` >= CURRENT_DATE - INTERVAL '.$Days.' DAY32 AND `text` LIKE "%'.$Group['Name'].'%"'));32 $DbResult = $Database->SQLCommand('SELECT count(*) FROM `log` WHERE (`Type` = 1) AND (`date` >= CURRENT_DATE - INTERVAL '.$Days.' DAY) AND (`text` LIKE "%'.$Group['Name'].'%")'); 33 $ID = mysql_fetch_row($DbResult); 33 34 $NumberPerDay = $ID[0]; //date ("Y-m-d H:i:s") 34 35
Note:
See TracChangeset
for help on using the changeset viewer.