View file wap/ravebabe.php

File size: 5.1Kb
<?php
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
echo "<?xml version=\"1.0\"?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<?php
 include("inc/func.inc.php");
 $bcon = db();

 if (!$bcon)
 {
        echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
 echo "</head>";
 echo "<body>";
    echo getdberror();
    echo "</body>";
    echo "</html>";
    exit();
 }
 $show = $_GET["show"];
 $hits = $_GET["hits"];
 $page = $_GET["page"];
 $who = $_GET["who"];
 $uid = getuid_hits($hits);
 cleardata();

 if(isipbanned($uip,$ubr))
    {
      if(!isshield(getuid_hits($hits)))
      {
      echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
 echo "</head>";
 echo "<body>";
  echo getipbanned($uip, $ubr);
  echo "</body>";
  echo "</html>";
  exit();
      }
    }

 if(($show != "") && ($show!="terms"))
{
    $uid = getuid_hits($hits);
    if((islogged($hits)==false)||($uid==0))
    {
                echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
 echo "</head>";
 echo "<body>";
 echo getsesexplog();
      echo "</body>";
      echo "</html>";
      exit();
    }
}

 if(isbanned($uid))
    {

          echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
 echo "</head>";
 echo "<body>";
      echo getbanned($uid);
      echo "</body>";
      echo "</html>";
      exit();
    }
        
$botid = "d960293f6e374371";
$input = $_POST["input"];
$custid=$_POST["custid"];
$hostname = "www.pandorabots.com";
$hostpath = "/pandora/talk-xml";
         echo "<head>";
  echo "<title>RemiXchaT.CoM - World Wide Chat Community And Downloads !</title>";
  include("inc/css.inc.php");
 echo "</head>";
 echo "<body>";
        addonline(getuid_sid($sid),"Chatting To Mrs.Wap29","");
    if ($input!="")
    {

        $sendData = "botid=".$botid."&input=".urlencode($input)."&custid=".$custid;
    	// Send the request to Pandorabot
    	$result = PostToHost($hostname, $hostpath, $sendData);
    	//TODO: Process the returned XML as an XML document instead of a big string.
    	// Use string manipulations to pull out the 'custid' and 'that' values.
    	$pos = strpos($result, "custid=\"");

    	// Extract the custid
    	if ($pos === false) {
    		$custid = "";
    	} else {
    		$pos += 8;
    		$endpos = strpos($result, "\"", $pos);
    		$custid = substr($result, $pos, $endpos - $pos);
    	}
    	// Extrat <that> - this is the reply from the Pandorabot
    	$pos = strpos($result, "<that>");
    	if ($pos === false) {
    		$reply = "";
    	} else {
    		$pos += 6;
    		$endpos = strpos($result, "</that>", $pos);
    		$reply = unhtmlspecialchars(substr($result, $pos, $endpos - $pos));
    	}
        //echo htmlspecialchars( $reply);
        $hers = $reply;
        $hers = parsemsg($hers);
             $input=htmlspecialchars($input);
             $nick = getnick_uid($uid);
             echo "<br/><b>$nick<br/></b>$input<br/>";
             echo "<b>Mrs.Wap29<br/></b>$hers<br/>";
  $ses4d = rand(10000, 100000);
        echo "<br/><input type=\"text\" name=\"input\" maxlength=\"120\" value=\"$input\"/><anchor><br/>";
        	echo "Chat!";
		echo "<go href=\"ravebabe.php?sid=$sid&amp;ran=$ses4d\" method=\"post\">";
		echo "<postfield name=\"input\" value=\"$(input)\"/>";
		echo "<postfield name=\"custid\" value=\"$custid\"/>";
		echo "</go>";
		echo "</anchor><br/><br/>";
    }else{
      echo "Hello<br/>Her Name Is Mrs.Wap29<br/>Have Fun<br/><br/>";
  $ses4d = rand(10000, 100000);
      echo "<input type=\"text\" name=\"input\" maxlength=\"120\" value=\"$input\"/><anchor><br/>";
		echo "Chat!";
		echo "<go href=\"ravebabe.php?sid=$sid&amp;ran=$ses4d\" method=\"post\">";
		echo "<postfield name=\"input\" value=\"$(input)\"/>";
		echo "<postfield name=\"custid\" value=\"$custid\"/>";
		echo "</go>";
		echo "</anchor>";
    }
    echo "<br/><br/><a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a><br/>";
include("wapv.php");
echo "</p>";
        echo "</body>";

function unhtmlspecialchars( $string )
{
  $string = str_replace ( '&amp;', '&', $string );
  $string = str_replace ( '&#039;', '\'', $string );
  $string = str_replace ( '&quot;', '"', $string );
  $string = str_replace ( '&lt;', '<', $string );
  $string = str_replace ( '&gt;', '>', $string );
  $string = str_replace ( '&uuml;', '?', $string );
  $string = str_replace ( '&Uuml;', '?', $string );
  $string = str_replace ( '&auml;', '?', $string );
  $string = str_replace ( '&Auml;', '?', $string );
  $string = str_replace ( '&ouml;', '?', $string );
  $string = str_replace ( '&Ouml;', '?', $string );
  return $string;
}

?>
</html>