View file z/enter.php

File size: 2.29Kb
<?php $t=microtime();
include('db.php');

$t=microtime();
session_name('sid');
session_start();

print '<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
		<meta name="generator" content="Adobe GoLive"/>
		<title>Знакомства</title>
	</head>

	<body bgcolor="#cccccc" text="black" link="red">
		<p align="left"><small>';

if (@$id and @$pass)
{
@$id=@$_GET['id'];
@$id=intval(@$id);
$pass=@$_GET['pass']; $pass=mysql_escape_string(htmlspecialchars($pass));
$mz="SELECT `id` `pass` from avtor WHERE `id`='$id' and `pass`='$pass'";
$result=mysql_query($mz);
$e=mysql_num_rows($result);

if ($e=='1')
{$_SESSION['enter']='yes';
$_SESSION['id']=$id;
$mz="select * from nast where id='$id'";
$result=mysql_query($mz);
$nast=mysql_fetch_array($result) or die ('Неверный запрос');
$_SESSION['kolmess']=$nast['kolmess']; 
$_SESSION['kolchel']=$nast['kolchel'];
$_SESSION['smail']=$nast['smail'];
$_SESSION['online']=$nast['online']; 
$_SESSION['smess']=$nast['smess'];
$_SESSION['lookanketa']=$nast['loolanketa'];
print 'На этой странице можно сделать закладку<br/>';
}
else print $_SESSION['enter']='no';;

}
if (@$_SESSION['enter']=='yes')
{
include('upline.php');
include('allcount.php');
$sess_id=session_id();
print "Ваш id=$_SESSION[id]<br/>";
print "<a href=\"online.php?sid=$sess_id\">Онлайн($onl)</a><br/>
<a href=\"kontakt.php?sid=$sess_id\">Контакты($countkontakt/$new)</a><br/>
<a href=\"search.php?sid=$sess_id\">Поиск анкет</a><br/>
<a href=\"privat.php?sid=$sess_id\">Приватные комнаты</a><br/>
<a href=\"enter.php?sid=$sess_id\">Обновить</a><br/>
<a href=\"ignor.php\">Игнор-лист</a><br/>
<a href=\"nast.php?sid=$sess_id\">Настройки</a><br/>
<a href=\"anket.php?sid=$sess_id\">Анкета</a><br/>
<a href=\"exit.php?sid=$sess_id\">Выход</a><br/>
";
}else 
{print "Неверный id или пароль<br/><a href=\"index.php\">На главную</a><br/>";
}
print microtime()-$t;
?></small></p></body></html>