X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-add_sponsor.php;h=144f8c7fe6990f7afe892576289bda2c1fb4d976;hb=98b92ea5ba992a63304091fa1b57f477befffc22;hp=de2d23cd0ce62dcafa87d95074552a5697d63b42;hpb=09f5758c42a33a56bdd461c946ffe759a59c54aa;p=mailer.git diff --git a/inc/modules/admin/what-add_sponsor.php b/inc/modules/admin/what-add_sponsor.php index de2d23cd0c..144f8c7fe6 100644 --- a/inc/modules/admin/what-add_sponsor.php +++ b/inc/modules/admin/what-add_sponsor.php @@ -40,14 +40,20 @@ // Some security stuff... if ((!defined('__SECURITY')) || (!isAdmin())) { die(); -} +} // END - if // Add description as navigation point addMenuDescription('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');