]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-logout.php
Fix #1002
[mailer.git] / inc / modules / member / what-logout.php
index d16554c595308dd84941c699373b2ddc43fdeb7c..88abed7a7a62a4995131fbe7f2793d68596e0f93 100644 (file)
  * $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!!!!!!            *
+ * @TODO Rewrite the code to a filter                                   *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -45,21 +44,23 @@ if (!defined('__SECURITY')) {
 }
 
 // Base URL for redirection (both cases)
-$URL = 'modules.php?module=index&code=';
+$url = 'modules.php?module=index&code=';
 
 if (destroyMemberSession()) {
        // Remove theme cookie as well
-       if (isExtensionActive('theme')) setTheme('');
+       if (isExtensionActive('theme')) {
+               setTheme('');
+       } // END - if
 
        // 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]
 ?>