]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/sponsor/logout.php
Added logging for missing 'hash'
[mailer.git] / inc / modules / sponsor / logout.php
index cc3745ce1e1404d09d881e54de9460d6fee7b646..ba80c7581ad859e35d0a2d62bad36c6868f97877 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * For more information visit: http://www.mxchange.org                  *
+ * 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'))) {
-       addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('sponsor'));
+       addFatalMessage(__FILE__, __LINE__, '{%pipe,generateExtensionInactiveNotInstalledMessage=sponsor%}');
        return;
 } elseif (!isSponsor()) {
        // No sponsor!
@@ -50,9 +50,6 @@ if (!defined('__SECURITY')) {
 $url = 'modules.php?module=index&code=';
 
 if (destroySponsorSession()) {
-       // Remove theme cookie as well
-       if (isExtensionActive('theme')) setTheme('');
-
        // Logout completed
        $url .= getCode('LOGOUT_DONE');
 } else {