1 | <?php
|
---|
2 |
|
---|
3 | include('includes/global.php');
|
---|
4 |
|
---|
5 | ShowPage();
|
---|
6 |
|
---|
7 | if (array_key_exists('language', $_GET))
|
---|
8 | {
|
---|
9 | $language = '&language='.$_GET['language'];
|
---|
10 | } else $language = '';
|
---|
11 | if (array_key_exists('user', $_GET))
|
---|
12 | {
|
---|
13 | $user_stat = '&user='.$_SESSION['UserID'];
|
---|
14 | } else $user_stat = '';
|
---|
15 |
|
---|
16 |
|
---|
17 | echo('<strong>Statistika:</strong> <a href="statistic.php">Všechny</a>');
|
---|
18 | foreach($LanguageList as $Language)
|
---|
19 | if($Language['Enabled'] == 1) echo(' <a href="?language='.$Language['Id'].'">'.$Language['Name'].'</a>');
|
---|
20 | if(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 | }
|
---|
26 |
|
---|
27 | foreach($TranslationTree as $Group)
|
---|
28 | if($Group['TablePrefix'] != '')
|
---|
29 | echo('<div class="state-image">
|
---|
30 | <img alt="'.$Group['TablePrefix'].'" src="img_statistic.php?group='.$Group['Id'].$language.$user_stat.'" title="statistika překladů '.$Group['Name'].'"/></div>');
|
---|
31 |
|
---|
32 | echo('<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>
|
---|
33 | <div>Počet stáhnutí přeložených textů v SQL souboru: <strong>');
|
---|
34 |
|
---|
35 | $ID = $Database->SQLCommand('SELECT count(distinct(IP)) FROM log WHERE type = 2');
|
---|
36 | $Line = mysql_fetch_row($ID);
|
---|
37 | echo($Line[0]);
|
---|
38 |
|
---|
39 | echo('</strong></div>
|
---|
40 | <div>Počet stáhnutí: <strong>');
|
---|
41 |
|
---|
42 | $ID = $Database->SQLCommand('SELECT count(distinct(IP)) FROM log WHERE type = 0');
|
---|
43 | $Line = mysql_fetch_row($ID);
|
---|
44 | echo($Line[0]);
|
---|
45 |
|
---|
46 | echo('</strong></div>');
|
---|
47 |
|
---|
48 | ShowFooter();
|
---|
49 |
|
---|
50 | ?>
|
---|