Changeset 289 for trunk/img_statistic.php
- Timestamp:
- Dec 23, 2009, 9:03:16 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/img_statistic.php
r286 r289 10 10 if(array_key_exists('team', $_GET)) 11 11 { 12 $team = ' AND `User` IN (SELECT `ID` FROM `user` WHERE `team` = '. $_GET['team'].')';12 $team = ' AND `User` IN (SELECT `ID` FROM `user` WHERE `team` = '.($_GET['team'] * 1).')'; 13 13 } else $team = ''; 14 14 15 if(array_key_exists('language', $_GET)) 15 16 { 16 17 $language = ' AND `Language` = '.$_GET['language'].''; 17 18 } else $language = ''; 19 18 20 if(array_key_exists('user', $_GET)) 19 21 { 20 $DbResult = $Database->SQLCommand('SELECT `user`,`ExportSetting` FROM `user` WHERE ID='.$_GET['user']); 21 $User = mysql_fetch_assoc($DbResult); 22 $ExportSetting = unserialize($User['ExportSetting']); 23 $SelectedUsers = ''; 24 foreach($ExportSetting['users-selection'] as $Item) 25 $SelectedUsers .= ','.$Item; 26 $SelectedUsers = substr($SelectedUsers, 1); 27 $user_sql = ' AND `User` IN ('.$SelectedUsers.')'; 22 $DbResult = $Database->SQLCommand('SELECT `user`,`ExportSetting` FROM `user` WHERE ID='.($_GET['user'] * 1)); 23 if(mysql_num_rows($DbResult) > 0) 24 { 25 $User = mysql_fetch_assoc($DbResult); 26 $ExportSetting = unserialize($User['ExportSetting']); 27 $SelectedUsers = ''; 28 foreach($ExportSetting['users-selection'] as $Item) 29 $SelectedUsers .= ','.$Item; 30 $SelectedUsers = substr($SelectedUsers, 1); 31 $user_sql = ' AND `User` IN ('.$SelectedUsers.')'; 32 } else $user_sql = ''; 28 33 } else $user_sql = ''; 34 29 35 30 36 $ID = mysql_fetch_row($Database->SQLCommand('SELECT MAX(`VersionEnd`) FROM '.$Group['TablePrefix']));
Note:
See TracChangeset
for help on using the changeset viewer.