<?php include str_replace("\\", "/", dirname(__FILE__)) . "/config.examples.php"; $GLOBALS['_CONFIG']['autoLink'] = true; if (!isset($GLOBALS['_CONFIG']['lang'])) { $GLOBALS['_CONFIG']['lang'] = 'de'; } $smartertemplate = new SmarterTemplate('sprachsupport.html'); echo $smartertemplate->result();
try { $user = $userManager->createUser($_POST['userName'], $_POST['userPassword'], $_POST['userEmail']); } catch (exceptionUserLogin $error) { $currentOk = false; $tplvar['error'][]['value'] = $error->getMessage(); } catch (exceptionUserProblem $error) { $currentOk = false; $tplvar['error'][]['value'] = $error->getMessage(); } catch (exceptionUserSql $error) { $currentOk = false; $tplvar['error'][]['value'] = $error->getMessage(); } catch (exceptionUserSet $error) { $currentOk = false; $tplvar['error'][]['value'] = $error->getMessage(); } unset($user); } if ($currentOk === true) { require $directoryRoot . '/Admin/Overview.php'; die; } $tplvar['userName'] = $_REQUEST['userName']; $tplvar['userPassword'] = $_REQUEST['userPassword']; $tplvar['userEmail'] = $_REQUEST['userEmail']; } } $tplvar['currentRequestFile'] = 'AddUser.php'; $tpl = new SmarterTemplate($directoryRoot . '/Admin/Templates/AddUser.html'); $tpl->assign($tplvar); echo $tpl->result();