X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_primera.php;h=9518d07a31b5602ec19960cceec05df4f6972676;hb=21b7860d55b9125cb4adb9b48511d6b1cf0cae20;hp=3e783861d8b7f3095992a38877c891fd303e2fe5;hpb=e2148142f8b1a8f40fd6e7ca32185569c5a9083e;p=mailer.git diff --git a/inc/modules/admin/what-config_primera.php b/inc/modules/admin/what-config_primera.php index 3e783861d8..9518d07a31 100644 --- a/inc/modules/admin/what-config_primera.php +++ b/inc/modules/admin/what-config_primera.php @@ -14,11 +14,10 @@ * $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 - 2009 by Roland Haeder * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2011 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 * @@ -39,20 +38,20 @@ // Some security stuff... if ((!defined('__SECURITY')) || (!isAdmin())) { die(); -} +} // END - if // Add description as navigation point -addMenuDescription('admin', __FILE__); +addYouAreHereLink('admin', __FILE__); if (isFormSent()) { // First merge temporarily the new API data into the current config mergeConfig(postRequestArray()); // Is the password set? - if (isPostRequestElementSet(('pass'))) { + if (isPostRequestElementSet('password')) { // Then hash and remove it - setRequestPostElement('primera_api_md5', md5(postRequestElement('pass'))); - unsetPostRequestElement('pass'); + setPostRequestElement('primera_api_md5', md5(postRequestElement('password'))); + unsetPostRequestElement('password'); } // END - if // Let's test the API first (hold your horses here, cowboy! Thank you. :) ) @@ -61,7 +60,7 @@ if (isFormSent()) { adminSaveSettingsFromPostData(); } else { // Failed to test the API! - loadTemplate('admin_settings_saved', false, GET_PRIMERA_ERROR_MESSAGE()); + displayMessage(GET_PRIMERA_ERROR_MESSAGE()); } } else { // Load template