| | |
| | | * End Form configuration |
| | | ******************************************/ |
| | | |
| | | // Checke Berechtigungen für Modul |
| | | if(!stristr($_SESSION["s"]["user"]["modules"],$_SESSION["s"]["module"]["name"])) { |
| | | header("Location: ../index.php"); |
| | | exit; |
| | | } |
| | | //* Check permissions for module |
| | | $app->auth->check_module_permissions('admin'); |
| | | |
| | | // Lade Template |
| | | $app->uses('tpl,tform'); |
| | |
| | | $app->tform->loadFormDef($tform_def_file); |
| | | |
| | | // ID importieren |
| | | $id = intval($_REQUEST["id"]); |
| | | $id = @intval($_REQUEST["id"]); |
| | | |
| | | if(count($_POST) > 1) { |
| | | |
| | |
| | | // Welcher Tab wird angezeigt |
| | | if($app->tform->errorMessage == '') { |
| | | // wenn kein Fehler vorliegt |
| | | if($_REQUEST["next_tab"] != '') { |
| | | if(isset($_REQUEST["next_tab"]) && $_REQUEST["next_tab"] != '') { |
| | | // wenn nächster Tab bekannt |
| | | $active_tab = $_REQUEST["next_tab"]; |
| | | } else { |