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/Modules/Translation/Progress.php

    r793 r816  
    66  {
    77    $Output = '';
    8    
     8
    99    $BuildNumber = GetBuildNumber($_SESSION['StatVersion']);
    1010    if(is_numeric($_SESSION['language'])) $LanguageFilter = 'AND (`Language`='.$_SESSION['language'].')';
    1111    else $LanguageFilter = ' AND (`Language`!='.$this->System->Config['OriginalLanguage'].')';
    12    
     12
    1313    $GroupListQuery = 'SELECT `Id`, `TablePrefix`, `Name` FROM `Group`';
    1414    $Query = '';
     
    3030      }
    3131      $Query = substr($Query, 0, - 6);
    32    
     32
    3333      $DbResult = $this->Database->query('SELECT COUNT(*) FROM ('.$GroupListQuery.') AS `T`');
    3434      $DbRow = $DbResult->fetch_row();
    3535      $PageList = GetPageList($DbRow[0]);
    3636      $Output .= $PageList['Output'];
    37    
     37
    3838      $Output .= '<table class="BaseTable">';
    3939      $TableColumns = array(
     
    4343          array('Name' => 'Percent', 'Title' => 'Procenta'),
    4444      );
    45    
     45
    4646      $Order = GetOrderTableHeader($TableColumns, 'Name', 0);
    4747      $Output .= $Order['Output'];
    48    
     48
    4949      $Translated = 0;
    5050      $Total = 0;
     
    6262    }
    6363    return($Output);
    64   } 
     64  }
    6565
    6666  function Show()
    6767  {
    68         $this->Title = T('Progress');
     68    $this->Title = T('Progress');
    6969$LanguageList = GetLanguageList();
    7070
    7171if(array_key_exists('Version', $_GET)) $_SESSION['StatVersion'] = $_GET['Version'];
    72 if(!array_key_exists('StatVersion', $_SESSION)) 
    73 {   
     72if(!array_key_exists('StatVersion', $_SESSION))
     73{
    7474  if($this->System->User->Licence(LICENCE_USER) and ($this->System->User->PreferredVersionGame != ''))
    75         {
     75  {
    7676    $_SESSION['StatVersion'] = $this->System->User->PreferredVersionGame;
    7777  } else
    7878    $_SESSION['StatVersion'] = $this->System->Config['Web']['GameVersion'];
    79 } 
     79}
    8080
    8181if(!isset($_SESSION['language']))
    8282{
    83         if($this->System->User->Licence(LICENCE_USER))
    84         {
    85                 $_SESSION['language'] = $this->System->User->Language;
     83  if($this->System->User->Licence(LICENCE_USER))
     84  {
     85    $_SESSION['language'] = $this->System->User->Language;
    8686  } else $_SESSION['language'] = '';
    8787}
    8888if(array_key_exists('language', $_GET)) {
    8989  if($_GET['language'] == '') $_SESSION['language'] = '';
    90           else {
    91             $_SESSION['language'] = $_GET['language'] * 1;
    92           }
     90    else {
     91      $_SESSION['language'] = $_GET['language'] * 1;
     92    }
    9393}
    9494if(!array_key_exists($_SESSION['language'], $LanguageList)) $_SESSION['language'] = '';
     
    109109if($Language['Enabled'] == 1)
    110110{
    111         $Lang = ' <a href="?language='.$Language['Id'].'">'.$Language['Name'].'</a>';
     111  $Lang = ' <a href="?language='.$Language['Id'].'">'.$Language['Name'].'</a>';
    112112  if($Language['Id'] == $_SESSION['language']) $Output .= '<strong>'.$Lang.'</strong> ';
    113113    else $Output .= $Lang;
Note: See TracChangeset for help on using the changeset viewer.