X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-admins_add.php;h=0b5d3932fb36641afba408e3098b9f75aa457de2;hb=f888a0bda52e7dd2ea799837ed2991c263864e9f;hp=43162f011a0a1cfb9d18eae393415ee9c74aafd2;hpb=20741b93fd58620af677a7f1039ffd16ea6ec689;p=mailer.git diff --git a/inc/modules/admin/what-admins_add.php b/inc/modules/admin/what-admins_add.php index 43162f011a..0b5d3932fb 100644 --- a/inc/modules/admin/what-admins_add.php +++ b/inc/modules/admin/what-admins_add.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * + * Copyright (c) 2009 - 2012 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -44,16 +44,16 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Display form is default -$FORM = true; +$FORM = TRUE; // Is the form sent? if (isFormSent('add')) { // Check all - if ((isPostRequestElementSet('login')) && (isPostRequestElementSet('email')) && (isPostRequestElementSet('pass1')) && (isPostRequestElementSet('pass2')) && (postRequestElement('pass1') == postRequestElement('pass2'))) { + if ((isPostRequestElementSet('login')) && (isPostRequestElementSet('email')) && (isPostRequestElementSet('password1')) && (isPostRequestElementSet('password2')) && (postRequestElement('password1') == postRequestElement('password2'))) { // Add admin when not added already - if (addAdminAccount(postRequestElement('login'), generateHash(postRequestElement('pass1')), postRequestElement('email')) == 'done') { + if (addAdminAccount(postRequestElement('login'), generateHash(postRequestElement('password1')), postRequestElement('email')) == 'done') { // Do not ouput any form! - $FORM = false; + $FORM = FALSE; // Admin login saved displayMessage('{--ADMIN_ADMINS_ADD_DONE--}'); @@ -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]