|
16.07.2008, 14:39
omer_ed Try,open modules\Your_Account\index.php
find:
PHP код:
function logout() { global $prefix, $db, $user, $cookie, $redirect; cookiedecode($user); $r_uid = $cookie[0]; $r_username = $cookie[1]; setcookie("user", false); $db->sql_query("DELETE FROM ".$prefix."_session WHERE uname='$r_username'"); $db->sql_query("DELETE FROM ".$prefix."_bbsessions WHERE session_user_id='$r_uid'"); $user = ""; include("header.php"); OpenTable(); if (!empty($redirect)) { echo "<META HTTP-EQUIV=\"refresh\" content=\"3;URL=modules.php?name=$redirect\">"; } else { echo "<META HTTP-EQUIV=\"refresh\" content=\"3;URL=index.php\">"; } echo "<center><font class=\"option\"><b>"._YOUARELOGGEDOUT."</b></font></center>"; CloseTable(); include("footer.php"); }
and replace:
PHP код:
########### PHP-NUKE & VB hack modification ################################################## ### function logout() { global $prefix, $db, $user, $cookie; cookiedecode($user); $uses = $db->sql_fetchrow($db->sql_query("SELECT salt FROM " . FORUM_VB_PREFIX . "user WHERE userid='".$cookie[11]."' LIMIT 1")); include(FORUM_VB_DIR."/includes/functions.php"); Header("Location: ". FORUM_VB_DIR . "/login.php?do=logout&logouthash=".md5($cookie[11].$uses['salt'].COOKIE_SALT)); } ########### END ################################################## ################################
|
|