Changeset 159
- Timestamp:
- Mar 18, 2009, 4:31:49 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/img_statistic.php
r131 r159 9 9 $team = ' AND User IN (SELECT ID FROM user WHERE team = '.$_GET['team'].')'; 10 10 } else $team = ''; 11 if (array_key_exists('language', $_GET)) { 12 $language = ' AND Language = '.$_GET['language'].''; 13 } else $language = ''; 11 14 12 $ID = mysql_fetch_row($Database->SQLCommand('SELECT count(distinct(entry)) FROM '.$Group['TablePrefix'].' WHERE (Language <> 0) AND (Complete = 1) '.$team ));15 $ID = mysql_fetch_row($Database->SQLCommand('SELECT count(distinct(entry)) FROM '.$Group['TablePrefix'].' WHERE (Language <> 0) AND (Complete = 1) '.$team.$language)); 13 16 $NumberTranslate = $ID[0]; 14 17 -
trunk/includes/global.php
r158 r159 194 194 if(!array_key_exists('Pass', $_SESSION)) $_SESSION['Pass'] = ''; 195 195 196 197 //odhlášení 198 if(array_key_exists('Logout', $_GET)) 199 { 200 WriteLog('Odhlášení', 3); 201 $_SESSION['User'] = ''; 202 $_SESSION['Pass'] = ''; 203 $_SESSION['UserID'] = ''; 204 } 205 196 206 // Přihlášení 197 207 if(array_key_exists('LoginUser', $_POST)) … … 213 223 WriteLog('Login: '.$_SESSION['User'], 3); 214 224 } 215 }216 217 //odhlášení218 if(array_key_exists('Logout', $_GET))219 {220 WriteLog('Odhlášení', 3);221 $_SESSION['User'] = '';222 $_SESSION['Pass'] = '';223 $_SESSION['UserID'] = '';224 225 } 225 226 -
trunk/statistic.php
r127 r159 5 5 ShowPage(); 6 6 7 echo('<strong>Statistika:</strong>'); 7 if (array_key_exists('language', $_GET)) { 8 $language = '&language='.$_GET['language']; 9 } else $language = ''; 10 11 echo('<strong>Statistika:</strong> <a href="statistic.php">Všechny</a> <a href="?language=1">České překlady</a> <a href="?language=2">Slovenské překlady</a>'); 8 12 foreach($TranslationTree as $Group) 9 13 if($Group['TablePrefix'] != '') 10 echo('<div class="state-image"><img alt="'.$Group['TablePrefix'].'" src="img_statistic.php?group='.$Group['Id'].'" title="statistika překladů '.$Group['Name'].'"/></div>'); 14 echo('<div class="state-image"> 15 <img alt="'.$Group['TablePrefix'].'" src="img_statistic.php?group='.$Group['Id'].$language.'" title="statistika překladů '.$Group['Name'].'"/></div>'); 11 16 12 17 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>
Note:
See TracChangeset
for help on using the changeset viewer.