Changeset 436 for trunk/includes/global_function.php
- Timestamp:
- Apr 9, 2010, 11:16:24 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/global_function.php
r417 r436 351 351 else $GroupId = 1; 352 352 353 if(isset($TranslationTree[$GroupId]) == false) 354 { 355 echo('Překladová skupina dle zadaného Id neexistuje.'); 356 ShowFooter(); 357 die(); 358 } 353 if(isset($TranslationTree[$GroupId]) == false) ErrorMessage('Překladová skupina dle zadaného Id neexistuje.'); 359 354 return($GroupId); 360 355 } … … 552 547 } 553 548 549 function GetParameter($Name, $Default = '', $Numeric = false, $Session = false) 550 { 551 $Result = $Default; 552 if(array_key_exists($Name, $_GET)) $Result = $_GET[$Name]; 553 else if(array_key_exists($Name, $_POST)) $Result = $_POST[$Name]; 554 else if($Session and array_key_exists($Name, $_SESSION)) $Result = $_SESSION[$Name]; 555 if($Numeric and !is_numeric($Result)) $Result = $Default; 556 if($Session) $_SESSION[$Name] = $Result; 557 return($Result); 558 } 559 554 560 ?>
Note:
See TracChangeset
for help on using the changeset viewer.