X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-admins_add.php;h=20aeb6199b25c4f491ee5850e9bf16a9c24b792f;hp=f6dbff52bb9834b44996dffdde44c2b77b573756;hb=61621983cc6d7195fcc7eab29b5f6080ff283b34;hpb=c8d76610eb94093d4eed4fcd8a6cb72e74c8f6d8 diff --git a/inc/modules/admin/what-admins_add.php b/inc/modules/admin/what-admins_add.php index f6dbff52bb..20aeb6199b 100644 --- a/inc/modules/admin/what-admins_add.php +++ b/inc/modules/admin/what-admins_add.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009, 2010 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2016 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -41,22 +41,22 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { } // END - if // Add description as navigation point -addMenuDescription('admin', __FILE__); +addYouAreHereLink('admin', __FILE__); // Display form is default -$FORM = true; +$FORM = TRUE; // Is the form sent? if (isFormSent('add')) { // Check all - if ((isPostRequestParameterSet('login')) && (isPostRequestParameterSet('email')) && (isPostRequestParameterSet('pass1')) && (isPostRequestParameterSet('pass2')) && (postRequestParameter('pass1') == postRequestParameter('pass2'))) { + if ((isPostRequestElementSet('login')) && (isPostRequestElementSet('email')) && (isPostRequestElementSet('password1')) && (isPostRequestElementSet('password2')) && (postRequestElement('password1') == postRequestElement('password2'))) { // Add admin when not added already - if (addAdminAccount(postRequestParameter('login'), generateHash(postRequestParameter('pass1')), postRequestParameter('email')) == 'done') { + if (addAdminAccount(postRequestElement('login'), generateHash(postRequestElement('password1')), postRequestElement('email')) == 'done') { // Do not ouput any form! - $FORM = false; + $FORM = FALSE; // Admin login saved - loadTemplate('admin_settings_saved', false, '{--ADMIN_ADMINS_ADD_DONE--}'); + displayMessage('{--ADMIN_ADMINS_ADD_DONE--}'); // Run filter chain runFilterChain('post_admin_added', postRequestArray()); @@ -65,7 +65,7 @@ if (isFormSent('add')) { } // END - if // Shall we display the form? -if ($FORM === true) { +if ($FORM === TRUE) { // Prepare content $content = merge_array( array('login' => '', 'email' => ''), @@ -73,7 +73,7 @@ if ($FORM === true) { ); // Load form from template - loadTemplate('admin_add_admins', false, $content); + loadTemplate('admin_add_admins', FALSE, $content); } // END - if // [EOF]