View file wap/index2.php

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 "&amp;hits=$hits&amp;show=$show\">";
  }

  echo popup($hits);
  include("inc/announce.inc.php");

 echo "<div class=\"box_ber\" align=\"center\">";
  echo "<a href=\"index.php?show=search&amp;hits=$hits\">Search</a> ~ ";
  $umsge = getunreadpm2(getuid_hits($hits));

  if($umsge>0)
  {
  echo "<a href=\"inbox.php?show=openfol&amp;hits=$hits&amp;view=auto&amp;reply=1&amp;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&amp;hits=$hits&amp;view=urd&amp;reply=1&amp;type=0\">$umsg New Inbox</a> ~ ";
  }else{
  echo "<a href=\"inbox.php?show=main&amp;hits=$hits\">Inbox</a> ~ ";
 }
  $uid = getuid_hits($hits);
  $mybuds = getnbuds($uid);
  $onbuds = getonbuds($uid);
  if($onbuds == '0')
  {
  echo "<a href=\"lists.php?show=buds&amp;hits=$hits&amp;who=$uid\">Friends</a> ~ ";
  }else{
  echo "<a href=\"lists.php?show=buds&amp;hits=$hits&amp;who=$uid\">$onbuds Friends</a> ~ ";
  }

  $reqs = getnreqs($uid);
  if($reqs>0)
  {
    echo "<a href=\"lists.php?show=reqs&amp;hits=$hits\">$reqs Requests</a> ~ ";
  }
  $chs = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM mx_clubs"));

  echo "<a href=\"index.php?show=clmenu&amp;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&amp;hits=$hits\">$countpics[0] Gallery</a> ~ ";
  echo "<a href=\"index.php?show=cpanel&amp;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&amp;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&amp;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&amp;hits=$hits\">Create Room</a>";
 echo "</div>";




 echo "<div class=\"box_cen\" align=\"center\">";
  echo "<a href=\"index.php?show=ustatus&amp;hits=$hits&amp;who=$uid\">Show Status</a>";
 echo "</div>";

  echo "<div class=\"box_ber\" align=\"center\">";
  echo " ~ <a href=\"index.php?show=aonline&amp;hits=$hits\">".getnumonline()." Online</a> ~ ";
  echo "<a href=\"index.php?show=stats&amp;hits=$hits\">Statistics</a> ~ ";
  echo "<a href=\"more.php?show=main&amp;hits=$hits\">More All Menu</a>";
  echo " ~ <a href=\"index.php?show=logout&amp;hits=$hits\">[Logout]</a>";
  echo "</div>";
 echo "<div class=\"box_cen\" align=\"center\">";
 echo "<b>&#169; 2011 - 2012 RemiXchaT.CoM</b></div>";
 echo "<div class=\"footer\" align=\"center\">";
  echo "<a href=\"index.php?show=main&amp;hits=$hits\">Home</a> | <a href=\"lists.php?show=faqs&amp;hits=$hits\">F.@.Q</a> | <a href=\"index.php?show=terms&amp;hits=$hits\">T &amp; C</a>";
 echo "</div>";
echo footerweb($hits);
 }
 echo "</body>";
?>
</html>