Changeset 531 for trunk/statistic.php


Ignore:
Timestamp:
Feb 24, 2013, 10:38:17 AM (12 years ago)
Author:
chronos
Message:
  • Opraveno: Výběr a zobrazení jazyků ve slovníčku.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/statistic.php

    r525 r531  
    77if(array_key_exists('Version', $_GET)) $_SESSION['StatVersion'] = $_GET['Version'];
    88if(!array_key_exists('StatVersion', $_SESSION)) $_SESSION['StatVersion'] = $Config['Web']['GameVersion'];
     9
    910if(!isset($_SESSION['language']))
    1011{
    1112        if($User->Licence(LICENCE_USER))
    1213        {
    13                 $_SESSION['language'] = $User->Language;
    14         } else $_SESSION['language'] = '';
     14                $_SESSION['language'] = $User->Language;
     15  } else $_SESSION['language'] = '';
    1516}
    1617if(array_key_exists('language', $_GET)) {
    17   if($_GET['language'] == 'all') $_SESSION['language'] = 'all';
    18           else $_SESSION['language'] = LoadLanguageIdParameter();
     18  if($_GET['language'] == '') $_SESSION['language'] = '';
     19          else $_SESSION['language'] = $_GET['language'] * 1;
    1920}
    2021
     
    8990// Show language selection
    9091$Output .= 'Jazyk: ';
    91 $Lang = '<a href="statistic.php?language=all">Všechny</a>';
    92 if('all' == $_SESSION['language']) $Output .= '<strong>'.$Lang.'</strong> ';
     92$Lang = '<a href="?language=">Všechny</a>';
     93if($_SESSION['language'] == '') $Output .= '<strong>'.$Lang.'</strong> ';
    9394  else $Output .= $Lang;
    9495foreach($LanguageList as $Language)
Note: See TracChangeset for help on using the changeset viewer.