Ignore:
Timestamp:
Feb 22, 2015, 11:20:50 PM (10 years ago)
Author:
chronos
Message:
  • Modified: Tabs converted to spaces.
  • Modified: Remove spaces from end of lines.
  • Added: Code format script.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/img_statistic.php

    r577 r816  
    99$GroupId = LoadGroupIdParameter();
    1010$Group = $TranslationTree[$GroupId];
    11 if(array_key_exists('team', $_GET)) 
     11if(array_key_exists('team', $_GET))
    1212{
    1313  $team = ' AND `User` IN (SELECT `ID` FROM `User` WHERE `Team` = '.($_GET['team'] * 1).')';
    1414} else $team = '';
    1515
    16 if(array_key_exists('language', $_GET)) 
     16if(array_key_exists('language', $_GET))
    1717{
    1818  $language = ' AND (`Language` = '.$_GET['language'].')';
     
    2929$ID = $DbResult->fetch_row();
    3030$NumberTranslate = $ID[0];
    31  
     31
    3232$DbResult = $System->Database->query('SELECT COUNT(DISTINCT(`Entry`)) FROM `'.$Group['TablePrefix'].'` WHERE (`VersionEnd` = '.$BuildNumber_max.') AND (`Language` = '.$Config['OriginalLanguage'].')');
    3333$ID = $DbResult->fetch_row();
    3434$NumberAJ = $ID[0];
    3535
    36 if($NumberAJ > 0) $Percent = ($NumberTranslate / $NumberAJ) * 100; 
     36if($NumberAJ > 0) $Percent = ($NumberTranslate / $NumberAJ) * 100;
    3737  else $Percent = 0;
    3838$Percent = substr($Percent, 0, 5);
     
    5454ImageTTFText($Image, $FontSize, 0, 240, 28, $Color3, $FontFile, 'Aktualizace: '.date('m.d.y  H:i'));
    5555
    56 Header('Content-type: image/png'); 
    57 ImagePNG($Image); 
    58 ImageDestroy($Image); 
     56Header('Content-type: image/png');
     57ImagePNG($Image);
     58ImageDestroy($Image);
Note: See TracChangeset for help on using the changeset viewer.