wap.net.ph

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    heres the chat script
    PHP Code:
    <?php
    include("config.php");
    include(
    "core.php");
    //session_start();
    //header("Content-type: text/html; charset=ISO-8859-1");
    echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
    echo 
    "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
    echo 
    "<html xmlns=\"http://www.w3.org/1999/xhtml\">";

    echo 
    "<head><title>pinoykindat.net</title>";
          echo 
    "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />";
    $rid=$_GET["rid"];
    echo 
    "<meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" />

    <meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>
    <meta name=\"description\" content=\"pinoykindat.net:)\"> 
    <meta name=\"keywords\" content=\"free, community, forums, chat, wap, communicate\"></head>"
    ;


    echo 
    "<body>";

    connectdb();
    $action=$_GET["action"];
    $id=$_GET["id"];
    $sid $_GET["sid"];
    $rid=$_GET["rid"];
    $rpw=$_GET["rpw"];
    $chat=$_GET["chat"];
    $who=$_GET["who"];
    $unick=$_GET["unick"];
    $uid getuid_sid($sid);
     
    $spin=$_GET["spin"];
      
    $idn=$_GET["idn"];
    $cancel=$_GET["cancel"];
     
    $uexist isuser($uid);
    $time date('dmHis');
    if((
    islogged($sid)==false)||!$uexist)
        {
          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 
    "</body>";
          echo 
    "</html>";
          exit();
        }
        
    if(
    isbanned($uid))
        {
          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_penalties WHERE uid='".$uid."' AND penalty='1'"));
          
    $remain $banto[0]- time();
          
    $rmsg gettimemsg($remain);
          echo 
    "Time to finish your penalty: $rmsg<br/><br/>";
          
    //echo "<a href=\"index.php\">Login</a>";
          
    echo "</p>";
          echo 
    "</body>";
          echo 
    "</html>";
          exit();
        }
      
    $isroom mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_rooms WHERE id='".$rid."'"));
        if(
    $isroom[0]==0)
        {
     
          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&amp;type=send&amp;browse?start\">Chatrooms</a>";
          echo 
    "</p>";
          echo 
    "</body>";
          echo 
    "</html>";
          exit();
        }
        
    $passworded mysql_fetch_array(mysql_query("SELECT pass FROM ibwf_rooms WHERE id='".$rid."'"));
        if(
    $passworded[0]!="")
        {
          if(
    $rpw!=$passworded[0])
          {

          echo 
    "<p align=\"center\">";
          echo 
    "You can't enter this room<br/>";
          echo 
    "Stay away<br/><br/>";
          echo 
    "<a href=\"index.php?action=chat&amp;sid=$sid&amp;type=send&amp;browse?start\">Chatrooms</a>";
          echo 
    "</p>";
          echo 
    "</body>";
          echo 
    "</html>";
          exit();
          }
        }
          if(!
    canenter($rid,$sid))
        {
          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 
    "</body>";
          echo 
    "</html>";
          exit();
        }
      if(!
    inside($uid$rid))
        {
     if(!
    iscowner($uid$rid))
        {
    if(
    locked($uid$rid))
        {
          echo 
    "<p align=\"center\">";
          echo 
    "This room is locked!<br/>";
          echo 
    ":P Stay outside<br/><br/>";
          echo 
    "<a href=\"index.php?action=chat&amp;sid=$sid&amp;type=send&amp;browse?start\">Chatrooms</a>";
          echo 
    "</p>";
          echo 
    "</body>";
          echo 
    "</html>";
          exit();
        }
    }
    }
     if(
    kick($uid$rid))
        {

          echo 
    "<p align=\"center\">";
          echo 
    "You have been kicked from this room hekhek!<br/>";
          echo 
    ":P Stay outside<br/><br/>";
          echo 
    "<a href=\"index.php?action=chat&amp;sid=$sid&amp;type=send&amp;browse?start\">Chatrooms</a>";
          echo 
    "</p>";
          echo 
    "</body>";
          echo 
    "</html>";
          exit();
        }
     
        
    addtochat($uid$rid);
            
    //This Chat Script is by Ra'ed Far'oun
            //raed_mfs@yahoo.com
            //want to see main menu...
            
    $timeto 300;
                
    $timenw time();
                
    $timeout $timenw-$timeto;
                
    $deleted mysql_query("DELETE FROM ibwf_chat WHERE timesent<".$timeout."");           
            
            if (
    $action=="")
                             {
              
                    
                    
             
    //start of main card
             
    echo "<meta http-equiv=\"refresh\" content=\"20; URL= chat.php?action=$action&amp;sid=$sid&amp;rid=$rid\"/>";
            echo 
    "<timer value=\"200\"/><p align=\"left\">";
              
    addonline($uid,"Chatrooms","");
           
    addplace($uid,"chat.php?rid=$rid&amp;rpw=$rpw","");
      echo 
    "<small>
            <a href=\"chat.php?action=say&amp;sid=
    $sid&amp;rid=$rid&amp;rpw=$rpw\">Write</a><br/>";
            echo 
    "<a href=\"chat.php?time=";
            echo 
    date('dmHis');
            echo 
    "&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw";
            echo 
    "\">Refresh</a><br/>";
         if(
    iscowner($uid$rid))
                 {        
         if(!
    locked($uid$rid))
        {
         
          echo 
    "<a href=\"genproc.php?action=lock&amp;sid=$sid&amp;rid=$rid&amp;browse?start\">Lock</a><br/>";
        }else{
            echo 
    "<a href=\"genproc.php?action=unlock&amp;sid=$sid&amp;rid=$rid&amp;browse?start\">Unlock</a><br/>";
        }
    }
    if(
    have())
        {
    if(
    $rid==804)
            {

    $range_result mysql_query" SELECT MAX(`id`) AS max_id , MIN(`id`) AS min_id FROM `ibwf_quiz` ");
    $range_row mysql_fetch_object$range_result ); 
    $random mt_rand$range_row->min_id $range_row->max_id );
    $result mysql_query" SELECT question, answer, id FROM `ibwf_quiz` WHERE `id` >= $random LIMIT 0,1 ");
    while(
    $rpgds=mysql_fetch_array($result))
      {

     
    $winner =$rpgds[0];
    $winner2 =$rpgds[1];
    }

     
    $tm time();
     
    $time mysql_fetch_array(mysql_query("SELECT MAX(displaytime) FROM ibwf_quizrooms ORDER by id LIMIT 1"));
      
    $pmfl $time[0]+60;
      if(
    $pmfl<$tm)
      {
       
    mysql_query("INSERT INTO ibwf_chat SET  chatter='133', who='', timesent='".time()."', msgtext='Nobody got the correct answer. Next question.', rid='".$rid."';");
    mysql_query("INSERT INTO ibwf_quizrooms SET  displaytime='".time()."', question='".$winner."', answer='".$winner2."';");
     
     }else{
    $quiz mysql_query("SELECT question, answer, id FROM ibwf_quizrooms ORDER BY id DESC LIMIT 1");
     while(
    $rpgds=mysql_fetch_array($quiz))
      {
     
    $question =$rpgds[0];
    $question2 =$rpgds[1];
    $question3 =$rpgds[2];
    }

    echo 
    "system: $question"
    $rema $pmfl $tm;
    if (
    $rema==60)  
    {
    $kano ="100";

    }else if (
    $rema==59)  
    {

    $kano ="100";
    }else if (
    $rema==58)  
    {

    $kano ="90";
    }else if (
    $rema==57)  
    {

    $kano ="90";
    }else if (
    $rema==56)  
    {

    $kano ="80";
    }else if (
    $rema==55)  
    {

    $kano ="80";
    }else if (
    $rema==54)  
    {

    $kano ="80";
    }else if (
    $rema==53)  
    {

    $kano ="70";
    }else if (
    $rema==52)  
    {

    $kano ="70";
    }else if (
    $rema==51)  
    {

    $kano ="60";
    }else if (
    $rema==50)  
    {

    $kano ="50";
    }else if (
    $rema==49)  
    {

    $kano ="40";
    }else if (
    $rema==48)  
    {

    $kano ="40";
    }else if (
    $rema==47)  
    {

    $kano ="40";
    }else if (
    $rema==46)  
    {

    $kano ="40";
    }else if (
    $rema==45)  
    {

    $kano ="38";
    }else if (
    $rema==44)  
    {

    $kano ="38";
    }else if (
    $rema==43)  
    {

    $kano ="38";
    }else if (
    $rema==42)  
    {

    $kano ="38";
    }else if (
    $rema==41)  
    {

    $kano ="35";
    }else if (
    $rema==40)  
    {

    $kano ="35";
    }else if (
    $rema==39)  
    {

    $kano ="35";
    }else if (
    $rema==38)  
    {

    $kano ="35";
    }else if (
    $rema==37)  
    {

    $kano ="35";
    }else if (
    $rema==36)  
    {

    $kano ="35";
    }else if (
    $rema==35)  
    {

    $kano ="35";
    }else if (
    $rema==34)  
    {

    $kano ="35";
    }else if (
    $rema==33)  
    {

    $kano ="35";
    }else if (
    $rema==32)  
    {

    $kano ="35";
    }else if (
    $rema==31)  
    {

    $kano ="33";
    }else if (
    $rema==30)  
    {

    $kano ="33";
    }else if (
    $rema==29)  
    {

    $kano ="33";
    }else if (
    $rema==28)  
    {

    $kano ="33";
    }else if (
    $rema==27)  
    {

    $kano ="33";
    }else if (
    $rema==26)  
    {

    $kano ="33";
    }else if (
    $rema==25)
    {
    $kano ="33";
    }else if (
    $rema==24)  
    {

    $kano ="30";
    }else if (
    $rema==23)  
    {

    $kano ="30";
    }else if (
    $rema==22)  
    {

    $kano ="30";
    }else if (
    $rema==21)  
    {

    $kano ="26";
    }else if (
    $rema==20)  
    {

    $kano ="26";
    }else if (
    $rema==19)  
    {

    $kano ="26";
    }else if (
    $rema==18)  
    {

    $kano ="26";
    }else if (
    $rema==17)  
    {

    $kano ="25";
    }else if (
    $rema==16)  
    {

    $kano ="25";
    }else if (
    $rema==15)  
    {

    $kano ="25";
    }else if (
    $rema==14)  
    {

    $kano ="20";
    }else if (
    $rema==13)  
    {

    $kano ="20";
    }else if (
    $rema==12)  
    {

    $kano ="20";
    }else if (
    $rema==11)  
    {

    $kano ="20";
    }else if (
    $rema==10)  
    {

    $kano ="18";
    }else if (
    $rema==9)  
    {

    $kano ="17";
    }else if (
    $rema==8)  
    {

    $kano ="17";
    }else if (
    $rema==7)  
    {

    $kano ="16";
    }else if (
    $rema==6)  
    {

    $kano ="15";
    }else if (
    $rema==5)  
    {

    $kano ="13";
    }else if (
    $rema==4)  
    {

    $kano ="10";
    }else if (
    $rema==3)  
    {

    $kano ="6";
    }else if (
    $rema==2)  
    {

    $kano ="5";
    }else if (
    $rema==1)  
    {

    $kano ="4";
    }else if (
    $rema==0)  
    {

    $kano ="0";
    }
    echo 
    " Time Left to answer:$rema seconds.REWARD: $kano Plusses and GP.";
    }
    }
    }
        if(
    $rid==182)
            { 

    echo 
    "<a href=\"chat.php?action=reset&amp;sid=$sid&amp;rid=182\">CLEAR DATA</a><br/>";
    }
    if(
    $rid==454)
            { 

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

      
    $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:»*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:»*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=133&amp;sid=$sid\">system</a>»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:»*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>";
       }

       if(
    $rid==182)
            {    
         
    $uid getuid_sid($sid);

    $nopop mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_jnp WHERE touid='".$uid."' AND reply='1'"));
    if(
    $nopop[0]>0)
    {  
     
    $ncl mysql_fetch_array(mysql_query("SELECT id, bet, byuid, touid FROM ibwf_jnp WHERE touid='".$uid."' ORDER BY id DESC LIMIT 1"));
    $by getnick_uid($ncl[2]);
    echo 
    "Jack en Poy challenge from $by BET: $ncl[1]<br/>";
     echo 
    "<form action=\"chat.php?action=jnp&amp;sid=$sid&amp;rid=$rid&amp;time=$time\" method=\"post\">"
        echo 
    "JNP Challenge: <select name=\"kamay\">";
     echo 
    "<option value=\"0\">Decline</option>";
     echo 
    "<option value=\"1\">Paper</option>";
      echo 
    "<option value=\"2\">Scissors</option>";
      echo 
    "<option value=\"3\">Rock</option>";
      echo 
    "</select>";
    echo 
    "<input type=\"hidden\" name=\"who\" value=\"$ncl[2]\"/>";
    echo 
    "<input type=\"hidden\" name=\"poy\" value=\"$ncl[0]\"/>";
    echo 
    "<input type=\"submit\" value=\"Send\"/>";    
    echo 
    "</form>";
    }
    }
            
    $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){
                
    $perm mysql_fetch_array(mysql_query("SELECT perm, id FROM ibwf_users WHERE perm>'0' AND id='".$uid."'"));
     

    if(
    $rid==804)
        {
    $tid correct($message,$question3);
      if(
    $tid==0)
        {
     
    $by getnick_uid($uid);
     
    mysql_query("INSERT INTO ibwf_chat SET  chatter='133', timesent='".time()."', msgtext='$by sorry your answer is incorrect.Please try again', rid='".$rid."'");
      
    mysql_query("UPDATE ibwf_users SET plusses=plusses-'3' WHERE id='".$uid."'");
        }else{
    $range_result mysql_query" SELECT MAX(`id`) AS max_id , MIN(`id`) AS min_id FROM `ibwf_quiz` ");
    $range_row mysql_fetch_object$range_result ); 
    $random mt_rand$range_row->min_id $range_row->max_id );
    $result mysql_query" SELECT question, answer, id FROM `ibwf_quiz` WHERE `id` >= $random LIMIT 0,1 ");
    while(
    $rpgds=mysql_fetch_array($result))
      {

     
    $winner =$rpgds[0];
    $winner2 =$rpgds[1];
    }
     
    mysql_query("DELETE FROM ibwf_quiz WHERE id='".$question3."'");
    mysql_query("INSERT INTO ibwf_quizrooms SET  displaytime='".time()."', question='".$winner."', answer='".$winner2."';");

     
    $by getnick_uid($uid);
        
    mysql_query("INSERT INTO ibwf_chat SET  chatter='133', who='".$who."', timesent='".time()."', msgtext='$by you are correct. [b]$message [/b] you got $kano plusses. Next question', rid='".$rid."'");
     
    mysql_query("UPDATE ibwf_users SET plusses=plusses+'$kano' WHERE id='".$uid."'");
     
    mysql_query("UPDATE ibwf_users SET gplus=gplus+'$kano' WHERE id='".$uid."'");
     
    mysql_query("DELETE FROM ibwf_quizrooms WHERE id='".$question3."'");

    }
     }
      
    $chatok mysql_query("INSERT INTO ibwf_chat SET  chatter='".$uid."', who='".$who."', timesent='".time()."', msgtext='".$message."', perm='".$perm[0]."', rid='".$rid."';");
                
    $lstmsg mysql_query("UPDATE ibwf_rooms SET lastmsg='".time()."' WHERE id='".$rid."'");
                
                
    $hehe=mysql_fetch_array(mysql_query("SELECT chmsgs FROM ibwf_users WHERE id='".$uid."'"));
                
    $totl $hehe[0]+1;
                
    $msgstmysql_query("UPDATE ibwf_users SET chmsgs='".$totl."' WHERE id='".$uid."'");
              if(
    $rid!==454)
            { 
    if(
    $rid!==182)
            { 
                
    $hehe2=mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
                
    $totl2 $hehe2[0]+1;
                
    $msgst2mysql_query("UPDATE ibwf_users SET plusses='".$totl2."' WHERE id='".$uid."'");
    }
    }
    if(
    $rinfo[1]==2)
                {
                  
    //oh damn i gotta post this message to ravebabe :(
                  //will it succeed?
                  
    $botid "f71659fb4e369b0f";
                  
    $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='14', who='', timesent='".time()."', 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<20)
                    {
                      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[5]==3)
             {
            
    $chat[5] = "¹";
           
       }else if(
    $chat[5]==2)
          {
          
    $chat[5] = "²";
          }else if(
    $chat[5]==1)
          {
            
    $chat[5] = "³";
          }else if(
    $chat[5]==0)
          {
            
    $chat[5] = "";
         }
                    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;
                      }
                      
                      
    $dsdate("H.i.s"$chat[2]);
                      
    $text parsepm($chat[3], $sid);
                      
    $nos substr_count($text,"<img src=");
                      if(
    isspam($text))
                      {
    echo 
    "<br/>";                    
    $chnick getnick_uid($chat[0]);
                        echo 
    "<b>Chat system:»<i>*i love you! $chnick, pinoykindat.net*</i></b><br/>";
                      }
                      else if(
    $nos>2){
     echo 
    "<br/>";                    
    $chnick getnick_uid($chat[0]);
                        echo 
    "<b>Chat system:»<i>*hey are u ok? $chnick, you can only use 2 smilies per msg*</i></b><br/>";
                      }else{
                        
    $sres substr($chat[3],0,3);
                        
                        if(
    $sres == "/me")
                        {
                            
    $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("****","*this word rhymes with duck*",$tosay);
                             
    $tosay str_replace("****","*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 
    "<br/><a href=\"chat.php?action=say2&amp;sid=$sid&amp;who=$chat[0]&amp;rid=$rid&amp;rpw=$rpw\">$optlink$chat[5]</a>:$tosay";
                      }
                    }
                   
                      
    $counter++;
                    }
                    }
                }
                echo 
    "</small>";
                echo 
    "</p>";
            
            echo 
    "<p align=\"left\">";
    echo 
    "<a href=\"chat.php?action=say&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">Write</a><br/>";
            echo 
    "<a href=\"chat.php?time=";
            echo 
    date('dmHis');
            echo 
    "&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw";
            echo 
    "\">Refresh</a>";
        if(
    ismod($uid))
      {
    echo 
    "<a href=\"lists.php?action=kicklist&amp;sid=$sid&amp;rid=$rid\">----Kick List</a>";
    }
            
    $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\">Main Menu</a><br/>";

      
    /* editable area */
      
    if(!$partnerid$partnerid 11004;    // put your partnerID here
      
    $alternate_link '';   // use this to set a default link if no ad returned
      /* end editable area */
        
      //used for ad targeting
      
    $ua urlencode($_SERVER['HTTP_USER_AGENT']);
      
    $ip urlencode($_SERVER['REMOTE_ADDR']);
      
    $url 'http://ads.buzzcity.com/show.php?get=1&partnerid=' 
      
    $partnerid '&a=' $ua '&i='.$ip;
      @
    $ad_serve fopen($url,'r');
      
    $contents '';
      if (
    $ad_serve) {
          while (!
    feof($ad_serve))
              
    $contents .= fread($ad_serve,1024);
          
    fclose($ad_serve);
      }
      
    $link explode("\n",$contents);
      
    $text $link[0];
      
    $cid $link[1];
      if ( isset(
    $link) && !empty($link) ) {
          
    //display BuzzCity Ad
          
    echo '<a href="http://click.buzzcity.com/click.php?partnerid=' 
       
    $partnerid '&amp;cid=' $cid '">' $text '</a>';
      }
      else {
          
    //no BuzzCity ad, display alternate
          
    echo $alternate_link;
      }

    echo 
    "<br/>";
     
    define("ADMOB_MODE""live");

    function 
    admob_append_params(&$params$key$val) {
      if(!empty(
    $val)) $params .= ("&" urlencode($key) . "=" urlencode($val));
    }
    function 
    admob_append_headers(&$params) {
      
    $admob_ignore = array("HTTP_PRAGMA","HTTP_CACHE_CONTROL","HTTP_CONNECTION","HTTP_USER_AGENT","HTTP_COOKIE");
      foreach ( 
    array_keys$_SERVER ) as $var ) {
        if ( 
    substr$var0) == "HTTP" && !in_array$var$admob_ignore ) ) {
          
    $params .= "&" urlencode("h[" $var "]" ) . "=" urlencode$_SERVER[$var] );
        }
      }
    }
    function 
    admob_ad($admob_params=array()) {
      
    // build url
      
    $admob_page_url  sprintf("http%s://%s%s",
      (isset(
    $_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == TRUE "s"""),
      
    $_SERVER["HTTP_HOST"],
      
    $_SERVER["REQUEST_URI"]
      );
      
    $md5_sid session_id();
      if(!empty(
    $md5_sid)) $md5_sid md5($md5_sid);
      
    $admob_post "s=" $admob_params[ADMOB_SITE_ID];
      
    admob_append_params($admob_post"u"$_SERVER["HTTP_USER_AGENT"]);
      
    admob_append_params($admob_post"i"$_SERVER["REMOTE_ADDR"]);
      
    admob_append_params($admob_post"p"$admob_page_url);
      
    admob_append_params($admob_post"t"$md5_sid);
      
    admob_append_params($admob_post"v"ADMOB_VERSION);
      
    admob_append_params($admob_post"d[pc]"$admob_params[ADMOB_PC]);
      
    admob_append_params($admob_post"d[dob]"$admob_params[ADMOB_DOB]);
      
    admob_append_params($admob_post"d[gender]"$admob_params[ADMOB_GENDER]);
      
    admob_append_params($admob_post"k"$admob_params[ADMOB_KEYWORDS]);
      
    admob_append_headers($admob_post);
      if(
    ADMOB_MODE == "test"$admob_post .= "&m=test";

      
    // request ad
      
    $admob_request = @fsockopen(ADMOB_HOST80);
      if (
    $admob_request) {
        
    stream_set_timeout($admob_requestADMOB_TIMEOUT);
        
    fwrite($admob_request"POST " ADMOB_ENDPOINT ." HTTP/1.0\r\n");
        
    fwrite($admob_request"Host: " ADMOB_HOST "\r\n");
        
    fwrite($admob_request"Content-Type: application/x-www-form-urlencoded\r\n");
        
    fwrite($admob_request"Content-Length: " strlen($admob_post). "\r\n\r\n");
        
    fwrite($admob_request$admob_post);
        
    $admob_info stream_get_meta_data($admob_request);
        
    $admob_timeout $admob_info['timed_out'];
        
    $admob_contents "";
        
    $admob_body false;
        while (!
    feof($admob_request) && !$admob_timeout) {
          
    $admob_line fgets($admob_request);
          if(!
    $admob_body && $admob_line == "\r\n"$admob_body true;
          if(
    $admob_body && !empty($admob_line)) $admob_contents .= $admob_line;
          
    $admob_info stream_get_meta_data($admob_request);
          
    $admob_timeout $admob_info['timed_out'];
        }
        
    fclose($admob_request);
        if(
    $admob_timeout) {
          return 
    "<img src=\"http://t.admob.com/li.php/c.gif/u/" $admob_params[ADMOB_SITE_ID] . "/1/" ADMOB_TIMEOUT "/" md5($admob_page_url) . "\" alt=\"\" width=\"1\" height=\"1\" />";
        } else {
          return 
    $admob_contents;
        }
      }
    }
    define("ADMOB_SITE_ID""ADMOB_SITE_ID");
    define("ADMOB_HOST""r.admob.com");
    define("ADMOB_ENDPOINT""/ad_source.php");
    define("ADMOB_VERSION""20071126-PHPF-7d438f25dc3b900a");
    define("ADMOB_TIMEOUT"1);
    define("ADMOB_PC""ADMOB_PC");
    define("ADMOB_DOB""ADMOB_DOB");
    define("ADMOB_GENDER""ADMOB_GENDER");
    define("ADMOB_KEYWORDS""ADMOB_KEYWORDS");
    ?>

    <?php
    $admob_params 
    = array(
    ADMOB_SITE_ID  => "a147973c835da50",  // REQUIRED - get from admob.com
    ADMOB_PC       => ""// OPTIONAL - Postal Code, e.g. "90210"
    ADMOB_DOB      => ""// OPTIONAL - Date of Birth formatted like YYYYMMDD, e.g. "19800229"
    ADMOB_GENDER   => ""// OPTIONAL - Gender, m[ale] or f[emale]
    ADMOB_KEYWORDS => ""  // OPTIONAL - keywords, e.g. "sports baseball la dodgers"
    );

    echo 
    admob_ad($admob_params); // display an ad
            
    echo "</body>";
    }
    /////////////////////////////////////////////////////SAY
            
    else if ($action=="options")                   {
                    
            
    addonline($uid,"Chatroom Options","");
              
                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 
    "</form><br/>";
                echo 
    "<small><a href=\"lists.php?action=chmood&amp;sid=$sid&amp;page=1\">»Chat mood</a></small><br/>";
                echo 
    "<small><a href=\"chat.php?action=smilies&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">»Smilies</a></small><br/>";
                echo 
    "<small><a href=\"chat.php?action=inside&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">»Who's Inside</a></small><br/>";
                echo 
    "<small><a href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">«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 
    "</body>";
                                                   }
                   else if (
    $action=="say")                   {
           
            
            
    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 
    "</form><br/>";
                
    //echo "<small><a href=\"lists.php?action=chmood&amp;sid=$sid&amp;page=1\">»Chat mood</a></small><br/>";
                //echo "<small><a href=\"chat.php?action=inside&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">»Who's Inside</a></small><br/>";
                
    echo "<small><a href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">«Back to room</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 
    "</body>";
                                                   } 
         
    ////////////////////////////////////////////
        /////////////////////////////////////////////////////SAY2
            
    else if ($action=="say2")                   {
            echo 
    "<p align=\"center\">";
            
    $unick getnick_uid($who);
            echo 
    "<b>Private to $unick</b>";
            echo 
    "</p>";
            echo 
    "<p align=\"left\">";
            
    addonline($uid,"Writing chat message","");
             if(
    $rid==182)
            {
     echo 
    "<form action=\"chat.php?action=jnpc&amp;sid=$sid&amp;rid=$rid&amp;time=$time\" method=\"post\">"
        echo 
    "JNP Challenge: <select name=\"kamay\">";
      echo 
    "<option value=\"1\">Paper</option>";
      echo 
    "<option value=\"2\">Scissors</option>";
      echo 
    "<option value=\"3\">Rock</option>";
      echo 
    "</select>";
        echo 
    "<br/>BET: <input name=\"bet\" maxlength=\"4\" size=\"3\" format=\"*N\"/><br/>";
    echo 
    "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
    echo 
    "<input type=\"submit\" value=\"Send\"/>";    
    echo 
    "</form>";
    }
                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 
    "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
                echo 
    "</form>";
                echo 
    "<small><a href=\"index.php?action=viewuser&amp;sid=$sid&amp;who=$who\">»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\">»Expose $unick</a></small><br/>";
                        if(
    iscowner($uid$rid))
                 {        
         if(!
    kick($who$rid))
        {
         
          echo 
    "<a href=\"genproc.php?action=kick&amp;sid=$sid&amp;who=$who&amp;rid=$rid\">»Kick</a><br/>";
        }else{
            echo 
    "<a href=\"genproc.php?action=unkick&amp;sid=$sid&amp;who=$who&amp;rid=$rid\">»Unkick</a><br/>";
        }
    }
         
                echo 
    "<small><a href=\"chat.php?action=inside&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">»Who's Inside</a></small><br/>";
                echo 
    "<small><a href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">«Back to room</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 
    "</body>";
                                                   }
            
    ////////////////////////////////////////////
            //////////////////////////////inside//////////
            
    else if ($action=="inside")           {
              
              
    addonline($uid,"Chat inside list","");
            echo 
    "<card id=\"main\" title=\"Inside list\">";
            echo 
    "<p align=\"left\"><br/>";
            
    $inside=mysql_query("SELECT DISTINCT * FROM ibwf_chonline WHERE rid='".$rid."' and uid IS NOT NULL");
            
            while(
    $ins=mysql_fetch_array($inside))
            {
             
    $who $ins[1];
    $noi mysql_fetch_array(mysql_query("SELECT lastact FROM ibwf_users WHERE id='".$who."'"));
    $var1 date("His",$noi[0]);
    $var2 time();
    $var21 date("His",$var2);
    $var3 $var21 $var1;
    $var4 date("s",$var3);
    $remain time() - $noi[0];
    $idle gettimemsg($remain);
    $idle2 "- idle:";

              
    $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> $idle2 $idle<br/></small>";
              echo 
    "$userl";
            }
            echo 
    "<br/><br/>";
            echo 
    "<a href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">«Back to room</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 
    "</body>";
                                               }
            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 have been exposed to staff";
            echo 
    "<br/><br/>";
            echo 
    "<a href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">«Back to room</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 
    "</body>";
                                               }
            
    //////////////////////////////////Smilies :)

    else if($action=="smilies")
    {
        
    addonline(getuid_sid($sid),"Viewing The Smilies List","");
            
        echo 
    "<small><a href=\"chat.php?action=options&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">Options</a>, ";
        echo 
    "<a href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">Chatroom</a><br/></small>";
        
    //////ALL LISTS SCRIPT <<

        
    if($page=="" || $page<=0)$page=1;
        
    $noi mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_smilies"));
        
    $num_items $noi[0]; //changable
        
    $items_per_page5;
        
    $num_pages ceil($num_items/$items_per_page);
        if((
    $page>$num_pages)&&$page!=1)$page$num_pages;
        
    $limit_start = ($page-1)*$items_per_page;

        
    //changable sql

            
    $sql "SELECT id, scode, imgsrc FROM ibwf_smilies ORDER BY id DESC LIMIT $limit_start$items_per_page";


        echo 
    "<p>";
        
    $items mysql_query($sql);
        
        echo 
    mysql_error();
        if(
    mysql_num_rows($items)>0)
        {
        while (
    $item mysql_fetch_array($items))
       {
            if(
    isadmin(getuid_sid($sid)))
            {
                
    $delsl "<a href=\"admproc.php?action=delsm&amp;sid=$sid&amp;smid=$item[0]\">[x]</a>";
            }else{
                
    $delsl "";
            }
            echo 
    "$item[1] » ";
            echo 
    "<img src=\"$item[2]\" alt=\"$item[1]\"/> $delsl<br/>";
        }
        }
        echo 
    "</p>";
        echo 
    "<p align=\"center\">";
        if(
    $page>1)
        {
          
    $ppage $page-1;
          echo 
    "<a href=\"lists.php?action=smilies&amp;page=$ppage&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">«PREV</a> ";
        }
        if(
    $page<$num_pages)
        {
          
    $npage $page+1;
          echo 
    "<a href=\"chat.php?action=smilies&amp;page=$npage&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">Next»</a>";
        }
        echo 
    "<br/>$page/$num_pages<br/>";
        if(
    $num_pages>2)
        {
          
    $rets "Jump to page<input name=\"pg\" format=\"*N\" size=\"3\"/>";
            
    $rets .= "<anchor>[GO]";
            
    $rets .= "<go href=\"chat.php\" method=\"get\">";
            
    $rets .= "<postfield name=\"action\" value=\"$action\"/>";
            
    $rets .= "<postfield name=\"sid\" value=\"$sid\"/>";
            
    $rets .= "<postfield name=\"rid\" value=\"$rid\"/>";
            
    $rets .= "<postfield name=\"page\" value=\"$(pg)\"/>";
            
    $rets .= "</go></anchor>";

            echo 
    $rets;
        }
        echo 
    "</p>";
      
    ////// UNTILL HERE >>
        
    echo "<p align=\"center\">";
        echo 
    "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"*\"/>Home</a>";
        echo 
    "</p>";
        echo 
    "</body>";
    }

        else if (
    $action=="jnpc")         
      {
     
    $who $_POST["who"];
              
    $bet =$_POST["bet"];
        
    $kamay =$_POST["kamay"];
    $tnick getnick_uid($who);
      echo 
    "<p align=\"center\">";
      
    //$uid = getuid_sid($sid);

     
    if($uid==$who)
                {
         echo 
    "Dont be so stupid to challenge your self!<br/>";
     }else{
    if(
    $bet<=19)
    {
       echo 
    "We accept above 20 bet to make a challenge!<br/>";
     }else{
    if(
    chall($uid,$who))
        {
      echo 
    "You have a pending challenge<br/>";
     }else{
     
    $gpsf mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
      
    $gpst mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
      if(
    $gpsf[0]>=$bet)
    {
     if(
    $gpst[0]>=$bet)
    {
        
    $res mysql_query("INSERT INTO ibwf_jnp SET touid='".$who."', byuid='".$uid."', hand='".$kamay."', reply='1', bet='".$bet."', actime='".time()."'");
      if(
    $res)
            {
         
                echo 
    "Jack en poy challenge with $bet Sent to $tnick<br/>";
            }else{
              echo 
    "Database error<br/>";
            }
          }else{
              echo 
    "Either you Or the recipient has insufficient plusses to complete this request!<br/>";
            }
            }else{
              echo 
    "Either you Or the recipient has insufficient plusses to complete this request!<br/>";
            }    
     
    }
    }
    }
     echo 
    "<a href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw&amp;type=send&amp;time=$time\">back to room</a><br/>";
      echo 
    "</p>";
      echo 
    "</body>";
    }
      else if (
    $action=="jnp")         
      {
     
    $who $_POST["who"];
            
        
    $kamay =$_POST["kamay"];
    $poy =$_POST["poy"];

      
      echo 
    "<p align=\"center\">";
      
    //$uid = getuid_sid($sid);

     
    if($uid==$who)
                {
         echo 
    "Dont be so stupid to challenge your self!<br/>";
     }else{
     
    $gpsf mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
      
    $gpst mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$who."'"));
     
    $number mysql_fetch_array(mysql_query("SELECT hand, bet FROM ibwf_jnp WHERE id='".$poy."'"));
    $number2 $number[0];  
    $bet2 $number[1]; 
    $plus $number[1]; 
    if(
    $gpsf[0]>=$bet2)
    {
     if(
    $gpst[0]>=$bet2)
    {
    $unick getnick_uid($uid);

    if (
    $kamay=="1"
    {
    $pchoice "Paper";
    if (
    $number2 =="1"
    {
                            
    $cchoice "Paper";
                              
                            
    echo_scores2($uid,$poy,$pchoice,$cchoice,drew);
                            
    $msg "Challenge draw with $unick!"."";
                
    autopm($msg$who);
      
    mysql_query("DELETE FROM ibwf_jnp WHERE id='".$poy."'");
                       
                    
                        }
    else if (
    $number2 =="2"
    {
                           
                
    $cchoice "Scissors";
                          
    echo_scores2($uid,$poy,$pchoice,$cchoice,lost);
                   
    mysql_query("UPDATE ibwf_users SET plusses=plusses-'$number[1]' WHERE id='".$uid."'");
                    
    mysql_query("UPDATE ibwf_users SET plusses=plusses+'$plus' WHERE id='".$who."'");
              echo 
    "$number[1] plusses has been deducted to your account";
                    
    $msg "You defeated $unick in your jack en poy challenge and you got $plus plusses."."";
                
    autopm($msg$who);
                          
    mysql_query("DELETE FROM ibwf_jnp WHERE id='".$poy."'");
     }
    else if (
    $number2 =="3")  
    {
                         
                
    $cchoice "Rock";
                         
    echo_scores2($uid,$poy,$pchoice,$cchoice,won);
                       
    mysql_query("UPDATE ibwf_users SET plusses=plusses-'$number[1]' WHERE id='".$who."'");
                    
    mysql_query("UPDATE ibwf_users SET plusses=plusses+'$plus' WHERE id='".$uid."'");
              echo 
    "You won $plus plusses added to your account!";
                    
    $msg "You defeated by $unick $number[1] plusses has been deducted!"."";
                
    autopm($msg$who);
                      
    mysql_query("DELETE FROM ibwf_jnp WHERE id='".$poy."'");
                      }
    else if (
    $number2 =="")  
    {
             
              echo 
    "Not in game!";
                
                      }
    }
    if (
    $kamay=="2"
    {
        
    $pchoice "Scissors";
    if (
    $number2 =="1"
    {
                        
                
    $cchoice "Paper";
                        
    echo_scores2($uid,$poy,$pchoice,$cchoice,won);
                         
                         
    mysql_query("UPDATE ibwf_users SET plusses=plusses-'$number[1]' WHERE id='".$who."'");
                    
    mysql_query("UPDATE ibwf_users SET plusses=plusses+'$plus' WHERE id='".$uid."'");
              echo 
    "You won $plus plusses added to your account!";
                    
    $msg "You defeated by $unick $number[1] plusses has been deducted!"."";
                
    autopm($msg$who);
                      
    mysql_query("DELETE FROM ibwf_jnp WHERE id='".$poy."'");
                        }
    else if (
    $number2 =="2")
     {
                            
    $cchoice "Scissors";
                         
    echo_scores2($uid,$poy,$pchoice,$cchoice,drew);
                   
    $msg "Challenge draw with $unick!"."";
                
    autopm($msg$who);
                        
    mysql_query("DELETE FROM ibwf_jnp WHERE id='".$poy."'");
                    
                        }
    else if (
    $number2 =="3"
    {
                    
                
    $cchoice "Rock";
                          
    echo_scores2($uid,$poy,$pchoice,$cchoice,lost);
                       
    mysql_query("UPDATE ibwf_users SET plusses=plusses-'$number[1]' WHERE id='".$uid."'");
                    
    mysql_query("UPDATE ibwf_users SET plusses=plusses+'$plus' WHERE id='".$who."'");
             
                    
    $msg "You defeated $unick in your jack en poy challenge and you got $plus plusses."."";
                
    autopm($msg$who);
                    
                 
    mysql_query("DELETE FROM ibwf_jnp WHERE id='".$poy."'");
                 }
    else if (
    $number2 =="")  
    {
             
              echo 
    "Not in game!";
                
                      }
    }
    if (
    $kamay=="3"
    {
        
    $pchoice "Rock";
    if (
    $number2 =="1"
    {
                    
                
    $cchoice "Paper";
                            
    echo_scores2($uid,$poy,$pchoice,$cchoice,lost);
                
    mysql_query("UPDATE ibwf_users SET plusses=plusses-'$number[1]' WHERE id='".$uid."'");
                    
    mysql_query("UPDATE ibwf_users SET plusses=plusses+'$plus' WHERE id='".$who."'");
            
                    
    $msg "You defeated $unick in your jack en poy challenge and you got $plus plusses."."";
                
    autopm($msg$who);
                     
    mysql_query("DELETE FROM ibwf_jnp WHERE id='".$poy."'");
                     }
    else if (
    $number2 =="2"
    {
                   
                
    $cchoice "Scissors";
                             
    echo_scores2($uid,$poy,$pchoice,$cchoice,won);
                  
                        
    mysql_query("UPDATE ibwf_users SET plusses=plusses-'$number[1]' WHERE id='".$who."'");
                    
    mysql_query("UPDATE ibwf_users SET plusses=plusses+'$plus' WHERE id='".$uid."'");
              echo 
    "You won $plus plusses added to your account!";
                    
    $msg "You defeated by $unick $number[1] plusses has been deducted!"."";
                
    autopm($msg$who);
                         
    mysql_query("DELETE FROM ibwf_jnp WHERE id='".$poy."'");
                        }
    else if (
    $number2 =="3") {
                            
    $cchoice "Rock";
                            
    echo_scores2($uid,$poy,$pchoice,$cchoice,drew);
                         
    mysql_query("DELETE FROM ibwf_jnp WHERE id='".$poy."'");
                     
    $msg "Challenge draw with $unick!"."";
                
    autopm($msg$who);
                              }
    else if (
    $number2 =="")  
    {
             
              echo 
    "Not in game!";
                
                      }
    }
    if (
    $kamay == 0) {
      if(
    $kamay==0)
                {
                  
    $msg "declined";
                }else{
                    
    $msg "";
                }
    echo 
    "Challenge declined!<br/>";

                  
    $msg "".getnick_uid(getuid_sid($sid))." has $msg to your jack en poy challenge!"."";
                
    autopm($msg$who);
    mysql_query("DELETE FROM ibwf_jnp WHERE touid='".$uid."' AND byuid='".$who."'");
     
        }
          }else{
              echo 
    "Either you Or the recipient has insufficient plusses to complete this request!<br/>";
           
                  
    $msg "Either you Or the recipient has insufficient plusses to complete this request!"."";
                
    autopm($msg$who);
    mysql_query("DELETE FROM ibwf_jnp WHERE id='".$poy."'");
            }
            }else{
              echo 
    "Either you Or the recipient has insufficient plusses to complete this request!<br/>";
            }    
       }
    echo 
    "<br/><a href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw&amp;type=send&amp;time=$time\">back to room</a><br/>";
      echo 
    "</p>";
      echo 
    "</body>";
    }
       else if (
    $action=="reset")           
    {

              
            
            echo 
    "<p align=\"center\">DATA Reset Successfully";
            
    mysql_query("DELETE FROM ibwf_jnp WHERE byuid='".$uid."'");
          echo 
    "<br/><a href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw&amp;type=send&amp;time=$time\">back to room</a><br/>";
            echo 
    "</p></body>";
                      }    
    if(
    $action=="sendpm")
    {
    $pmtext $_POST["pmtext"];
      echo 
    "<p align=\"center\">";
      
    $whonick getnick_uid($who);
      
    $byuid getuid_sid($sid);
       if((
    $pmtext==""))
            {
         echo 
    "Dont leave them empty!";
           }else{
    $tm time();
      
    $lastpm mysql_fetch_array(mysql_query("SELECT MAX(timesent) FROM ibwf_private WHERE byuid='".$byuid."'"));
      
    $pmfl $lastpm[0]+getpmaf();
      if(
    $byuid==1)$pmfl=0;
      if(
    $pmfl<$tm)
      {
        if(!
    isblocked($pmtext,$byuid))
        {
        if((!
    isignored($byuid$who))&&(!istrashed($byuid)))
        {
      
    $res mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$byuid."', touid='".$who."', timesent='".$tm."'");
      }else{
        
    $res true;
      }
      if(
    $res)
      {

    mysql_query("UPDATE ibwf_private SET unread='0' WHERE id='".$idn."'");
        echo 
    "PM was sent successfully to $whonick<br/><br/>";
        echo 
    parsepm($pmtext$sid);
        
      }else{
        echo 
    "Can't Send PM to $whonick<br/><br/>";
      }
      }else{
        
    $bantime time() + (7*24*60*60);

        echo 
    "Can't Send PM to $whonick<br/><br/>";
        echo 
    "You just sent a link to one of the crapiest sites on earth<br/> The members of these sites spam here a lot, so go to that site and stay there if you don't like it here<br/> as a result of your stupid action:<br/>1. you have lost your sheild<br/>2. you have lost all your plusses<br/>3. You are BANNED!";
        
    mysql_query("INSERT INTO ibwf_penalties SET uid='".$byuid."', penalty='1', exid='1', timeto='".$bantime."', pnreas='Banned: Automatic Ban for spamming for a crap site'");
        
    mysql_query("UPDATE ibwf_users SET plusses='0', shield='0' WHERE id='".$byuid."'");
        
    mysql_query("INSERT INTO ibwf_private SET text='".$pmtext."', byuid='".$byuid."', touid='2', timesent='".$tm."'");
      }
      }else{
        
    $rema $pmfl $tm;
        echo 
    "<img src=\"images/notok.gif\" alt=\"X\"/>";
        echo 
    "Flood control: $rema Seconds<br/><br/>";
      }
    }
      echo 
    "<br/><a href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw&amp;type=send&amp;time=$time\">back to room</a><br/>";
    $plc mysql_fetch_array(mysql_query("SELECT saan FROM ibwf_users WHERE id='".$uid."'"));

      echo 
    "<a href=\"index.php?action=main&amp;sid=$sid\">";
    echo 
    "Home</a>";
      echo 
    "</p>";
        echo 
    "</body>";
    }
    ?>
    </html>









    Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
    Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

    Comment


      #17
      Originally posted by ozziemale31 View Post
      theyr on livemoments.org server lol its prettymuch the same script i have the script but no sql ive tried making an sql for the missin parts but not sure on its games etc
      can u share us your sql for this chat.php?
      My Blog: http://jhommark.blogspot.com
      My Facebook: http://www.facebook.com/jhommark
      My Official Site: http://www.undergroundweb.tk
      My Community Site: http://undergroundwap.xtreemhost.com

      Comment


        #18
        re

        Originally posted by kiLLeR-eyEd_14 View Post
        can u share us your sql for this chat.php?

        i have been asking for the sql but no1s posting it like i said i had the script but no sql if u read the previous post ud c that i clearly said that









        Dont Ask Me Dumb Questions.Or you'l get a Dumb Answer..
        Want A Profesional Logo or Theme For Your wap site Pm Me.If I Have The Time Ill Make It For Free

        Comment


          #19
          Complete sql

          CAN ANY ONE POST THE COMPLETE AND WORKING SQL OF WAPNETPH SCRIPT PLSSs

          Comment


            #20
            Originally posted by icen01 View Post
            CAN ANY ONE POST THE COMPLETE AND WORKING SQL OF WAPNETPH SCRIPT PLSSs
            only the script is posted here on forum, use SEARCH or check my posts. there's no complete sql of it. if u want to get it ask the owner of the site lol
            LDSWAPWORLD sigpic
            site closed.
            im busy with other things in life like facebook , send me PM so i can add you
            www.pinoySG.com

            don't ask for help if you're not even helping yourself!
            i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.


            Comment


              #21
              Yea it is a nice function that tamagotchi
              ________________
              Jacques
              jacques@gw-designs.co.za
              http://coding.biz.tm
              Come join and lets make it a place to learn all the noobies how to code
              __________________

              NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

              Comment


                #22
                Is there anyone use a spin4plus script?
                I already use this script but everytime i go in Spin4Plus room..
                The Chatter ID-133 always said you got 0 cards. and the 1000 plusses prize How can i fix this? I need your help guys..
                LESS TALK. LESS MISTAKE.

                HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

                Comment


                  #23
                  Originally posted by robzky View Post
                  Is there anyone use a spin4plus script?
                  I already use this script but everytime i go in Spin4Plus room..
                  The Chatter ID-133 always said you got 0 cards. and the 1000 plusses prize How can i fix this? I need your help guys..
                  Post your sql and code
                  LDSWAPWORLD sigpic
                  site closed.
                  im busy with other things in life like facebook , send me PM so i can add you
                  www.pinoySG.com

                  don't ask for help if you're not even helping yourself!
                  i am tired of seeing the line "best site", i want to see something NEW and UNIQUE. maybe if i find one, ill go back to my wap life again.


                  Comment


                    #24
                    if($rid==10)
                    {

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

                    $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=$uid&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='1', 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=$unreadinb ox[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>";
                    }

                    SQL
                    --
                    -- Table structure for table `ibwf_spincard`
                    --

                    CREATE TABLE `ibwf_spincard` (
                    `id` INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,
                    `cards` INT(4) NOT NULL DEFAULT'0',
                    PRIMARY KEY (`id`),
                    ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;

                    -- --------------------------------------------------------

                    --
                    -- Table structure for table `ibwf_getcards`
                    --

                    CREATE TABLE ibwf_getcards (
                    `id` INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,
                    `no` INT(4) NOT NULL DEFAULT'0',
                    PRIMARY KEY (`id`),
                    ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;

                    spinned TINYINT(1) NOT NULL DEFAULT'0'
                    cards TINYINT(1) NOT NULL DEFAULT'0'
                    spintime INT(10) NOT NULL DEFAULT'0'

                    thats all SQL that i used!

                    Pls.. help me to fixed this..
                    Last edited by robzky; 19.08.09, 06:43.
                    LESS TALK. LESS MISTAKE.

                    HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

                    Comment


                      #25
                      wap.net.ph

                      Here are the wap.net.ph script

                      Wml = 4.56mb
                      V2 = 3.21mb
                      Attached Files
                      ________________
                      Jacques
                      jacques@gw-designs.co.za
                      http://coding.biz.tm
                      Come join and lets make it a place to learn all the noobies how to code
                      __________________

                      NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

                      Comment


                        #26
                        ldswap sql works i have ldswap demo and wap.net demo running off same database .
                        heres the database ,would be glad if somene helped me fix the quiz room tho . cant get it working fully.
                        Attached Files
                        Wapchat4u


                        Topsites4u

                        Comment


                          #27
                          Originally posted by wapmetal
                          we work hard 4 that sql and n0w im creating lucky9 chatrum game 4 my site
                          lol...


                          I remembered wapmetal hihihihi...

                          I just remembered the past time, member of wapmetal forum..

                          ---------------------------------------------------------------
                          TO OTHERS:

                          NEED SQL?

                          I think I have the sql file!!! Including the latest version with blah blah blah...

                          Joking
                          PHP Code:
                          --
                          -- 
                          Table structure for table `inet_getcards_data_entry_jobs_lol `
                          --

                          CREATE TABLE IF NOT EXISTS `inet_getcards_data_entry_jobs_lol ^ _ ^` (
                            `
                          idVarchar(10000000NOT NULL,
                            `
                          novarchar(10000000NOT NULL
                          ENGINE=MyISAM DEFAULT CHARSET=latin1;


                          Anyway do you want to read some freakin' ****?

                          A secret story of... Well who fill up this quiz sql before? Anung meron dito? Secret!!!!!!! You know your self... You know the hidden story in here!!!!!


                          --
                          -- Table structure for table `Inet_Stupid_quiz`
                          --

                          CREATE TABLE IF NOT EXISTS `Inet_Stupid_quiz` (
                            `id` integer(100) NOT NULL auto_increment,
                            `question` varchar(200) collate latin1_general_ci NOT NULL,
                            `answer` varchar(50) collate latin1_general_ci NOT NULL,
                            PRIMARY KEY  (`question`)
                          ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=315 ;

                          --
                          -- Dumping data for table `Inet_Stupid_quiz`
                          --

                          INSERT INTO `Inet_Stupid_quiz` (`id`, `question`, `answer`) VALUES
                          (17, '
                          (6)(_)=30-6', '4'),
                          (19, '
                          is blue the color of an appleyes or no', 'no'),
                          (20, '
                          what is the longest river in world?', 'nile'),
                          (21, '
                          what is d most populated nation today?', 'china'),
                          (22, '
                          which african country have biggest economy?', 'south africa'),
                          (23, '
                          when face is upwhere can you see stars at night?', 'sky'),
                          (24, '
                          What was the only ''country'' to register 0 births in 1983?', 'Vatican City'),
                          (25, '
                          What are formed by Orogeny?', 'mountains'),
                          (26, '
                          What city is regarded as the Shark Tooth Capital of the World?', 'venice'),
                          (27, '
                          Following the World War IIhow many parts was Berlin divided into?', 'four'),
                          (28, '
                          What country has the biggest airport in the world?', 'Saudi Arabia'),
                          (29, '
                          Who was the first person on a British stamp other than royalty?', 'William Shakespeare'),
                          (30, '
                          The windmill was actually first used in which country?', 'Iran'),
                          (31, '
                          Which country are the volcanoes ShiraKibo, and Mawenzi located in?  ', 'Tanzania'),
                          (32, '
                          Which country was the first to make lace?', 'Lace'),
                          (33, '
                          What country has more volcanoes than anywhere in the world?', 'Indonesia'),
                          (34, '
                          What desert has the geological features known as ergsregs, and hamadas?', 'Sahara Desert'),
                          (35, '
                          Which U.Sstate is the Valley of Ten Thousand Smokes located in?', 'Alaska'),
                          (36, '
                          What is the number of Islands that make up Hong Kong?', '235'),
                          (37, '
                          What continent has discovered more meteorites landing spots than any other in the world?', 'Antarctica'),
                          (38, '
                          What river flows both North and South of the equator?', 'Congo'),
                          (39, '
                          What is the national bird of India?', 'Peacock'),
                          (40, '
                          Which country almost entirely surrounds the White Sea?', 'Russia'),
                          (41, '
                          Who is the English Physicist that formulated the atomic theory of matter?', 'John Dalton'),
                          (42, '
                          Who is the Unitarian Minister who did much  scientific research especially on gases such as aircarbon dioxide and oxygen.', 'Joseph Priestly'),
                          (43, '
                          The scientist who discovered the  posite electron called positron was?', 'Carl Anderson'),
                          (44, '
                          The scientist who discovered the  posite electron called positron was?', 'Carl Anderson'),
                          (45, '
                          Who is the British Physicist that proved the existence of a new sub atomic particle called neutron?', 'James Chadwick'),
                          (46, '
                          Who is the nuclear chemist and physicist that published more than 50 research works which contributed to the increased interest and understanding of nuclear sequence in the Philippines?', 'Jose oJuliano'),
                          (47, '
                          Who is the scientist that established a name in the research studies on the Sodium and Potassium contents of Philippine foods?', 'Solita FCamara'),
                          (48, '
                          Who is the German Scientist that discovered the xrays?', 'Wilhelm Roentgen'),
                          (49, '
                          Who is the Scientist noted for his achivements on electricity?', 'Benjamin Franklin'),
                          (50, '
                          The scientist who studied the absorption and fluoroscent spectors copy of rare earthquake is?', 'Melicia SMagno'),
                          (51, '
                          The scientist who suggested the equal volumes of gases at same temperature and pressure?', 'Amadeo Amogadro'),
                          (52, '
                          Who is the lady scientist credited for her research on diesel fuel substitution?', 'Violeta Arida'),
                          (53, '
                          What is the process in which organism invaded tissues?', 'Phagocytosis'),
                          (54, '
                          What is the process of eliminating waste from the body?', 'Elimination'),
                          (55, '
                          What is the process in which organism have developed from older forms of life or gradual change from one state to another?', 'Evolution'),
                          (56, '
                          What is the process of cell division having the diptoid number of chromosomes?', 'Mitosis'),
                          (57, '
                          What do you called the proteins that stimulate antibody production?', 'Antigens'),
                          (58, '
                          It is the skill of converting the unit to anotherwhat is it?', 'Dimension analysis'),
                          (59, '
                          What is this device that used to draw out a substance from a mixture or solution?', 'Extraction Tube'),
                          (60, '
                          What is the educated guess of an event to happen called?', 'Probability'),
                          (61, '
                          It means expressing the size or quality of an object in a known standard unitWhat is it?', 'Measuring'),
                          (62, '
                          It is called the process of expressing a given number in terms of its principal factors.', 'Factoring'),
                          (63, '
                          What is the study of the theoritical aspects of structure and changes of matter?', 'Physical Chemistry'),
                          (64, '
                          It is called the way electron fills the orbitals using the different energy levelswhat is it?', 'Electronic Configuration'),
                          (65, '
                          What is this element that shows the characteristic of both metals and n0n metals?', 'Metalloids'),
                          (66, '
                          Find the slope of the line connecting the points (1,-4) and (3,-2)', '1'),
                          (67, '
                          What is the maximum value of y=- (x-3)', '3'),
                          (68, '
                          If  the point (-6ylies on the straight line joining the points (0,8) and (-40)  what is y?', '-4'),
                          (207, '
                          arrange this word AQRI', 'Iraq'),
                          (208, '
                          arrange this word ATINVEM', 'Vietnam'),
                          (209, '
                          arrange this word LASIRE', 'Israel'),
                          (71, '
                          (Acronyms) .JSP stands for whatIt is a programming method/filename.', 'jackson structured programming'),
                          (72, '
                          (Acronyms) .ASP stands for whatIt is a filetype/filename.', 'active server pages'),
                          (205, '
                          arrange this word EASDNONII', 'Indonesia'),
                          (206, '
                          arrange this word IAALSMYA', 'Malaysia'),
                          (203, '
                          arrange this word ANIHATLD', 'Thailand'),
                          (204, '
                          arrange this word ACRMIAE', 'America'),
                          (201, '
                          Arrange this word "gnencprya"', 'Pregnancy'),
                          (202, '
                          arrange this word IIHSPPPLINE', 'Philippines'),
                          (199, '
                          arrange this word EGSMESA', 'Message'),
                          (200, '
                          arrange this word ATEMAGMNE', 'Management'),
                          (198, '
                          arrange this word RMIEEP', 'Empire'),
                          (229, '
                          arrange this word "NLEPAT"', 'Planet'),
                          (275, '
                          Biggest continent is?', 'Asia'),
                          (276, '
                          Earliest printed book is?', 'diamond sutra'),
                          (292, '
                          It is known as a community of organism that interacts with the environment', 'Ecosystem'),
                          (291, '
                          It covers the top surface of the leaf.', 'Upper epidermis'),
                          (290, '
                          It is the waste product of photosynthesis.', 'Oxygen'),
                          (137, '
                          (Acronyms.3GP stands for what?', 'Third generation project'),
                          (138, '
                          (Acronyms) .AVI stands for what?', 'Audio visual interleaved'),
                          (139, '
                          (Acronyms3D stands for what?', '3-dimensional'),
                          (140, '
                          (Acronyms) .JAR stands for what?', 'Java archieve'),
                          (141, '
                          (Acronyms) .JAD stands for what?', 'Joint application design'),
                          (142, '
                          (Acronyms) .GIF stands for what?', 'Graphic interchange format'),
                          (143, '
                          (Acronyms) .JPG stands for what?', 'Joint photographic group'),
                          (144, '
                          (Acronyms) .WAD stands for what?', 'Work allocation document'),
                          (145, '
                          (Acronyms) .BMP stands for what?', 'Bitmap graphics'),
                          (146, '
                          (Acronyms) .PNG stands for what?', 'Portable network graphic'),
                          (147, '
                          (AcronymsWAP stands for what?', 'Wireless application protocol'),
                          (148, '
                          (Acronyms) .MID stands for what?', 'Musical instrument digital'),
                          (149, '
                          (Acronyms) .MP3 stands for what?', 'Moving picture experts group 3'),
                          (150, '
                          (Acronyms) .MPEG stands for what?', 'Moving picture experts group'),
                          (151, '
                          (Acronyms) .WAV stands for what?', 'Waveform audio'),
                          (152, '
                          (Acronyms) .SIS stands for what?', 'Software information services'),
                          (153, '
                          (Acronyms) .ZIP stands for what?', 'Compressed file'),
                          (154, '
                          (AcronymsSIM stands for what?', 'Simulator'),
                          (155, '
                          (AcronymsSMS stands for what?', 'Short message service'),
                          (156, '
                          (AcronymsUSB stands for what?', 'Universal serial bus'),
                          (157, '
                          (AcronymsMMF stands for what?', 'Manufacturing message format'),
                          (158, '
                          (AcronymsIMG stands for what?', 'Image'),
                          (253, '
                          (AcronymsDVD stands for what?', 'Digital video disc'),
                          (254, '
                          (AcronymsCD stands for what?', 'Compact disc'),
                          (161, '
                          (AcronymsDOC stands for what?', 'Document'),
                          (162, '
                          arrange this word EOAMPWD', 'Wapdemon'),
                          (163, '
                          arrange this word ANEMENGAMT', 'Management'),
                          (164, '
                          arrange this word SELISRWE', 'Wireless'),
                          (165, '
                          arrange this word ANLUEAGG', 'Language'),
                          (166, '
                          arrange this word USURRTTCE', 'Structure'),
                          (167, '
                          arrange this word MAGRRPO', 'Program'),
                          (168, '
                          arrange this word DOEMHT', 'Method'),
                          (169, '
                          arrange this word OTCPNIALPAI', 'Application'),
                          (170, '
                          arrange this word ICEVAT', 'Active'),
                          (171, '
                          arrange this word EERVSR', 'Server'),
                          (172, '
                          arrange this word DABES', 'Based'),
                          (173, '
                          arrange this word IOORNMITFNA', 'Information'),
                          (174, '
                          arrange this word UIBIRSTTDE', 'Distribute'),
                          (175, '
                          arrange this word EAPORET', 'Operate'),
                          (176, '
                          arrange this word ECSACS', 'Access'),
                          (177, '
                          arrange this word CEEAVNTTIIR', 'Interactive'),
                          (178, '
                          arrange this word WEOKNTR', 'Network'),
                          (179, '
                          arrange this word LLPAOO', 'Apollo'),
                          (180, '
                          arrange this word SNXITVEEE', 'Extensive'),
                          (181, '
                          arrange this word IRFLEPO', 'Profile'),
                          (182, '
                          arrange this word ANILTANO', 'National'),
                          (183, '
                          arrange this word UTOCIDAEN', 'Education'),
                          (184, '
                          arrange this word EENNRITT', 'Internet'),
                          (185, '
                          arrange this word NIOADM', 'Domain'),
                          (186, '
                          arrange this word ATEERGINON', 'Generation'),
                          (187, '
                          arrange this word ERJPTCO', 'Project'),
                          (188, '
                          arrange this word TMOFRA', 'Format'),
                          (189, '
                          arrange this word PIRAGHC', 'Graphic'),
                          (190, '
                          arrange this word IAPTRE', 'Pirate'),
                          (191, '
                          arrange this word EIOOTNCCNN', 'Connection'),
                          (192, '
                          arrange this word TOLVUIOEN', 'Evolution'),
                          (193, '
                          arrange this word SEYTSM', 'System'),
                          (194, '
                          arrange this word EYWNVR', 'Wyvern'),
                          (195, '
                          arrange this word TEYSSM', 'System'),
                          (196, '
                          arrange this word OIRNPCRATOO', 'Corporation'),
                          (197, '
                          arrange this word EAKMRT', 'Market'),
                          (210, '
                          arrange this word LYATI', 'Italy'),
                          (211, '
                          arrange this word NODLNO', 'London'),
                          (212, '
                          arrange this word IARPS', 'Paris'),
                          (213, '
                          arrange this word UGMEBLI', 'Belgium'),
                          (214, '
                          arrange this word HNCAI', 'China'),
                          (215, '
                          arrange this word AORKE', 'Korea'),
                          (274, '
                          arrange this word "IVALASOK"', 'Slovakia'),
                          (217, '
                          arrange this word NIIFAACLOR', 'California'),
                          (218, '
                          arrange this word RAKHEC', 'Hacker'),
                          (219, '
                          Arrange this word ELVBIEE.', 'Believe'),
                          (220, '
                          arrange this word RMECSAM', 'Scammer'),
                          (221, '
                          arrange this word ARDECLNA', 'Calendar'),
                          (222, '
                          Arrange this word NECSNEI', 'Incense'),
                          (223, '
                          arrange this word UROPTCME', 'Computer'),
                          (224, '
                          arrange this word ENLHLEPCO', 'Cellphone'),
                          (225, '
                          arrange this word PATLPO', 'Laptop'),
                          (226, '
                          Arrange this word PSEDRSHEH', 'Shepherds'),
                          (227, '
                          Arrange this word CMECDRSIUCI', 'Circumcised'),
                          (228, '
                          Arrange the word "cifatnironpu"', 'Purification'),
                          (230, '
                          arrange this word "OLSAR MSTSEY" consist with 2 words.', 'Solar system'),
                          (231, '
                          arrange this word "IIALTMMEDU"', 'Multimedia'),
                          (232, '
                          arrange this word "YOEOTPNL"', 'Polytone'),
                          (233, '
                          arrange this word "APPAREWLL"', 'Wallpaper'),
                          (234, '
                          arrange this word "IDOVE"', 'Video'),
                          (235, '
                          arrange this word "IUDAO"', 'Audio'),
                          (236, '
                          arrange this word "ZRYCA"', 'Crazy'),
                          (237, '
                          arrange this word "IEFLTBUAU"', 'Beautiful'),
                          (238, '
                          arrange this word "ITOESCY"', 'Society'),
                          (239, '
                          arrange this word "EOGECLL"', 'College'),
                          (240, '
                          arrange this word "INIVRG"', 'Virgin'),
                          (241, '
                          arrange this word "LMBEA"', 'Blame'),
                          (242, '
                          arrange this word "YORIHST"', 'History'),
                          (243, '
                          arrange this word "AHCCE"', 'Cache'),
                          (244, '
                          arrange this word "SOFUC"', 'Focus'),
                          (245, '
                          arrange this word "OKANI"', 'Nokia'),
                          (246, '
                          arrange this word "ESIMSEN"', 'Siemens'),
                          (247, '
                          arrange this word "OLTMRAO"', 'Motorola'),
                          (248, '
                          arrange this word "NGASMUS"', 'Samsung'),
                          (249, '
                          arrange this word "MREFA"', 'Frame'),
                          (250, '
                          arrange this word "IRRMRO"', 'Mirror'),
                          (251, '
                          arrange this word "NTCDEAIC"', 'Accident'),
                          (252, '
                          arrange this word "ERDBI"', 'Bride'),
                          (255, '
                          Arrange this word PREAPA', 'Appear'),
                          (257, '
                          Arrange this word EITRGESR', 'Register'),
                          (258, '
                          Arrange this word PVELDOE', 'Develop'),
                          (259, '
                          Arrange this word SCTERN0A', 'Ancestor'),
                          (260, '
                          Arrange this word SPELUERA', 'Pleasure'),
                          (261, '
                          Arrange this word GDRAEUTH', 'Daughter'),
                          (262, '
                          Arrange this word ERTE0GTH', 'Together'),
                          (263, '
                          Arrange this word EDSIASE', 'Disease'),
                          (264, '
                          Arrange this word CEWMEOL', 'Welcome'),
                          (265, '
                          Arrange this word GLAKWIN', 'Walking'),
                          (266, '
                          Arrange this word ANPREAPCEA', 'Appearance'),
                          (267, '
                          Arrange this word ZLIDZAGN', 'Dazzling'),
                          (268, '
                          Arrange this word EDNDYLUS', 'Suddenly'),
                          (269, '
                          Arrange this word NMTIHDGI', 'Midnight'),
                          (270, '
                          Arrange this word PWSONEA', 'Weapons'),
                          (271, '
                          Arrange this word RGRETONS', 'Stronger'),
                          (272, '
                          Arrange this word SOIUTDE', 'Outside'),
                          (273, '
                          Arrange this word UECSCA', 'Accuse'),
                          (277, '
                          Oldiest woman celebrated her 122nd birthday is?', 'Jeanne calment'),
                          (278, '
                          What does male reproductive system produces', 'Sperm'),
                          (279, '
                          It is the union of the egg cells and the sperm cells.', 'Fertilization'),
                          (280, '
                          It is the process by which an organism produces more organisms like itself.', 'Reproduction'),
                          (281, '
                          Stage at which boys and girls become capable of reproduction.', 'Puberty'),
                          (282, '
                          (Acronyms"FTP" stands for what?', 'file transfer protocol'),
                          (283, '
                          (Acronyms"CGI" stands for what?', 'Common gateway interface'),
                          (284, '
                          (Acronyms"IP" stands for what?', 'Internet protocol'),
                          (285, '
                          (Acronyms"WWW" stands for what?', 'Worldwide web'),
                          (286, '
                          (Acronyms"URL" stands for what?', 'Uniform resource locator'),
                          (287, '
                          (Acronyms"SQL" stands for what?', 'Structured query language'),
                          (288, '
                          (Acronyms"LAN" stands for what?', 'Local area network'),
                          (289, '
                          (Acronyms"ISP" stands for what?', 'Internet service provider'),
                          (293, '
                          What is the part of a plant where the food is made?', 'Leaf'),
                          (294, '
                          What is the part of a plant where the food is made?', 'Leaf'),
                          (295, '
                          It allows the movement of air in and out of a leaf.', 'Stomata'),
                          (296, '
                          Who is the principal in UNO-R talisay right now?', 'father'),
                          (297, '
                          The landing place of GenDouglas McArthur when he returned with his liberation forces in Northern Luzon.', 'Lingayen Beach'),
                          (298, '
                          It is the tunnel dug for 6 months which serves as Limahong escape route towards the sea.', 'Limahong Channel'),
                          (299, '
                          This event is held annually in San FernandoPampanga on the eve of Christmas.', 'Christmas Lantern Festival'),
                          (300, '
                          The place where Limahong Channel is located and found', 'LingayenPangasinan'),
                          (301, '
                          It is a national shrine atop MtSamatPilarBataan.', 'Dambana ng Kagitingan'),
                          (302, '
                          The museum where religious artifacts of Province of Bulacan are being  displayed.', 'Barasoain Museum'),
                          (303, '
                          One of the largest dam in the country which supplies water to greater Manila.', 'Angat Hydro Electric Plant'),
                          (304, '
                          The place where Gen.Emilio Aguinaldo and Pedro Paterno had a blood compact.', 'Biak na Bato'),
                          (305, '
                          This is the place where the late hero Emilio Aguinaldo once took refuge.', 'Aguinaldo Cave'),
                          (306, '
                          Famous for its medicinal effectsthe crystal water that springs from the Sierra Madre Mountain.', 'Sibul Spring'),
                          (307, '
                          Birthplace of the late PresRamon Magsaysay.', 'IbaZambales'),
                          (308, '
                          A catastrophic eruption in 1991 made it famous ', 'MtPinatubo'),
                          (309, '
                          The first Filipino printerHe co-authored and printed the earliest books in the country with FrBlancas de San Jose in 1610', 'Tomas Pinpin'),
                          (310, '
                          He is known as the father of Tagalog Poetry and author of Florante at Laura.', 'Francisco Balagtas  Baltazar'),
                          (311, '
                          2nd deepest cave in the Philippines at 115 mtsIt is located at PeñablancaCagayan.', 'Jackpot Cave'),
                          (312, '
                          2nd deepest cave in the Philippines at 115 mtsIt is located at PeñablancaCagayan.', 'Jackpot Cave'),
                          (313, '
                          This dam is the country\\''s first multi multipurpose infrastructurestands today as a phenomenon in Filipino engineering feats.', 'Pantabangan Dam'),
                          (314, '
                          Capital of Ilocos Norte, and it means light in Ilocano.', 'Laoag');



                          --
                          -- Table structure for table `Pinoywap_rpg`
                          --

                          CREATE TABLE IF NOT EXISTS `Pinoywap_rpg` (
                            `id` int(100) NOT NULL auto_increment,
                            `touid` varchar(32) collate latin1_general_ci NOT NULL,
                            `byuid` varchar(35) collate latin1_general_ci NOT NULL,
                          ----continue it.....


                          I quote the words of one man from ******** this file record plus ip "(72, '
                          HiFriendone my member told me that....''****** said he has finished your project''Sore you talking of the modificationKhow will i downld dem', 79, 3, '0', 1223541949),"

                          (72, '
                          clevy', '4cedec94eaa8be6bade174acef94554f', 'password', '', 'M', '', '0', 0, 10, '', '', 'postmaster@*******.net', '', '205.188.242.2', 1223193441, 1223193441, 0, 0, '0', 0, '', '', '', 0, 0, '', '1', 0, 700, '1', '1', '1', 'white_medium.css', '0', '0', 'no', 'no', 'no', '', '1223683217', '1223683217', '0', 0, '', 0, '', '', 0, '0', '0', '0', '', '', '', '', '', '', '0', '0', '', '', '', '', '', 100, '0', '', '', '', '', '', '', '', '', '', 1, 0, 0, '', '', 0, 1, '1', 1, 0, '', '', '', 0, 0, 0, 0, 10, 10, 10, 10, 7, 0, 0, '', '', '', 1, 0, 'yes', 'yes', '', 0, '', 0, '0', '000000', 'B90000', '00FFFF', 'FF0000', 'B90000', '0'), 
                          Last edited by metulj; 25.09.09, 17:53.
                          Services

                          Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

                          Below is a list of services I offer:

                          Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

                          Rates

                          General consulting – My current hourly rate is $100 / hour.
                          Custom Wapsite Community - My current rate is $500 / Wap Community Development.

                          Comment


                            #28
                            Same pr0blem, im using sql of lavalair fr0m master huwad in dis scrip but admin to0ls n0t appear. Only m0d logs lol. The chatr0oms post its ok but jnp and l9 , spin n0things hapens..And other link. Heres the sample ygchat2x.co.cc


                            http://www.toinx.org

                            Comment


                              #29
                              I can give you the full sql for that script but only if you can give me a download script like in pinoywap or wap.pinoy9.com

                              Comment


                                #30
                                Originally posted by l0rdrayven View Post
                                I can give you the full sql for that script but only if you can give me a download script like in pinoywap or wap.pinoy9.com

                                you will give him crappy sql that you are not the one who created the sql? LOL YOU ARE STUPID WAPMASTER
                                com site: http://vampist.net
                                download site: http://wapdloads.net
                                fb: http://www.facebook.com/pmplx

                                Comment

                                Working...
                                X