]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-add_sponsor.php
Added update_year.sh (still not fully flexible) and updated all years with it.
[mailer.git] / inc / modules / admin / what-add_sponsor.php
index 1acaf0581dbef103570456e2ffdd4add9a3e7ac6..5c0bbc3909388d5810314d97f0f28ff1a4bbe9c3 100644 (file)
  * $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 - 2015 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 *
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!isAdmin())) {
        die();
-}
+} // END - if
 
 // Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
 
 if (isFormSent()) {
+       // Generate message array
+       $messageArray = array(
+               'failed' => '{--SPONSOR_REGISTRATION_FAILED--}',
+               'added'  => '{--SPONSOR_REGISTRATION_COMPLETED--}',
+       );
+
        // Save sponsor in database
-       handlSponsorRequest(postRequestArray());
+       displayMessage(doProcessSponsorFormRequest($messageArray));
 } else {
        // Output form
        loadTemplate('admin_add_sponsor');