]> git.mxchange.org Git - mailer.git/blobdiff - 0.2.1/inc/modules/member/what-logout.php
win32 to unix line delimiters changed
[mailer.git] / 0.2.1 / inc / modules / member / what-logout.php
index 459f69f5bf2854d3a54200c14cf46116b1ee3b53..de2afdfe2bf776c393e4332426befbdbf0f6cc21 100644 (file)
@@ -1,73 +1,73 @@
-<?php\r
-/************************************************************************\r
- * MXChange v0.2.1                                    Start: 10/16/2003 *\r
- * ===============                              Last change: 04/03/2004 *\r
- *                                                                      *\r
- * -------------------------------------------------------------------- *\r
- * File              : what-logout.php                                  *\r
- * -------------------------------------------------------------------- *\r
- * Short description : Logout from member's area                        *\r
- * -------------------------------------------------------------------- *\r
- * Kurzbeschreibung  : Aus dem Mitgliesbereich ausloggen                *\r
- * -------------------------------------------------------------------- *\r
- *         Logout_mod: new from 15.01.04 / Fixed Reset of Cooks         *\r
- * -------------------------------------------------------------------- *\r
- * Copyright (c) 2003 - 2008 by Roland Haeder                           *\r
- * For more information visit: http://www.mxchange.org                  *\r
- *                                                                      *\r
- * This program is free software; you can redistribute it and/or modify *\r
- * it under the terms of the GNU General Public License as published by *\r
- * the Free Software Foundation; either version 2 of the License, or    *\r
- * (at your option) any later version.                                  *\r
- *                                                                      *\r
- * This program is distributed in the hope that it will be useful,      *\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of       *\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *\r
- * GNU General Public License for more details.                         *\r
- *                                                                      *\r
- * You should have received a copy of the GNU General Public License    *\r
- * along with this program; if not, write to the Free Software          *\r
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *\r
- * MA  02110-1301  USA                                                  *\r
- ************************************************************************/\r
-\r
-// Some security stuff...\r
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))\r
-{\r
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";\r
-       require($INC);\r
-}\r
- elseif (!IS_LOGGED_IN())\r
-{\r
-       LOAD_URL(URL."/modules.php?module=index");\r
-}\r
-\r
-// Base URL for redirection (both cases)\r
-$URL = URL."/modules.php?module=index";\r
-\r
-// Patched by Robert Niedziela: cookies won't (?) be deleted on some newer IE versions\r
-\r
-// NEW: Fixed the Set of Cookies, you mus add right TimeSet, if you changed it in What_login.php! (eg. time()- cookieTime\r
-\r
-\r
-if (@setcookie("userid", "", time() - 3600, COOKIE_PATH) && @setcookie("u_hash", "", time() - 3600, COOKIE_PATH) && @setcookie("lifetime", "0", time() - 3600, COOKIE_PATH))\r
-{\r
-       // Remove theme cookie as well\r
-       @setcookie("mxchange_theme", "", time() - 3600, COOKIE_PATH);\r
-\r
-       // Logout completed\r
-       $URL .= "&msg=".CODE_LOGOUT_DONE;\r
-\r
-       // Destroy session here\r
-       @session_destroy();\r
-}\r
- else\r
-{\r
-       // Cannot logout! :-(\r
-       $URL .= "&msg=".CODE_LOGOUT_FAILED;\r
-}\r
-\r
-//\r
-LOAD_URL($URL);\r
-//\r
-?>\r
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 10/16/2003 *
+ * ===============                              Last change: 04/03/2004 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-logout.php                                  *
+ * -------------------------------------------------------------------- *
+ * Short description : Logout from member's area                        *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Aus dem Mitgliesbereich ausloggen                *
+ * -------------------------------------------------------------------- *
+ *         Logout_mod: new from 15.01.04 / Fixed Reset of Cooks         *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * For more information visit: http://www.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 *
+ * the Free Software Foundation; either version 2 of the License, or    *
+ * (at your option) any later version.                                  *
+ *                                                                      *
+ * This program is distributed in the hope that it will be useful,      *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
+ * GNU General Public License for more details.                         *
+ *                                                                      *
+ * You should have received a copy of the GNU General Public License    *
+ * along with this program; if not, write to the Free Software          *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *
+ * MA  02110-1301  USA                                                  *
+ ************************************************************************/
+
+// Some security stuff...
+if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       require($INC);
+}
+ elseif (!IS_LOGGED_IN())
+{
+       LOAD_URL(URL."/modules.php?module=index");
+}
+
+// Base URL for redirection (both cases)
+$URL = URL."/modules.php?module=index";
+
+// Patched by Robert Niedziela: cookies won't (?) be deleted on some newer IE versions
+
+// NEW: Fixed the Set of Cookies, you mus add right TimeSet, if you changed it in What_login.php! (eg. time()- cookieTime
+
+
+if (@setcookie("userid", "", time() - 3600, COOKIE_PATH) && @setcookie("u_hash", "", time() - 3600, COOKIE_PATH) && @setcookie("lifetime", "0", time() - 3600, COOKIE_PATH))
+{
+       // Remove theme cookie as well
+       @setcookie("mxchange_theme", "", time() - 3600, COOKIE_PATH);
+
+       // Logout completed
+       $URL .= "&msg=".CODE_LOGOUT_DONE;
+
+       // Destroy session here
+       @session_destroy();
+}
+ else
+{
+       // Cannot logout! :-(
+       $URL .= "&msg=".CODE_LOGOUT_FAILED;
+}
+
+//
+LOAD_URL($URL);
+//
+?>