]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_primera.php
Way more usage of EL code:
[mailer.git] / inc / modules / admin / what-config_primera.php
index 463a4b6f39170cf57c10886bb4025f342bb2d85e..f8f5bbb1e90f138d9d71caae7fab38a70ce1b4b5 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
  * Mailer v0.2.1-FINAL                                Start: 09/09/2008 *
- * ================                             Last change: 09/09/2008 *
+ * ===================                          Last change: 09/09/2008 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-config_primera.php                          *
  * $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                           *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
 // 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 (isPostRequestParameterSet('password')) {
                // Then hash and remove it
-               setRequestPostElement('primera_api_md5', md5(postRequestElement('pass')));
-               unsetPostRequestElement('pass');
+               setPostRequestParameter('primera_api_md5', md5(postRequestParameter('password')));
+               unsetPostRequestParameter('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