Вход Регистрация
Файл: alinar.ru/game.php
Строк: 55
<?
if (isset($_REQUEST) && isset($_REQUEST["login"]) && !empty($_REQUEST["login"]) && isset($_REQUEST["pass"]) && !empty($_REQUEST["pass"])):
    require (
$_SERVER['DOCUMENT_ROOT'].'/maintenance/dbconn.php');
    
$pers mysql_fetch_array(mysql_query("SELECT * FROM users WHERE user='".$_REQUEST["login"]."' and pass='".md5($_REQUEST["pass"])."'"));
    if (
is_array($pers) && !empty($pers["uid"])):
        
setcookie("UID",$pers["uid"]);
        
mysql_query ("UPDATE users SET online=1 WHERE uid=".$pers["uid"]);
    else:
        
header ("location: /?errno=1");
    endif;
else:
    
header ("location: /");
endif;
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>Игра</title>
</head>
<frameset rows="*,10,200,25,0">
    <frame src="main.php" frameborder="1" noresize="noresize" id="main_window" name="main_window" />
    <frame src="heig.php" frameborder="1" noresize="noresize" />
    <frameset cols="*,300">
           <frame src="chat.php" frameborder="1" noresize="noresize" id="chat_window" name="chat_window" />
        <frame src="list.php" frameborder="1" noresize="noresize" />
    </frameset>
    <frame src="buts.php" frameborder="1" noresize="noresize" scrolling="no" />
    <frame src="msg.php" style="display:none" name="msg_window" id="msg_window" />
</frameset><noframes></noframes>
</html>
Онлайн: 0
Реклама