Changeset 289
- Timestamp:
- Dec 23, 2009, 9:03:16 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 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'])); -
trunk/includes/error.php
r288 r289 36 36 foreach($Backtrace as $Item) 37 37 { 38 print_r($Item); 39 $Error .= ' '.$Item['file'].'('.$Item['line'].")\t".$Item['function']; 38 //print_r($Item); 39 if(array_key_exists('line', $Item)) 40 $Error .= ' '.$Item['file'].'('.$Item['line'].")\t".$Item['function']; 41 else $Error .= ' '.$Item['file']."\t".$Item['function']; 40 42 $Arguments = ''; 41 43 if(array_key_exists('args', $Item) and is_array($Item['args'])) -
trunk/includes/global.php
r286 r289 246 246 247 247 //záznam o aktivitě 248 if(Licence(0)) $Database->SQLCommand('UPDATE user SET LastIP = "'.$_SERVER['REMOTE_ADDR'].'", LastLogin = NOW() WHERE ID = '.$_SESSION['UserID']); 248 if(Licence(0) and array_key_exists('REMOTE_ADDR', $_SERVER)) 249 $Database->SQLCommand('UPDATE user SET LastIP = "'.$_SERVER['REMOTE_ADDR'].'", LastLogin = NOW() WHERE ID = '.$_SESSION['UserID']); 249 250 250 251 echo('<table class="page"><tr><td class="menu">'); -
trunk/includes/global_function.php
r288 r289 94 94 function GetOrderTableHeader($Columns, $DefaultColumn) 95 95 { 96 global $OrderDirSQL, $OrderArrowImage ;96 global $OrderDirSQL, $OrderArrowImage, $Config; 97 97 98 98 if(array_key_exists('OrderCol', $_GET)) $_SESSION['OrderCol'] = $_GET['OrderCol']; … … 121 121 $QueryItems['OrderCol'] = $Column['Name']; 122 122 $QueryItems['OrderDir'] = 1 - $_SESSION['OrderDir']; 123 if($Column['Name'] == $_SESSION['OrderCol']) $ArrowImage = '<img style="vertical-align: middle; border: 0px;" src=" images/'.$OrderArrowImage[$_SESSION['OrderDir']].'" alt="order arrow">';123 if($Column['Name'] == $_SESSION['OrderCol']) $ArrowImage = '<img style="vertical-align: middle; border: 0px;" src="'.$Config['Web']['BaseURL'].'/images/'.$OrderArrowImage[$_SESSION['OrderDir']].'" alt="order arrow">'; 124 124 else $ArrowImage = ''; 125 125 if($Column['Name'] == '') $Result .= '<th>'.$Column['Title'].'</th>';
Note:
See TracChangeset
for help on using the changeset viewer.