]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-logout.php
Removed comment introduced by Profi-Concept, this comment should fine (in a much...
[mailer.git] / inc / modules / member / what-logout.php
index ff32b7155d2eb76102e9b9efcaefa7fe26b536a6..63ff14826d9e38412fe688a5c78f12f6dd06d4b9 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 10/16/2003 *
- * ===============                              Last change: 04/03/2004 *
+ * Mailer v0.2.1-FINAL                                Start: 10/16/2003 *
+ * ===================                          Last change: 04/03/2004 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : what-logout.php                                  *
  * $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                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -44,21 +43,21 @@ if (!defined('__SECURITY')) {
 }
 
 // Base URL for redirection (both cases)
-$URL = 'modules.php?module=index&amp;code=';
+$url = 'modules.php?module=index&amp;code=';
 
-if (destroyUserSession()) {
+if (destroyMemberSession()) {
        // Remove theme cookie as well
-       setTheme();
+       if (isExtensionActive('theme')) setTheme('');
 
        // Logout completed
-       $URL .= getCode('LOGOUT_DONE');
+       $url .= getCode('LOGOUT_DONE');
 } else {
        // Cannot logout! :-(
-       $URL .= getCode('LOGOUT_FAILED');
+       $url .= getCode('LOGOUT_FAILED');
 }
 
 // Load the URL
-redirectToUrl($URL);
+redirectToUrl($url);
 
 // [EOF]
 ?>