X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-admins_add.php;h=2935f1230e65731a6c7a727457be60e42bfb9352;hp=6fb997102e6caa9cb429cd468a92798c49a650ff;hb=fb7120ffa230b62b54895bcf95952e1cf30f8594;hpb=2e68ea39a430a7217e58747b877acaa3e92ea997 diff --git a/inc/modules/admin/what-admins_add.php b/inc/modules/admin/what-admins_add.php index 6fb997102e..2935f1230e 100644 --- a/inc/modules/admin/what-admins_add.php +++ b/inc/modules/admin/what-admins_add.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Neues Administrator-Account anlegen * * -------------------------------------------------------------------- * - * * + * $Revision:: $ * + * $Date:: $ * + * $Tag:: 0.2.1-FINAL $ * + * $Author:: $ * + * Needs to be in all Files and every File needs "svn propset * + * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2008 by Roland Haeder * * For more information visit: http://www.mxchange.org * @@ -40,31 +45,29 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { // Add description as navigation point ADD_DESCR("admin", __FILE__); -global $cacheInstance; - // Display form is default $FORM = true; -if ((isset($_POST['add'])) && (!empty($_POST['login'])) && (!empty($_POST['email'])) && (!empty($_POST['pass1'])) && (!empty($_POST['pass2'])) && ($_POST['pass1'] == $_POST['pass2'])) { +if ((REQUEST_ISSET_POST(('add'))) && (REQUEST_ISSET_POST(('login'))) && (REQUEST_ISSET_POST(('email'))) && (REQUEST_ISSET_POST(('pass1'))) && (REQUEST_ISSET_POST(('pass2'))) && (REQUEST_POST('pass1') == REQUEST_POST('pass2'))) { // Add admin when not added already - if (REGISTER_ADMIN($_POST['login'], generateHash($_POST['pass1']), $_POST['email']) == "done") { + if (REGISTER_ADMIN(REQUEST_POST('login'), generateHash(REQUEST_POST('pass1')), REQUEST_POST('email')) == "done") { // Do not ouput any form! $FORM = false; // Admin login saved - LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_ADMINS_ADD_DONE); + LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_ADMINS_ADD_DONE')); // Run filter chain - RUN_FILTER('post_admin_added', $_POST); + runFilterChain('post_admin_added', REQUEST_POST_ARRAY()); } // END - if } // END - if // Shall we display the form? if ($FORM === true) { // Set missing elements - // @TODO Do we need this ugly code here? - if (!isset($_POST['login'])) $_POST['login'] = ""; - if (!isset($_POST['email'])) $_POST['email'] = ""; + // @TODO Do we still need this ugly code here? + if (!REQUEST_ISSET_POST(('login'))) REQUEST_SET_POST('login', ""); + if (!REQUEST_ISSET_POST(('email'))) REQUEST_SET_POST('email', ""); // Load form from template LOAD_TEMPLATE("admin_admins_add");