[= Back =]
"; }
else {
$pagename = 'Chat';
include('om.php');
include('newpm.php');
$view = $_REQUEST['view'];
if ($view=='chat') {chat();}
if ($view=='room') {room();}
if ($view=='insiders') {insiders();}
if ($view=='create') {create();}
;}?>
"; }}
echo "Chat Rooms:
";
$res = mysql_query("select * from masnun_chatrooms where rtype='public' order by rid");
while ($r=mysql_fetch_assoc($res)) {
$rid = $r['rid'];
$count = mysql_fetch_assoc(mysql_query("select count(*) c from masnun_chatonline where rid='$rid'"));
$cho = $count['c'];
echo "".$r['rname']." ($cho)
"; }
echo "
";
if (isset($_GET['expand'])) {
echo "Join Room
";
echo "Name:
";
echo "
";
echo "Password:
";
echo "
";
echo "[OK]
";
echo " Create Room
";
echo "Name:
";
echo "
";
echo "Password:
";
echo " Blank for global access
";
echo "
";
echo "";
echo "
[Create]
";
}
if (isset($_GET['expand'])) { echo "
LESS OPT
"; } else {
echo "
MORE OPT
"; }
echo "Home
";
}
?>
".$d['rname']." ";
$count = mysql_fetch_assoc(mysql_query("select count(*) c from masnun_chatonline where rid='$rid'"));
$cho = $count['c'];
echo "($cho)
";
if(isset($_POST['msg'])) {
$msg = $_POST['msg'];
$msg = htmlspecialchars(strip_tags(trim($msg)));
mysql_query("insert into masnun_chattexts (login,txt,rid) values ('$j21login','$msg','$rid')");
}
echo "
";
echo "(Send)
";
$rand = rand(1,10);
$randstr = substr(md5($j21sid.$mytime),0,$rand);
echo " [R]";
echo " (X)
";
$tr = mysql_query("select * from masnun_chattexts where rid='$rid' order by tid DESC limit 0,10");
while ($t = mysql_fetch_assoc($tr)) {
echo "".$t['login'].": ".format($t['txt'])."
\n";
}
} else { echo "You are not allowed here
"; }
}?>
Inside:
";
while ($r = mysql_fetch_assoc($res)) { echo $r['login'].", "; }
echo "
« Back
";
}?>
";
echo "Join Now :)
";
} else { echo "Chat room already exists
"; }
}
?>