]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-add_sponsor.php
Performance hacks, encapsulation and more EL code usage:
[mailer.git] / inc / modules / admin / what-add_sponsor.php
index de2d23cd0ce62dcafa87d95074552a5697d63b42..d00d7c743e617775921f5167400b6a93feba889e 100644 (file)
@@ -14,8 +14,6 @@
  * $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, 2010 by Mailer Developer Team                    *
 // 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());
+       loadTemplate('admin_settings_saved', false, doProcessSponsorFormRequest($messageArray));
 } else {
        // Output form
        loadTemplate('admin_add_sponsor');