File size: 5.46Kb
<?php
include("inc/func.inc.php");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
echo "<?xml version=\"1.0\"?>\n";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">\n";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
if(!db()){
echo "<head>";
echo "<title>eJaTd29.CoM - One Way Forward !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
echo getdberror();
echo "</body>";
echo "</html>";
exit();
}
echo "<head>";
echo "<title>eJaTd29.CoM - One Way Forward !</title>";
include("inc/css.inc.php");
echo "</head>";
echo "<body>";
$timer = mysql_fetch_array(mysql_query("SELECT timer FROM mx_users WHERE id='".getuid_hits($hits)."'"));
if($timer[0]!=0){
echo "<meta http-equiv=\"refresh\" content=\"$timer[0]; url=index.php?time=";
echo "".date("dmHis")."";
echo "&hits=$hits&show=$show\">";
}
echo popup($hits);
include("inc/announce.inc.php");
echo "<div class=\"box_ber\" align=\"center\">";
echo "<a href=\"index.php?show=search&hits=$hits\">Search</a> ~ ";
$umsge = getunreadpm2(getuid_hits($hits));
if($umsge>0)
{
echo "<a href=\"inbox.php?show=openfol&hits=$hits&view=auto&reply=1&type=1\">$umsge Notifications</a> ~ ";
}
$tmsg = getpmcount(getuid_hits($hits));
$umsg = getunreadpm(getuid_hits($hits));
if($umsg>0)
{
echo "<a href=\"inbox.php?show=openfol&hits=$hits&view=urd&reply=1&type=0\">$umsg New Inbox</a> ~ ";
}else{
echo "<a href=\"inbox.php?show=main&hits=$hits\">Inbox</a> ~ ";
}
$uid = getuid_hits($hits);
$mybuds = getnbuds($uid);
$onbuds = getonbuds($uid);
if($onbuds == '0')
{
echo "<a href=\"lists.php?show=buds&hits=$hits&who=$uid\">Friends</a> ~ ";
}else{
echo "<a href=\"lists.php?show=buds&hits=$hits&who=$uid\">$onbuds Friends</a> ~ ";
}
$reqs = getnreqs($uid);
if($reqs>0)
{
echo "<a href=\"lists.php?show=reqs&hits=$hits\">$reqs Requests</a> ~ ";
}
$chs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_clubs"));
echo "<a href=\"index.php?show=clmenu&hits=$hits\">$chs[0] Groups</a> ~ ";
$countpics = mysql_fetch_array(mysql_query("SELECT COUNT(id) FROM mx_usergallery"));
echo "<a href=\"usergallery.php?show=main&hits=$hits\">$countpics[0] Gallery</a> ~ ";
echo "<a href=\"index.php?show=cpanel&hits=$hits\">Settings</a>";
echo "</div>";
echo "<div class=\"box_cen\" align=\"left\">";
$chs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_chonline"));
echo "$chs[0] Chat Rooms<br/>";
echo "</div>";
echo "<div class=\"box_sub\" align=\"left\">";
echo "<i>Public Room</i><br/>";
$rooms = mysql_query("SELECT id, name, perms, mage, chposts FROM mx_rooms WHERE static='1' AND clubid='0'");
while ($room= mysql_fetch_array($rooms))
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_chonline WHERE rid='".$room[0]."'"));
echo "<a href=\"enterc.php?hits=$hits&rid=$room[0]\">$room[1]</a>($noi[0])<br/>";
}
echo "<br/><i>Users Room</i>";
$rooms = mysql_query("SELECT id, name, pass FROM mx_rooms WHERE static='0'");
$co=0;
while ($room= mysql_fetch_array($rooms))
{
$co++;
if(canenter($room[0], $hits))
{
$noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_chonline WHERE rid='".$room[0]."'"));
if($room[2]=="")
{
echo "<br/><a href=\"enterc.php?hits=$hits&rid=$room[0]\">".htmlspecialchars($room[1])."</a>($noi[0])";
}else{
echo "<br/>";
echo htmlspecialchars($room[1]);
echo "($noi[0])<br/>";
echo "<form action=\"enterc.php\" method=\"get\">";
echo "<input format=\"*x\" name=\"rpw\" maxlength=\"10\"/><br/>";
echo "<input type=\"hidden\" name=\"rid\" value=\"$room[0]\"/>";
echo "<input type=\"hidden\" name=\"hits\" value=\"$hits\"/>";
echo "<input type=\"submit\" value=\"Enter\"/></form>";
}
}
}
echo "<br/><a href=\"index.php?show=mkroom&hits=$hits\">Create Room</a>";
echo "</div>";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<a href=\"index.php?show=ustatus&hits=$hits&who=$uid\">Show Status</a>";
echo "</div>";
echo "<div class=\"box_ber\" align=\"center\">";
echo " ~ <a href=\"index.php?show=aonline&hits=$hits\">".getnumonline()." Online</a> ~ ";
echo "<a href=\"index.php?show=stats&hits=$hits\">Statistics</a> ~ ";
echo "<a href=\"more.php?show=main&hits=$hits\">More All Menu</a>";
echo " ~ <a href=\"index.php?show=logout&hits=$hits\">[Logout]</a>";
echo "</div>";
echo "<div class=\"box_cen\" align=\"center\">";
echo "<b>© 2011 - 2012 RemiXchaT.CoM</b></div>";
echo "<div class=\"footer\" align=\"center\">";
echo "<a href=\"index.php?show=main&hits=$hits\">Home</a> | <a href=\"lists.php?show=faqs&hits=$hits\">F.@.Q</a> | <a href=\"index.php?show=terms&hits=$hits\">T & C</a>";
echo "</div>";
echo footerweb($hits);
}
echo "</body>";
?>
</html>