Changeset 253


Ignore:
Timestamp:
Jul 16, 2009, 11:56:49 AM (15 years ago)
Author:
maron
Message:

Možnost zobrazení statistiky vlastního výběru. Oprava defaultního natavení exportu

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/export/index.php

    r246 r253  
    175175    if(!isset($ExportSetting['language'.$Language['Id']])) $ExportSetting['language'.$Language['Id']] = 1;
    176176if(!isset($ExportSetting['users-order'])) $ExportSetting['users-order'] = '';
    177 if(!isset($ExportSetting['Export'])) $ExportSetting['Export'] = $Addon_verses[0];
     177if(!isset($ExportSetting['Export'])) $ExportSetting['Export'] = 'Addon';
    178178if(!isset($ExportSetting['Version'])) $ExportSetting['Version'] = $Config['Web']['GameVersion'];
    179179if(!isset($ExportSetting['groups'])) $ExportSetting['groups'] = array();
  • trunk/statistic.php

    r217 r253  
    99        $language = '&language='.$_GET['language'];
    1010} else $language = '';
     11if (array_key_exists('user', $_GET))
     12{
     13        $user_stat = '&user='.$_SESSION['UserID'];
     14} else $user_stat = '';
     15
    1116
    1217echo('<strong>Statistika:</strong> <a href="statistic.php">Všechny</a>');
    1318foreach($LanguageList as $Language)
    1419if($Language['Enabled'] == 1) echo(' <a href="?language='.$Language['Id'].'">'.$Language['Name'].'</a>');
     20if(Licence(LICENCE_USER))
     21{
     22  $DbResult = mysql_fetch_assoc($Database->SQLCommand('SELECT ExportSetting FROM `user` WHERE ID='.$_SESSION['UserID']));
     23  if ($DbResult['ExportSetting'] != '')
     24    echo(' <a href="?user">Statistika výběru uživatele</a>');
     25}
    1526
    1627foreach($TranslationTree as $Group)
    1728  if($Group['TablePrefix'] != '')
    1829        echo('<div class="state-image">
    19         <img alt="'.$Group['TablePrefix'].'" src="img_statistic.php?group='.$Group['Id'].$language.'" title="statistika překladů '.$Group['Name'].'"/></div>');
     30        <img alt="'.$Group['TablePrefix'].'" src="img_statistic.php?group='.$Group['Id'].$language.$user_stat.'" title="statistika překladů '.$Group['Name'].'"/></div>');
    2031
    2132echo('<p><strong>Celková statistika v závislosti na čase: </strong><a href="http://stat.zdechov.net/game/?Measure=18">Počet přeložených textů</a></p>
Note: See TracChangeset for help on using the changeset viewer.