View file funin/in.php

File size: 3.26Kb
<?php
///////////////////////////////////////
session_start();
$_SESSION['csskey'] = "hello";

include "./pteam.php";
{
$t=sha1($_REQUEST["tcaptcha"]);

if($t==$_SESSION['captcha'])
{
$c1="0";
}
if($t != $_SESSION['captcha'])
{
$c1="1";
}
//header('Location: index.php');
}


if($issue!="0")
$online = mysql_fetch_array(mysql_query("SELECT COUNT(`id`) FROM chat_users WHERE ltime>'".intval(time()-$offline)."'"));
$TimeZone="0";
$New_Time = time() + ($TimeZone * 60 * 60);
$_time=date("H:i",$New_Time);
///////////////////////////////////////
header('Content-type:text/html; charset=utf-8');
echo '<?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">';
echo'<html>';
echo'<head>';
echo "<meta http-equiv=\"Pragma\" content=\"no-cache\" />";
echo "<meta http-equiv=\"no-cache\" content=\"no-cache\" />";
echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\" />";
echo"<title>FunzChat.IN | Enter $_time</title>";
echo'<link rel="stylesheet" href="style.css" type="text/css"/>';
echo"<link rel='shortcut icon' href='fevicon.ico' />";
echo'</head>';
echo'<body>';

echo"<div class='logo' align='center'><b>FunzChat.IN</b></div>";

if ($c1 == "1")
{
echo "<div class=errnotice>* Capcha Not Match.!</div>";
echo "<div class='body'><a href=\"index.php\">Re Enter</a></div>";
}
if ($c1 == "0")
{
if (preg_match("/[^A-Za-z0-9\!]/", $nick))
{
echo "<div class='errnotice'><b>Invalid Characters!</b></div>";
echo"<div class='body'>Please use A-Z/0-9 Characters in Nick Special Symbol not Allowed.</div>";
}
else {
if(strlen($nick)<3)
{
echo "<div class='errnotice'>Use minimum 4 charactor in nick</div>";
}
else
{
if (isset($_COOKIE["inactive"]))
{
echo" <div class='errnotice'><b>YOUR IP NAME BLOCKED FOR 6 DAYS DUE TO ABUSING AND SPAMING!!</b></div>";
}

else
{

if($nick!=="") {
$update = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM `".$px.$utable."` WHERE nick ='".$nick."'"));
if($update[0]!=="0") {
echo "<div class='errnotice'>Plz Take a Diffrent Nick</div>";
echo "<div class='body'><a href=\"index.php\">Re Enter</a></div>"; } else {
if($g=="m") { $gg=Male; } else { $gg=Female; }
if($sm=="1") { $smm=Yes; } else { $smm=No; }
@mysql_query("insert into `".$px.$utable."` values(0,'$nick','$sm','$g','$a','".time()."','$room','".getenv(HTTP_USER_AGENT)."','0','$c','".$_SERVER["REMOTE_ADDR"]."','$ci');");
echo "<div class='inmenubox'>Welcome To FunzChat.IN</div>";
echo"<div class='inbox'>";
echo "<div class='body2'><img src='enter.gif' alt='enter'><B>$nick</b></div>";
echo "<div class='body2'>Age: $a<img src='ok.gif' alt='ok'></div>";
echo "<div class='body2'>Gender: $gg<img src='ok.gif' alt='ok'></div>";
echo "<div class='body2'>Smilies: $smm<img src='ok.gif' alt='ok'></div>";
echo "<table><tr><td class='cp'><a href=\"./room.php?nick=$nick\"><b>Enter</b></a></td></tr></table>";
echo"</div>";

} } else { echo "<div class='errnotice'>Plz Enter Any Nick 1st.</div><div class='body'><a href=\"index.php\">Re Enter</a></div>"; }
}
}
}
}
echo"<div class='ptn'><a href='index.php'>&#187; Home</a></div>";
echo"<div class='pw' align='center'><b>&copy; FunzChat.IN &trade;</b></div>";

echo"</body>";
echo"</html>";
@mysql_close();