View file retrivewap/chat.php

File size: 22.39Kb
<?php
include("config.php"); 
include("core.php"); 
include("xhtmlfunctions.php");
header("Content-type: text/html; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";
//8152
?>

<?php

connectdb();
$action=$_GET["action"];
$id=$_GET["id"];
$sid = $_GET["sid"];
$rid=$_GET["rid"];
$rpw=$_GET["rpw"];
$uid = getuid_sid($sid);
  
 $uexist = isuser($uid);

if((islogged($sid)==false)||!$uexist)
    {
      $pstyle = gettheme($sid);
      echo xhtmlheadchat("$stitle",$pstyle);
      echo "<p align=\"center\">";
      echo "You are not logged in<br/>";
      echo "Or Your session has been expired<br/><br/>";
      echo "<a href=\"index.php\">Login</a>";
      echo "</p>";
  echo xhtmlfoot();
      exit();
    }
    
	
	
	
if(isbanned($uid))
    {
      $pstyle = gettheme($sid);
      echo xhtmlheadchat("$stitle",$pstyle);
      echo "<p align=\"center\">";
      echo "<img src=\"images/notok.gif\" alt=\"x\"/><br/>";
      echo "You are <b>Banned</b><br/>";
      $banto = mysql_fetch_array(mysql_query("SELECT timeto FROM ibwf_metpenaltiespl WHERE uid='".$uid."' AND penalty='1'"));
	  $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'"));
	  
      $remain = $banto[0]- (time() - $timeadjust) ;
      $rmsg = gettimemsg($remain);
      echo "Time to finish your penalty: $rmsg<br/><br/>";
	  echo "Ban Reason: $banres[0]";
      //echo "<a href=\"index.php\">Login</a>";
      echo "</p>";
  echo xhtmlfoot();
      exit();
    }
    $isroom = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_rooms WHERE id='".$rid."'"));
    if($isroom[0]==0)
    {
      $pstyle = gettheme($sid);
      echo xhtmlheadchat("$stitle",$pstyle);
      echo "<p align=\"center\">";
      echo "This room doesn't exist anymore<br/>";
      echo ":P see in another room<br/><br/>";
      echo "<a href=\"index.php?action=chat&amp;sid=$sid\">Chatrooms</a>";
      echo "</p>";
      echo xhtmlfoot();
      exit();
    }
    $passworded = mysql_fetch_array(mysql_query("SELECT pass FROM ibwf_rooms WHERE id='".$rid."'"));
    if($passworded[0]!="")
    {
      if($rpw!=$passworded[0])
      {
      $pstyle = gettheme($sid);
      echo xhtmlheadchat("$stitle",$pstyle);
      echo "<p align=\"center\">";
      echo "You can't enter this room<br/>";
      echo ":P stay away<br/><br/>";
      echo "<a href=\"index.php?action=chat&amp;sid=$sid\">Chatrooms</a>";
      echo "</p>";
      echo xhtmlfoot();
      exit();
      }
    }
    if(!canenter($rid,$sid))
    {
      $pstyle = gettheme($sid);
      echo xhtmlheadchat("$stitle",$pstyle);
      echo "<p align=\"center\">";
      echo "You can't enter this room<br/>";
      echo ":P stay away<br/><br/>";
      echo "<a href=\"index.php?action=chat&amp;sid=$sid\">Chatrooms</a>";
      echo "</p>";
      echo xhtmlfoot();
      exit();
    }
    addtochat($uid, $rid);
        //This Chat Script is by  Far'oun
        //raed_mfs@yahoo.com
        //want to see main menu...
        $timeto = 500;
            $timenw = (time() - $timeadjust);
            $timeout = $timenw-$timeto;
            $deleted = mysql_query("DELETE FROM ibwf_chat WHERE timesent<".$timeout."");
            
        if ($action=="")
                         {
          
        $pstyle = gettheme($sid);
        echo xhtmlheadchat1("$stitle Chat",$pstyle,$rid,$sid);
        
         //start of main card
         
        echo "<timer value=\"500\"/><p align=\"center\">";
        addonline($uid,"Chatrooms","");
        echo "<small>
        <a href=\"chat.php?action=say&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">Options</a> / ";
        $time = date('dmHis');
        echo "<a href=\"chat.php?time=$time&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">Refresh</a>";

        $unreadinbox=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE unread='1' AND touid='".$uid."'"));
        $pmtotl=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".$uid."'"));
        $unrd="(".$unreadinbox[0]."/".$pmtotl[0].")";
        if ($unreadinbox[0]>0)
        {
        echo "<br/><a href=\"inbox.php?action=main&amp;sid=$sid\">Inbox$unrd</a>";
      }
      echo "</small></p>";
        $message=$_POST["message"];
        $who = $_POST["who"];
        $rinfo = mysql_fetch_array(mysql_query("SELECT censord, freaky FROM ibwf_rooms WHERE id='".$rid."'"));
        if (trim($message) != "")
        {
          $nosm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chat WHERE msgtext='".$message."'"));
          if($nosm[0]==0){
            
			
			
			$validated = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE id='".$uid."'  AND validated='0'"));
    if(($validated[0]>0)&&(validation()))
    {
echo "<img src=\"images/notok.gif\" alt=\"x\"/><br/>";
	echo "ur chat msg wont dispaly here,coz <b><a href=\"pmo.php?action=val&amp;sid=$sid\">U r not validated yet!</a></b>";

		  }else{
            $chatok = mysql_query("INSERT INTO ibwf_chat SET  chatter='".$uid."', who='".$who."', timesent='".(time() - $timeadjust)."', msgtext='".$message."', rid='".$rid."';");
            $lstmsg = mysql_query("UPDATE ibwf_rooms SET lastmsg='".(time() - $timeadjust)."' WHERE id='".$rid."'");
            
            $hehe=mysql_fetch_array(mysql_query("SELECT chmsgs FROM ibwf_users WHERE id='".$uid."'"));
            $totl = $hehe[0]+1;
            $msgst= mysql_query("UPDATE ibwf_users SET chmsgs='".$totl."' WHERE id='".$uid."'");
			
					
	if(!cancre())
{
$hehee=mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
            $totll = $hehee[0]+1;
            $msgst= mysql_query("UPDATE ibwf_users SET plusses='".$totll."' WHERE id='".$uid."'");
}

			
			
			}
			
			
			
			
            if($rinfo[1]==2)
            {
              //oh damn i gotta post this message to ravebabe :(
              //will it succeed?
              $botid = "f2fa743c8e36fa8f";
              $hostname = "www.pandorabots.com";
              $hostpath = "/pandora/talk-xml";
              $sendData = "botid=".$botid."&input=".urlencode($message)."&custid=".$custid;
              
              $result = PostToHost($hostname, $hostpath, $sendData);
              
              $pos = strpos($result, "custid=\"");
              $pos = strpos($result, "<that>");
    	if ($pos === false) {
    		$reply = "";
    	} else {
    		$pos += 6;
    		$endpos = strpos($result, "</that>", $pos);
    		$reply = unhtmlspecialchars2(substr($result, $pos, $endpos - $pos));
    		$reply = mysql_escape_string($reply);
    	}
    	
    	$chatok = mysql_query("INSERT INTO ibwf_chat SET  chatter='9', who='', timesent='".(time() - $timeadjust)."', msgtext='".$reply." @".getnick_uid($uid)."', rid='".$rid."';");
            }
          }
          $message = "";
            }
            
            echo "<p>";
            echo "<small>";
            $chats = mysql_query("SELECT chatter, who, timesent, msgtext, exposed FROM ibwf_chat WHERE rid='".$rid."' ORDER BY timesent DESC, id DESC");
            $counter=0;

            while($chat = mysql_fetch_array($chats))
            {
                $canc = true;
               
                
                if($counter<15)
                {
                  if(istrashed($chat[0])){
                        if($uid!=$chat[0])
                        {
                          $canc = false;
                        }
                  }
                //////good
                if(isignored($chat[0],$uid)){
                  $canc = false;
                }
                //////////good
                if($chat[0]!=$uid)
                {
                  if($chat[1]!=0)
                  {
                    if($chat[1]!=$uid)
                    {
                      $canc = false;
                    }
                  }
                }
                if($chat[4]=='1' && ismod($uid))
                {
                  $canc = true;
                }
                if($canc)
                {
                   $cmid = mysql_fetch_array(mysql_query("SELECT  chmood FROM ibwf_users WHERE id='".$chat[0]."'"));
                   
                   $iml = "";
                if(($cmid[0]!=0))
                {
                  $mlnk = mysql_fetch_array(mysql_query("SELECT img, text FROM ibwf_moods WHERE id='".$cmid[0]."'"));
                  $iml = "<img src=\"$mlnk[0]\" alt=\"$mlnk[1]\"/>";

                }
                  $chnick = getnick_uid($chat[0]);
                    $optlink = $iml.$chnick;
                  if(($chat[1]!=0)&&($chat[0]==$uid))
                  {
                    ///out
                    $iml = "<img src=\"moods/out.gif\" alt=\"!\"/>";
                    $chnick = getnick_uid($chat[1]);
                    $optlink = $iml."PM to ".$chnick;
                  }
                  if($chat[1]==$uid)
                  {
                    ///out
                    $iml = "<img src=\"moods/in.gif\" alt=\"!\"/>";
                    $chnick = getnick_uid($chat[0]);
                    $optlink = $iml."PM by ".$chnick;
                  }
                    if($chat[4]=='1')
                  {
                    ///out
                    $iml = "<img src=\"moods/point.gif\" alt=\"!\"/>";
                    $chnick = getnick_uid($chat[0]);
                    $tonick = getnick_uid($chat[1]);
                    $optlink = "$iml by ".$chnick." to ".$tonick;
                  }
                  
                  $ds= date("H.i.s", $chat[2]);
                  $text = parsepm($chat[3], $sid);
                  $nos = substr_count($text,"<img src=");
                  if(isspam($text))
                  {
                    $chnick = getnick_uid($chat[0]);
                    echo "<b>Chat system:&#187;<i>*oi! $chnick, no spamming*</i></b><br/>";
                  }
				  else if(isenta($text))
                  {
                    $chnick = getnick_uid($chat[0]);
                    echo "<font color=\"red\"><b><i>*$chnick enterd*</font></i></b></font><br/>";
                  }
                  else if($nos>2){
                    $chnick = getnick_uid($chat[0]);
                    echo "<b>Chat system:&#187;<i>*hey! $chnick, you can only use 2 smilies per msg*</i></b><br/>";
                  }else{
                    $sres = substr($chat[3],0,3);
                    
                    if($sres == "/aw")
                    {
                        $chco = strlen($chat[3]);
                        $goto = $chco - 3;
                        $rest = substr($chat[3],3,$goto);
                        $tosay = parsepm($rest, $sid);
                        
                        echo "<b><i>*$chnick $tosay*</i></b><br/>";
                    }else{
                      
                      $tosay = parsepm($chat[3], $sid);
                      
                      if($rinfo[0]==1)
                      {
                         
                         $tosay = str_replace("shit","*dont swear*",$tosay);
                         $tosay = str_replace("dick","*ooo! you dirty person*",$tosay);
                         $tosay = str_replace("pussy","*angel flaps*",$tosay);
                         $tosay = str_replace("cock","*daddy stick*",$tosay);
                         $tosay = str_replace("can i be a mod","*im sniffing staffs ass*",$tosay);
						 $tosay = str_replace("can i be admin","*im a big ass kisser*",$tosay);
						 
						 $tosay = str_replace("ginger","*the cute arsonist*",$tosay);
						 $tosay = str_replace("neon","*the cute but evil princess*",$tosay);
						 $tosay = str_replace("kaas","*the cheese boy*",$tosay);
						 $tosay = str_replace("slut","*s+m freak*",$tosay);
						 $tosay = str_replace("kahla","*lyrical lizard*",$tosay);
						 
						 
						 
						 					
					   }
                      
                      if($rinfo[1]==1)
                      {
                          $tosay = htmlspecialchars($chat[3]);
                          $tosay = strrev($tosay);
                        }
                  echo "<a href=\"chat.php?action=say2&amp;sid=$sid&amp;who=$chat[0]&amp;rid=$rid&amp;rpw=$rpw\">$optlink</a>&#187;";
                  echo $tosay."<br/>";
                  }
                }
               
                  $counter++;
                }
                }
            }
            echo "</small>";
            echo "</p>";
        
        echo "<p align=\"center\">";
            echo "<form action=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw\" method=\"post\">";
            echo "<br/><br/>Message:<input name=\"message\" type=\"text\" value=\"\" maxlength=\"255\"/><br/>";
            echo "<input type=\"submit\" value=\"Say\"/>";
            echo "</form>";
            echo "</p>";
            echo "<p align=\"center\">";
        $chatters=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline where rid='".$rid."'"));
        echo "<br/><a href=\"chat.php?action=inside&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">Who's Inside($chatters[0])</a><br/>";
        echo "<a href=\"index.php?action=chat&amp;sid=$sid\">Chatrooms</a><br/>";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\">Home</a></p>";
        
      echo xhtmlfoot();
}
if($rid==8)
        { 

$tries2 = mysql_fetch_array(mysql_query("SELECT cards FROM ibwf_spincard"));
$mama2= $tries2[0];
if($mama2>0)
{
if($spin==2)
        {

  $tm = time();
  $lastpm = mysql_fetch_array(mysql_query("SELECT MAX(spintime) FROM ibwf_users WHERE id='".$uid."'"));
  $pmfl = $lastpm[0]+15;
  if($pmfl<$tm)
  {

     }else{

$rema = $pmfl - $tm;
echo "Chat system:&#187;*you can spin cards again after <b>$rema</b> seconds.*<br/>";
}
if(!spinned($uid))
    {
$rpgd = mysql_query("SELECT id, no FROM ibwf_getcards ORDER by RAND() LIMIT 1");
while($rpgds=mysql_fetch_array($rpgd))
  {

$cards =$rpgds[1];
}
if(getplusses(getuid_sid($sid))<10)
    {
        echo "You need 10 plusses in order to spin the wheel!";
    }else{
mysql_query("UPDATE ibwf_users SET cards=cards+'$cards' WHERE id='".$uid."'");
mysql_query("UPDATE ibwf_spincard SET cards=cards-'$cards'");
mysql_query("UPDATE ibwf_users SET plusses=plusses-'1' WHERE id='".$uid."'");
mysql_query("UPDATE ibwf_users SET spintime='".time()."' WHERE id='".$uid."'");
mysql_query("UPDATE ibwf_users SET spinned='1' WHERE id='".$uid."'");
$mycards = mysql_fetch_array(mysql_query("SELECT cards FROM ibwf_users WHERE id='".$uid."'"));
echo "Chat system:&#187;*you got $cards card(s) for that spin wait after 20 sec to spin cards again. You have $mycards[0] total of cards.*<br/>";
  }

}
}else{

  $tm = time();
  $lastpm = mysql_fetch_array(mysql_query("SELECT MAX(spintime) FROM ibwf_users WHERE id='".$uid."'"));
  $pmfl = $lastpm[0]+20;
  if($pmfl<$tm)
  {
mysql_query("UPDATE ibwf_users SET spinned='0' WHERE id='".$uid."'");
$cinfo = mysql_fetch_array(mysql_query("SELECT cards from ibwf_spincard"));
echo "<a href=\"index.php?action=viewuser&amp;who=1&amp;sid=$sid\">system</a>&#187;There are $cinfo[0] remaining cards. Click <a href=\"chat.php?spin=1&amp;sid=$sid&amp;rid=$rid\">spin the wheel</a> spin cards to get some cards. Each spin will cost 1 plusses, if you got the highest number of cards after the remaining cards goes to zero, you will get the 1000 plusses prize more info for game info.<br/>";
     }else{

$rema = $pmfl - $tm;
echo "Chat system:&#187;*you can spin cards again after <b>$rema</b> seconds.*<br/>";
}
}
}else{
$rpgd = mysql_query("SELECT id, cards FROM ibwf_users ORDER by cards DESC LIMIT 1");
while($rpgds=mysql_fetch_array($rpgd))
  {
$winner =$rpgds[0];
$winner2 =$rpgds[1];
}
$unick2 = getnick_uid($winner);
mysql_query("UPDATE ibwf_spincard SET cards='500'");
mysql_query("INSERT INTO ibwf_chat SET  chatter='133', timesent='".time()."', msgtext='$unick2 got $winner2 cards, and the 1000 plusses prize', perm='".$perm[0]."', rid='".$rid."';");
mysql_query("UPDATE ibwf_users SET plusses=plusses+'1000' WHERE id='".$winner."'");
mysql_query("UPDATE ibwf_users SET cards='0'");
mysql_query("UPDATE ibwf_users SET spintime='0'");
}
}
      if($cancel==1)
        {
mysql_query("UPDATE ibwf_private SET unread='0' WHERE id='".$idn."'");
}
$unreadinbox=mysql_fetch_array(mysql_query("SELECT byuid, text, id FROM ibwf_private WHERE unread='1' AND touid='".$uid."'"));
       $pmtotl=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".$uid."'"));
       $unrd="(".$unreadinbox[0]."/".$pmtotl[0].")";
        if ($unreadinbox[0]>0)
        {
$text = parsepm($unreadinbox[1], $sid);
$by = getnick_uid($unreadinbox[0]);
echo "<b>$by: </b>$text<br/>";
  echo "REPLY:<br/>";
echo "<form action=\"chat.php?action=sendpm&amp;who=$unreadinbox[0]&amp;sid=$sid&amp;rid=$rid\" method=\"post\">";
  echo "<input name=\"pmtext\" maxlength=\"500\"/><br/>";
  echo "<input type=\"submit\" value=\"Send\"/>";
  echo "</form>";
echo "<br/><a href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw&amp;cancel=1&amp;idn=$unreadinbox[2]&amp;time=$time\">Cancel</a>";
   }
/////////////////////////////////////////////////////SAY
        else if ($action=="say")                   {
        $pstyle = gettheme($sid);
      echo xhtmlheadchat("$stitle",$pstyle);
        
        addonline($uid,"Writing Chat Message","");
       
 			echo "<p align=\"center\">";
        
            echo "<form action=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw\" method=\"post\">";
            echo "Message:<input name=\"message\" type=\"text\" value=\"\" maxlength=\"255\"/><br/>";
            echo "<input type=\"submit\" value=\"Say\"/>";
            echo "</form>";
            

            
            echo "<small><a href=\"lists.php?action=chmood&amp;sid=$sid&amp;page=1\">&#187;Chat mood</a></small><br/>";
            echo "<small><a href=\"chat.php?action=inside&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">&#187;Who's Inside</a></small><br/>";
            echo "<small><a href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">&#171;Chatroom</a></small></p>";
        //end
        
        echo "<p align=\"center\"><a href=\"index.php?action=chat&amp;sid=$sid\"><img src=\"images/chat.gif\" alt=\"*\"/>Chatrooms</a><br/>";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a></p>";

      echo xhtmlfoot();
                                               }
        ////////////////////////////////////////////
    /////////////////////////////////////////////////////SAY2
        else if ($action=="say2") 
                          {
        $pstyle = gettheme($sid);
        echo xhtmlheadchat("$stitle",$pstyle);
        echo "<p align=\"center\">";
		$who=$_GET["who"];
        $unick = getnick_uid($who);
        
        echo "<b>Private to $unick</b>";
        echo "</p>";
        
        addonline($uid,"Writing chat message","");
        
            echo "<form action=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw\" method=\"post\">";
            echo "<p>Message:<input name=\"message\" type=\"text\" value=\" \" maxlength=\"255\"/><br/>";
            echo "<input type=\"submit\" value=\"Say\"/>";
            echo "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
            echo "</form>";
            
            echo "<br/>";
            echo "<small><a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$who\">&#187;View $unick's Profile</a></small><br/>";
            echo "<small><a href=\"chat.php?action=expose&amp;sid=$sid&amp;who=$who&amp;rid=$rid&amp;rpw=$rpw\">&#187;Expose $unick</a></small><br/>";
            
            echo "<small><a href=\"chat.php?action=inside&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">&#187;Who's Inside</a></small><br/>";
            echo "<small><a href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">&#171;Chatroom</a></small></p>";
        //end
        
        echo "<p align=\"center\"><a href=\"index.php?action=chat&amp;sid=$sid\"><img src=\"images/chat.gif\" alt=\"*\"/>Chatrooms</a><br/>";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a></p>";

      echo xhtmlfoot();
                                               }
        ////////////////////////////////////////////
        //////////////////////////////inside//////////
        else if ($action=="inside")           {
          
          addonline($uid,"Chat inside list","");
        $pstyle = gettheme($sid);
      echo xhtmlheadchat("Inside List",$pstyle);
        echo "<p align=\"center\"><br/>";
        $inside=mysql_query("SELECT DISTINCT * FROM ibwf_chonline WHERE rid='".$rid."' and uid IS NOT NULL");
        
        while($ins=mysql_fetch_array($inside))
        {
          $unick = getnick_uid($ins[1]);
          $userl = "<small><a href=\"chat.php?action=say2&amp;sid=$sid&amp;who=$ins[1]&amp;rid=$rid&amp;rpw=$rpw\">$unick</a>, </small>";
          echo "$userl";
        }
        echo "<br/><br/>";
        echo "<a href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">&#171;Chatroom</a><br/>";
        echo "<br/><a href=\"index.php?action=chat&amp;sid=$sid\"><img src=\"images/chat.gif\" alt=\"*\"/>Chatrooms</a><br/>";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a></p>";
        
      echo xhtmlfoot();
                                           }
        else if ($action=="expose")           {

        addonline($uid,"Chat inside list","");
        echo "<card id=\"main\" title=\"Inside list\">";
        echo "<p align=\"center\"><br/>";
        mysql_query("UPDATE ibwf_chat SET exposed='1' WHERE chatter='".$who."' AND who='".$uid."'");
        $unick = getnick_uid($who);
        echo "$unick messages to you are exposed to mods";
        echo "<br/><br/>";
        echo "<a href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">&#171;Chatroom</a><br/>";
        echo "<br/><a href=\"index.php?action=chat&amp;sid=$sid\"><img src=\"images/chat.gif\" alt=\"*\"/>Chatrooms</a><br/>";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a></p>";

      echo xhtmlfoot();
                                           }
        
        
?>