Changeset 816 for trunk/img_statistic.php
- Timestamp:
- Feb 22, 2015, 11:20:50 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/img_statistic.php
r577 r816 9 9 $GroupId = LoadGroupIdParameter(); 10 10 $Group = $TranslationTree[$GroupId]; 11 if(array_key_exists('team', $_GET)) 11 if(array_key_exists('team', $_GET)) 12 12 { 13 13 $team = ' AND `User` IN (SELECT `ID` FROM `User` WHERE `Team` = '.($_GET['team'] * 1).')'; 14 14 } else $team = ''; 15 15 16 if(array_key_exists('language', $_GET)) 16 if(array_key_exists('language', $_GET)) 17 17 { 18 18 $language = ' AND (`Language` = '.$_GET['language'].')'; … … 29 29 $ID = $DbResult->fetch_row(); 30 30 $NumberTranslate = $ID[0]; 31 31 32 32 $DbResult = $System->Database->query('SELECT COUNT(DISTINCT(`Entry`)) FROM `'.$Group['TablePrefix'].'` WHERE (`VersionEnd` = '.$BuildNumber_max.') AND (`Language` = '.$Config['OriginalLanguage'].')'); 33 33 $ID = $DbResult->fetch_row(); 34 34 $NumberAJ = $ID[0]; 35 35 36 if($NumberAJ > 0) $Percent = ($NumberTranslate / $NumberAJ) * 100; 36 if($NumberAJ > 0) $Percent = ($NumberTranslate / $NumberAJ) * 100; 37 37 else $Percent = 0; 38 38 $Percent = substr($Percent, 0, 5); … … 54 54 ImageTTFText($Image, $FontSize, 0, 240, 28, $Color3, $FontFile, 'Aktualizace: '.date('m.d.y H:i')); 55 55 56 Header('Content-type: image/png'); 57 ImagePNG($Image); 58 ImageDestroy($Image); 56 Header('Content-type: image/png'); 57 ImagePNG($Image); 58 ImageDestroy($Image);
Note:
See TracChangeset
for help on using the changeset viewer.