X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fsponsor.php;h=108f1847a9f7d79d4d6c0406b5416bfacb8ca8f3;hp=11e57c60d26bdb083bceeb1ad87c3c21773751ef;hb=63f159414369b5ea19a8ca75d8cd8033c45d8341;hpb=c8d76610eb94093d4eed4fcd8a6cb72e74c8f6d8 diff --git a/inc/modules/sponsor.php b/inc/modules/sponsor.php index 11e57c60d2..108f1847a9 100644 --- a/inc/modules/sponsor.php +++ b/inc/modules/sponsor.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009, 2010 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2012 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 * @@ -36,9 +36,9 @@ // 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! @@ -46,7 +46,7 @@ if (!defined('__SECURITY')) { return; } 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 @@ -66,7 +66,7 @@ $content['header'] = loadTemplate('sponsor_header', true); $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);