Parašė Dandžu· 2008 Lie. 6 18:07:20
#25
Man pačiam veikė su šituom kodu kai padariau jog per visu error redirectintų į index.php. Kišau į user info panel.
if (!isset($error)) $error = "";
if ($error == 1) {
echo "<b>".$locale['194']."</b><br><br>\n";
} elseif ($error == 2) {
echo "<b>".$locale['195']."</b><br><br>\n";
} elseif ($error == 3) {
echo "<b>".$locale['196']."</b><br><br>\n";
} else {
if (isset($_COOKIE['fusion_user'])) {
$cookie_vars = explode(".", $_COOKIE['fusion_user']);
$user_pass = (preg_match("/^[0-9a-z]{32}$/", $cookie_vars['1']) ? $cookie_vars['1'] : "");
$user_name = preg_replace(array("/\=/","/\#/","/\sOR\s/"), "", stripinput($user));
if (!dbcount("(user_id)", "users", "user_name='".$user_name."' AND user_password='".md5($user_pass)."'")) {
echo "<b>".$locale['196']."</b><br><br>\n";
} else {
$result = dbquery("DELETE FROM ".$db_prefix."online WHERE online_user='0' AND online_ip='".USER_IP."'");
echo "<b>".$locale['193'].$user."</b><br><br>\n";
}
}
}