define('SERVER_URL', "http://www.mxchange.org");
// This current patch level
-define('CURR_SVN_REVISION', "416");
+define('CURR_SVN_REVISION', "417");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
* -------------------------------------------------------------------- *
* 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 *
// 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 (destroy_user_session()) {
// Remove theme cookie as well
set_session("mxchange_theme", "");
if (!IS_MEMBER()) {
// Then destroy the user id
destroy_user_session();
+
+ // Kill userid
+ $GLOBALS['userid'] = 0;
} // END - if
-}
+} // END - if
// Test session if index.php or modules.php is loaded
if ((basename($_SERVER['PHP_SELF']) == "index.php") || (basename($_SERVER['PHP_SELF']) == "modules.php") || (isBooleanConstantAndTrue('mxchange_installing'))) {
// Cookies rejected!
define('__COOKIES', false);
}
-}
+} // END - if
+
//* DEBUG: */ print("<pre>".print_r($_SESSION, true)."</pre>");
//
$username .= " ("._ADMIN_SHORT.")";
} // END - if
} else {
- // Hmmm, logged in and no valid cookies???
+ // Hmmm, logged in and no valid userid?
$username = "<I>"._UNKNOWN."</I>";
+
+ // Destroy session
+ destroy_user_session();
+
+ // Kill userid
+ $GLOBALS['userid'] = 0;
}
// Free memory
SQL_FREERESULT($result);
} elseif (IS_ADMIN()) {
+ // Admin is there
$username = _ADMIN;
} else {
// He's a guest, hello there... ;-)
-Hallo Administrator,
+{--HELLO_ADMIN--},
Das Mitglied $UID hat soeben Ref-Back für ein anderes Mitglied eingestellt.