- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
function check_user($l, $p, $sex)
{
include("config.php");
c_mysql();
$q=mysql_query("select * from users where NICK='$l'");
$q=mysql_fetch_array($q,MYSQL_ASSOC);
$qpass=$q["PASSWORD"];
$ban=$q["BAN"];
$id=$q["ID"];
if($qpass!="" and $qpass!=$p){ access_denied("не верный пароль");};
if($qpass!="" and $ban == 1){ access_denied("этот ник заблокирован");};
if($qpass!="" and $qpass==$p){ update_ip($id); build_frame($id, $sex);};
if($qpass==""){ new_user($l, $p);};
}
function access_denied($why)
{
header("location: lock.php?$why");
exit;
}
function title($S)
{
include("config.php");
echo "<title>$CHAT_NAME $S</title>
<meta http-equiv=\"Content-Type\" content=\"type/html; charset=windows-1251\"> ";
guest 17.12.2009 06:51 # 0
guest 17.12.2009 12:56 # 0
guest 17.12.2009 21:08 # 0
guest 05.03.2010 10:14 # 0