X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fsponsor.php;h=9fbac4d3b6a3021f0a1cd791b6d720c6969c3194;hb=49acdb7a7adbcf25a8e8683b5581bfcec72b23bd;hp=3e39328c95d9f30b6ddf08ee8c48ea8d2a09cc16;hpb=d0c133d3ee415498b9b69237f2806ac15b04ae18;p=mailer.git diff --git a/inc/modules/sponsor.php b/inc/modules/sponsor.php index 3e39328c95..9fbac4d3b6 100644 --- a/inc/modules/sponsor.php +++ b/inc/modules/sponsor.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 - 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 * @@ -37,17 +36,17 @@ // Some security stuff... if (!defined('__SECURITY')) { - die(); + exit(); } elseif ((!isExtensionActive('sponsor'))) { - loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('sponsor')); + displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=sponsor%}'); return; } elseif (!isSponsor()) { // No sponsor! - addFatalMessage(__FILE__, __LINE__, getMessage('SPONSOR_ONLY_AREA_ENTERED')); + addFatalMessage(__FILE__, __LINE__, '{--SPONSOR_ONLY_AREA_ENTERED--}'); return; -} elseif (!isWhatSet()) { +} elseif ((!isWhatSet()) || (getWhat() == '')) { // Empty what value detected! - setWhat('welcome'); + reportBug(__FUNCTION__, __LINE__, 'what is empty.'); } // A valid sponsor login and we are allowed to enter this module so let's @@ -60,17 +59,11 @@ $content['menu'] = addSponsorMenu(getWhat()); // Generate right-side output $content['content'] = addSponsorContent(getWhat()); -// Load header template -$content['header'] = loadTemplate('sponsor_header', true); - -// Load footer template -$content['footer'] = loadTemplate('sponsor_footer', true); - // 'You are here' navigation -$content['you_are_here'] = addMenuDescription('sponsor', getWhat(), true); +$content['you_are_here'] = addYouAreHereLink('sponsor', getWhat(), TRUE); // Load main sponsor template -loadTemplate('sponsor_main', false, $content); +loadTemplate('sponsor_main', FALSE, $content); // [EOF] ?>