- Timestamp:
- Jul 29, 2013, 9:25:33 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Translation/Save.php
r550 r554 45 45 if(($GroupItem['Visible'] == 1) and ($EnglishText[$GroupItem['Column']] != '')) 46 46 $Filter .= ' OR (`'.$GroupItem['Column'].'` = "'.addslashes($EnglishText[$GroupItem['Column']]).'")'; 47 $Filter = ' AND ('.substr($Filter, 3).')';47 if(substr($Filter, 0, 3) == ' OR') $Filter = ' AND ('.substr($Filter, 3).')'; 48 48 49 49 $DbResult = $System->Database->query('SELECT * FROM `'.$Table.'` WHERE (`Language` = '.$Config['OriginalLanguage'].')'.$Filter); -
trunk/Modules/User/Profile.php
r547 r554 41 41 'LEFT JOIN `Team` ON `Team`.`Id` = `User`.`Team` '. 42 42 'LEFT JOIN `ClientVersion` ON `ClientVersion`.`Id` = `User`.`PreferredVersion` '. 43 'WHERE `User`.`Id` = '. $_GET['user'];43 'WHERE `User`.`Id` = '.($_GET['user'] * 1); 44 44 $DbResult = $this->Database->query($Query); 45 if($DbResult->num_rows > 0) 46 { 45 47 $UserLine = $DbResult->fetch_array(); 46 48 … … 76 78 '</div></form></fieldset>'; 77 79 } 80 } else $Output .= ShowMessage('Uživatel nenalezen', MESSAGE_CRITICAL); 78 81 return($Output); 79 82 } -
trunk/export/index.php
r553 r554 116 116 if($User->Licence(LICENCE_USER)) 117 117 { 118 $System->Database->query('SELECT * FROM `Export` WHERE `Id`='.$_GET['ExportId'].' AND `User`='.$User->Id); 119 $System->Database->query('DELETE FROM `Export` WHERE `Id`='.$_GET['ExportId']); 120 DeleteDirectory('../tmp/Export/'.$_GET['ExportId'].'/'); 121 $Output = ShowMessage('Export smazán.'); 122 $_GET['Filter'] = 'my'; 123 WriteLog('Smazán export '.$_GET['ExportId'], LOG_TYPE_EXPORT); 124 $Output .= ExportList(); 118 $DbResult = $System->Database->query('SELECT * FROM `Export` WHERE (`Id`='.($_GET['ExportId'] * 1).') AND (`User`='.$User->Id.')'); 119 if($DbResult->num_rows > 0) 120 { 121 $System->Database->query('DELETE FROM `ExportGroup` WHERE `Export`='.$_GET['ExportId']); 122 $System->Database->query('DELETE FROM `ExportLanguage` WHERE `Export`='.$_GET['ExportId']); 123 $System->Database->query('DELETE FROM `ExportTask` WHERE `Export`='.$_GET['ExportId']); 124 $System->Database->query('DELETE FROM `ExportUser` WHERE `Export`='.$_GET['ExportId']); 125 $System->Database->query('DELETE FROM `Export` WHERE `Id`='.$_GET['ExportId']); 126 DeleteDirectory('../tmp/Export/'.$_GET['ExportId'].'/'); 127 $Output = ShowMessage('Export smazán.'); 128 $_GET['Filter'] = 'my'; 129 WriteLog('Smazán export '.$_GET['ExportId'], LOG_TYPE_EXPORT); 130 $Output .= ExportList(); 131 } else $Output = ShowMessage('Export nenalezen.', MESSAGE_CRITICAL); 125 132 } else $Output = ShowMessage('Nemáte oprávnění.', MESSAGE_CRITICAL); 126 133 return($Output); -
trunk/includes/Version.php
r553 r554 1 1 <?php 2 2 3 $Revision = 55 3; // Subversion revision3 $Revision = 554; // Subversion revision 4 4 $DatabaseRevision = 543; // Database structure revision 5 $ReleaseTime = '2013-07- 18';5 $ReleaseTime = '2013-07-29'; -
trunk/includes/global.php
r552 r554 232 232 233 233 if(array_key_exists('OrderCol', $_GET)) $_SESSION['OrderCol'] = $_GET['OrderCol']; 234 if(array_key_exists('OrderDir', $_GET)) $_SESSION['OrderDir'] = $_GET['OrderDir']; 234 if(array_key_exists('OrderDir', $_GET) and (array_key_exists($_GET['OrderDir'], $OrderArrowImage))) 235 $_SESSION['OrderDir'] = $_GET['OrderDir']; 235 236 if(!array_key_exists('OrderCol', $_SESSION)) $_SESSION['OrderCol'] = $DefaultColumn; 236 if(!array_key_exists('OrderDir', $_SESSION)) $_SESSION['OrderDir'] = $DefaultOrder; 237 if(!array_key_exists('OrderDir', $_SESSION)) $_SESSION['OrderDir'] = $DefaultOrder; 237 238 238 239 // Check OrderCol … … 260 261 $QueryItems['OrderCol'] = $Column['Name']; 261 262 $QueryItems['OrderDir'] = 1 - $_SESSION['OrderDir']; 262 if($Column['Name'] == $_SESSION['OrderCol']) $ArrowImage = '<img style="vertical-align: middle; border: 0px;" src="'.$System->Link('/images/'.$OrderArrowImage[$_SESSION['OrderDir']]).'" alt="order arrow">'; 263 if($Column['Name'] == $_SESSION['OrderCol']) $ArrowImage = '<img style="vertical-align: middle; border: 0px;" src="'. 264 $System->Link('/images/'.$OrderArrowImage[$_SESSION['OrderDir']]).'" alt="order arrow">'; 263 265 else $ArrowImage = ''; 264 266 if($Column['Name'] == '') $Result .= '<th>'.$Column['Title'].'</th>';
Note:
See TracChangeset
for help on using the changeset viewer.