Icon Gener Male/female In Chatonline By Funmobile

Started on the old forum in May 2007 · view the original in the archive · old links redirect here

58 replies · 4,268 views · started 19 years ago · 1 min read

TL;DR · summary of 58 replies
  • - The fix was in the code provided by wizard, which needed to be placed in the online list section of the chat.php page.
  • - The code approach involved modifying the existing script to include a check for user sex (male/female) and display appropriate images/icons next to their names in the online list.
  • - It stayed unresolved for those who were trying to add male/female icons specifically for the RW script, as the provided code did not work for that particular setup.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

10 participants
wizard Senior · 493 posts #22
<?php

include("config.php");
include("core.php");

if($mime== WEB)
{
    echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";

    echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">";

    }else{
    echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>";

    echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
}

    $bcon = connectdb();
    if (!$bcon)
    {
if($mime== WEB)
{
    echo dberror($mime);

}else{
    echo dberror($mime);
}
    }
$getuthm = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'"));
$uth = $getuthm[0];
if(!$uth=="")
{
$uthm = "$uth";
}else{
$uthm = "default.css";
}
$action = $_GET["action"];
$page = $_GET["page"];
$who = $_GET["who"];
$brws = explode(" ",$HTTP_USER_AGENT);
$ubr = $brws[0];
$uip = getip();
$id=$_GET["id"];
$rid=$_GET["rid"];
$rpw=$_GET["rpw"];
$uexist = isuser($uid);

        if((islogged($ses)==false)||($uid==0))
        {
if($mime== WEB)
{
    echo notlogged($mime);

}else{
    echo notlogged($mime);
}

        }  

    if(isipbanned($uip,$ubr))
        {

      if(!isshield(getuid_ses($ses)))
      {
if($mime== WEB)
{
    echo useripbanned($mime,$uip,$ubr);

}else{
    echo useripbanned($mime,$uip,$ubr);
}

      }
        }

    //echo isbanned($uid);
    if(isbanned($uid))
        {
if($mime== WEB)
{
    echo userbanned($mime,$uid);

}else{
    echo userbanned($mime,$uid);
}

        }
    $isroom = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_rooms WHERE id='".$rid."'"));
    if($isroom[0]==0)
    {

    if($mime== WEB)
    {
        echo webhead($uthm,$stitle);
      echo "<p align=\"center\">";
      echo "Questa Stanza Non Esiste
";
      echo ":P Selezionane Un Altra

";
      echo "<a href=\"index.php?action=chat&ses=$ses\">Chat</a>";
      echo "</p>";
        echo webfoot();
        exit();
    }else{
        echo waphead($stitle);
      echo "<p align=\"center\">";
      echo "Questa Stanza Non Esiste
";
      echo ":P Selezionane Un Altra

";
      echo "<a href=\"index.php?action=chat&ses=$ses\">Chat</a>";
      echo "</p>";
        echo wapfoot();
        exit();

    }

    }
    $passworded = mysql_fetch_array(mysql_query("SELECT pass FROM ibwf_rooms WHERE id='".$rid."'"));
    if($passworded[0]!="")
    {
      if($rpw!=$passworded[0])
      {
    if($mime== WEB)
    {
        echo webhead($uthm,$stitle);
      echo "<p align=\"center\">";
      echo "Non Puoi Accedere
";
      echo ":P Cambia Stanza

";
      echo "<a href=\"index.php?action=chat&ses=$ses\">Chat</a>";
      echo "</p>";
        echo webfoot();
        exit();
    }else{
        echo waphead($stitle);
      echo "<p align=\"center\">";
      echo "Non Puoi Accedere
";
      echo ":P Cambia Stanza

";
      echo "<a href=\"index.php?action=chat&ses=$ses\">Chat</a>";
      echo "</p>";
        echo wapfoot();
        exit();

    }

      }
    }
    if(!canenter($rid,$ses))
    {

    if($mime== WEB)
    {
        echo webhead($uthm,$stitle);
      echo "<p align=\"center\">";
      echo "Non Puoi Accedere
";
      echo ":P Cambia Stanza

";
      echo "<a href=\"index.php?action=chat&ses=$ses\">Chat</a>";
      echo "</p>";
        echo webfoot();
        exit();
    }else{
        echo waphead($stitle);
      echo "<p align=\"center\">";
      echo "Non Puoi Accedere
";
      echo ":P stay away

";
      echo "<a href=\"index.php?action=chat&ses=$ses\">Chat</a>";
      echo "</p>";
        echo wapfoot();
        exit();

    }

    }
    addtochat($uid, $rid);

        $timeto = 300;
            $timenw = time();
            $timeout = $timenw-$timeto;
            $deleted = mysql_query("DELETE FROM ibwf_chat WHERE timesent<".$timeout."");
            
if ($action=="")
{
     if($mime== WEB)
    {
        echo webheadchat($rid,$ses,$rpw,$uthm,$stitle);
       echo "<p align=\"center\">";

          addonline($uid,"Chatrooms","");
        echo "
        <a href=\"chat.php?action=say&ses=$ses&rid=$rid&rpw=$rpw\">Scrivi</a>, ";
        echo "<a href=\"chat.php?time=";
        echo date('dmHis');
        echo "&ses=$ses&rid=$rid&rpw=$rpw";
        echo "\">aggiorna</a>";
        

        $unreadinbox=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE unread='1' AND touid='".$uid."'"));
        $pmtotl=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".$uid."'"));
        $unrd="(".$unreadinbox[0]."/".$pmtotl[0].")";
        if ($unreadinbox[0]>0)
        {
        echo "
<a href=\"inbox.php?action=main&ses=$ses\">Mp $unrd</a>";
      }
      echo "</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){
            
            $chatok = mysql_query("INSERT INTO ibwf_chat SET  chatter='".$uid."', who='".$who."', timesent='".time()."', msgtext='".$message."', 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;
            $msgst= mysql_query("UPDATE ibwf_users SET chmsgs='".$totl."' WHERE id='".$uid."'");
            if($rinfo[1]==2)
            {
              //oh damn i gotta post this message to chatbot :(
              //will it succeed?
              $botid = "eeb070e74e366473";
              $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='8152', who='', timesent='".time()."', msgtext='".$reply." @".getnick_uid($uid)."', rid='".$rid."';");
            }
          }
          $message = "";
            }
            
            echo "

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

                }
                  $chnick = getnick_uid($chat[0]);
                    $optlink = $iml.$chnick;
                  if(($chat[1]!=0)&&($chat[0]==$uid))
                  {
                    ///out
                    $iml = "<img src=\"moods/out.gif\" alt=\"!\"/>";
                    $chnick = getnick_uid($chat[1]);
                    $optlink = $iml."Privato A: ".$chnick;
                  }
                  if($chat[1]==$uid)
                  {
                    ///out
                    $iml = "<img src=\"moods/in.gif\" alt=\"!\"/>";
                    $chnick = getnick_uid($chat[0]);
                    $optlink = $iml."Privato Da: ".$chnick;
                  }
                    if($chat[4]=='1')
                  {
                    ///out
                    $iml = "<img src=\"moods/point.gif\" alt=\"!\"/>";
                    $chnick = getnick_uid($chat[0]);
                    $tonick = getnick_uid($chat[1]);
                    $optlink = "$iml by ".$chnick." to ".$tonick;
                  }
                  
                  $ds= date("H.i.s", $chat[2]);
                  $text = parsepm($chat[3], $ses);
                  $nos = substr_count($text,"<img src=");
                  if(isspam($text))
                  {
                    $chnick = getnick_uid($chat[0]);
                    echo "Moderator:»*We! $chnick, no spamming*
";
                  }
                  else if($nos>2){
                    $chnick = getnick_uid($chat[0]);
                    echo "Moderator:»*Attenzione: $chnick, Sono consentiti 2 smiley per messaggio*
";
                  }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, $ses);
                        
                        echo "*$chnick $tosay*
";
                    }else{
                      
                      $tosay = parsepm($chat[3], $ses);
                      
                      if($rinfo[0]==1)
                      {
                         $tosay = str_replace("fuck","*this word rhymes with duck*",$tosay);
                         $tosay = str_replace("shit","*dont swear*",$tosay);
                         $tosay = str_replace("dick","*ooo! you dirty person*",$tosay);
                         $tosay = str_replace("pussy","*angel flaps*",$tosay);
                         $tosay = str_replace("cock","*daddy stick*",$tosay);
                         $tosay = str_replace("can i be a mod","*im sniffing staffs ass*",$tosay);
                         $tosay = str_replace("can i be admin","*im a big ass kisser*",$tosay);
                         
                         $tosay = str_replace("ginger","*the cute arsonist*",$tosay);
                         $tosay = str_replace("neon","*the cute but evil princess*",$tosay);
                         $tosay = str_replace("kaas","*the cheese boy*",$tosay);
                         $tosay = str_replace("slut","*s+m freak*",$tosay);
                         $tosay = str_replace("kahla","*lyrical lizard*",$tosay);
                         
                                             
                       }
                      
                      if($rinfo[1]==1)
                      {
                          $tosay = htmlspecialchars($chat[3]);
                          $tosay = strrev($tosay);
                        }
                  echo "<a href=\"chat.php?action=say2&ses=$ses&who=$chat[0]&rid=$rid&rpw=$rpw\">$optlink</a>»$ds
";
                  echo $tosay."
";
                  }
                }
               
                  $counter++;
                }
                }
            }
            echo "";
            echo "</p>";
        
        echo "<p align=\"center\">";
        $chatters=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline where rid='".$rid."'"));
        echo "
<a href=\"chat.php?action=inside&ses=$ses&rid=$rid&rpw=$rpw\">Online($chatters[0])</a>
";
        echo "<a href=\"index.php?action=chat&ses=$ses\">Stanze</a>
";
        echo "<a href=\"index.php?action=main&ses=$ses\">Home</a></p>";
        
        echo webfoot();

    }else{
        echo wapheadchat($rid,$ses,$rpw,$stitle);
           echo "<timer value=\"200\"/><p align=\"center\">";
          addonline($uid,"Chatrooms","");
        echo "
        <a href=\"chat.php?action=say&ses=$ses&rid=$rid&rpw=$rpw\">Scrivi</a>, ";
        echo "<a href=\"chat.php?time=";
        echo date('dmHis');
        echo "&ses=$ses&rid=$rid&rpw=$rpw";
        echo "\">Aggiorna</a>";
        

        $unreadinbox=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE unread='1' AND touid='".$uid."'"));
        $pmtotl=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE touid='".$uid."'"));
        $unrd="(".$unreadinbox[0]."/".$pmtotl[0].")";
        if ($unreadinbox[0]>0)
        {
        echo "
<a href=\"inbox.php?action=main&ses=$ses\">Inbox$unrd</a>";
      }
      echo "</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){
            
            $chatok = mysql_query("INSERT INTO ibwf_chat SET  chatter='".$uid."', who='".$who."', timesent='".time()."', msgtext='".$message."', 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;
            $msgst= mysql_query("UPDATE ibwf_users SET chmsgs='".$totl."' WHERE id='".$uid."'");
            if($rinfo[1]==2)
            {
              //oh damn i gotta post this message to ravebabe :(
              //will it succeed?
              $botid = "eeb070e74e366473";
              $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='8152', who='', timesent='".time()."', msgtext='".$reply." @".getnick_uid($uid)."', rid='".$rid."';");
            }
          }
          $message = "";
            }
            
            echo "

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

                }
                  $chnick = getnick_uid($chat[0]);
                    $optlink = $iml.$chnick;
                  if(($chat[1]!=0)&&($chat[0]==$uid))
                  {
                    ///out
                    $iml = "<img src=\"moods/out.gif\" alt=\"!\"/>";
                    $chnick = getnick_uid($chat[1]);
                    $optlink = $iml."Privato A: ".$chnick;
                  }
                  if($chat[1]==$uid)
                  {
                    ///out
                    $iml = "<img src=\"moods/in.gif\" alt=\"!\"/>";
                    $chnick = getnick_uid($chat[0]);
                    $optlink = $iml."PM by ".$chnick;
                  }
                    if($chat[4]=='1')
                  {
                    ///out
                    $iml = "<img src=\"moods/point.gif\" alt=\"!\"/>";
                    $chnick = getnick_uid($chat[0]);
                    $tonick = getnick_uid($chat[1]);
                    $optlink = "$iml by ".$chnick." to ".$tonick;
                  }
                  
                  $ds= date("H.i.s", $chat[2]);
                  $text = parsepm($chat[3], $ses);
                  $nos = substr_count($text,"<img src=");
                  if(isspam($text))
                  {
                    $chnick = getnick_uid($chat[0]);
                    echo "Chat system:»*oi! $chnick, no spamming*
";
                  }
                  else if($nos>2){
                    $chnick = getnick_uid($chat[0]);
                    echo "Chat system:»*hey! $chnick, you can only use 2 smilies per msg*
";
                  }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, $ses);
                        
                        echo "*$chnick $tosay*
";
                    }else{
                      
                      $tosay = parsepm($chat[3], $ses);
                      
                      if($rinfo[0]==1)
                      {
                         $tosay = str_replace("fuck","*this word rhymes with duck*",$tosay);
                         $tosay = str_replace("shit","*dont swear*",$tosay);
                         $tosay = str_replace("dick","*ooo! you dirty person*",$tosay);
                         $tosay = str_replace("pussy","*angel flaps*",$tosay);
                         $tosay = str_replace("cock","*daddy stick*",$tosay);
                         $tosay = str_replace("can i be a mod","*im sniffing staffs ass*",$tosay);
                         $tosay = str_replace("can i be admin","*im a big ass kisser*",$tosay);
                         
                         $tosay = str_replace("ginger","*the cute arsonist*",$tosay);
                         $tosay = str_replace("neon","*the cute but evil princess*",$tosay);
                         $tosay = str_replace("kaas","*the cheese boy*",$tosay);
                         $tosay = str_replace("slut","*s+m freak*",$tosay);
                         $tosay = str_replace("kahla","*lyrical lizard*",$tosay);
                         
                                             
                       }
                      
                      if($rinfo[1]==1)
                      {
                          $tosay = htmlspecialchars($chat[3]);
                          $tosay = strrev($tosay);
                        }
                  echo "<a href=\"chat.php?action=say2&ses=$ses&who=$chat[0]&rid=$rid&rpw=$rpw\">$optlink</a>»$ds
";
                  echo $tosay."
";
                  }
                }
               
                  $counter++;
                }
                }
            }
            echo "";
            echo "</p>";
        
        echo "<p align=\"center\">";
        $chatters=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline where rid='".$rid."'"));
        echo "
<a href=\"chat.php?action=inside&ses=$ses&rid=$rid&rpw=$rpw\">Online($chatters[0])</a>
";
        echo "<a href=\"index.php?action=chat&ses=$ses\">Chatrooms</a>
";
        echo "<a href=\"index.php?action=main&ses=$ses\">Home</a></p>";
        
        echo wapfoot();

    }         
}else if ($action=="say")
{
    if($mime== WEB)
    {
        echo webhead($uthm,$stitle);
            echo "

";
echo "<form action=\"chat.php?ses=$ses&rid=$rid&rpw=$rpw\" method=\"post\">";
echo "Messaggio:<input name=\"message\" type=\"text\" value=\"\" maxlength=\"255\"/>
";
            
            echo "<input type=\"submit\" value=\"Invia\"/>";
            echo "</form>
";

            echo "<a href=\"lists.php?action=chmood&ses=$ses&page=1\">»Chat mood</a>
";
            echo "<a href=\"chat.php?action=inside&ses=$ses&rid=$rid&rpw=$rpw\">»Online</a>
";
            echo "<a href=\"chat.php?ses=$ses&rid=$rid&rpw=$rpw\">«Chatroom</a></p>";
        //end
        
        echo "<p align=\"center\"><a href=\"index.php?action=chat&ses=$ses\"><img src=\"images/chat.gif\" alt=\"*\"/>Chatrooms</a>
";
        echo "<a href=\"index.php?action=main&ses=$ses\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a></p>";
        echo webfoot();

    }else{
        echo waphead($stitle);
            echo "

Messaggio:<input name=\"message\" type=\"text\" value=\"\" maxlength=\"255\"/>
";
            echo "<anchor>«Invia";
            echo "<go href=\"chat.php?ses=$ses&rid=$rid&rpw=$rpw\" method=\"post\">";
            echo "<postfield name=\"message\" value=\"$(message)\"/>";
            echo "</go></anchor>
";
            echo "<a href=\"lists.php?action=chmood&ses=$ses&page=1\">»Chat mood</a>
";
            echo "<a href=\"chat.php?action=inside&ses=$ses&rid=$rid&rpw=$rpw\">»Online</a>
";
            echo "<a href=\"chat.php?ses=$ses&rid=$rid&rpw=$rpw\">«Chatroom</a></p>";
        //end
        
        echo "<p align=\"center\"><a href=\"index.php?action=chat&ses=$ses\"><img src=\"images/chat.gif\" alt=\"*\"/>Chatrooms</a>
";
        echo "<a href=\"index.php?action=main&ses=$ses\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a></p>";
        echo wapfoot();

    }
}else if ($action=="say2")
{
    if($mime== WEB)
    {
        echo webhead($uthm,$stitle);
       echo "<p align=\"center\">";
        $unick = getnick_uid($who);
        echo "Privato A $unick";
        echo "</p>";
        
        addonline($uid,"Messaggi","");
         
            echo "

";
echo "<form action=\"chat.php?ses=$ses&rid=$rid&rpw=$rpw\" method=\"post\">";
echo "Messaggio:<input name=\"message\" type=\"text\" value=\" \" maxlength=\"255\"/>
";
            echo "<input type=\"hidden\" name=\"who\" value=\"$who\"/>";
        echo "<input type=\"submit\" value=\"Privato\"/>";
            echo "</form>
";
            echo "<a href=\"index.php?action=viewuser&ses=$ses&who=$who\">»Vedi Profilo Di $unick's</a>
";
            echo "<a href=\"chat.php?action=expose&ses=$ses&who=$who&rid=$rid&rpw=$rpw\">»Segnala $unick</a>
";
            
            echo "<a href=\"chat.php?action=inside&ses=$ses&rid=$rid&rpw=$rpw\">»Online</a>
";
            echo "<a href=\"chat.php?ses=$ses&rid=$rid&rpw=$rpw\">«Chatroom</a></p>";
        //end
        
        echo "<p align=\"center\"><a href=\"index.php?action=chat&ses=$ses\"><img src=\"images/chat.gif\" alt=\"*\"/>Chatrooms</a>
";
        echo "<a href=\"index.php?action=main&ses=$ses\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a></p>";
        echo webfoot();

    }else{
        echo waphead($stitle);
       echo "<p align=\"center\">";
        $unick = getnick_uid($who);
        echo "Privato A $unick";
        echo "</p>";
        
        addonline($uid,"Messaggi","");
         
            echo "

Messaggio:<input name=\"message\" type=\"text\" value=\" \" maxlength=\"255\"/>
";
            echo "<anchor>«Privato";
            echo "<go href=\"chat.php?ses=$ses&rid=$rid&rpw=$rpw\" method=\"post\">";
            echo "<postfield name=\"message\" value=\"$(message)\"/>";
            echo "<postfield name=\"who\" value=\"$who\"/>";
            echo "</go></anchor>
";
            echo "<a href=\"index.php?action=viewuser&ses=$ses&who=$who\">»Vedi Profilo Di $unick's</a>
";
            echo "<a href=\"chat.php?action=expose&ses=$ses&who=$who&rid=$rid&rpw=$rpw\">»Segnala $unick</a>
";
            
            echo "<a href=\"chat.php?action=inside&ses=$ses&rid=$rid&rpw=$rpw\">»Online</a>
";
            echo "<a href=\"chat.php?ses=$ses&rid=$rid&rpw=$rpw\">«Chatroom</a></p>";
        //end
        
        echo "<p align=\"center\"><a href=\"index.php?action=chat&ses=$ses\"><img src=\"images/chat.gif\" alt=\"*\"/>Chatrooms</a>
";
        echo "<a href=\"index.php?action=main&ses=$ses\"><img src=\"images/home.gif\" alt=\"*\"/>Home<;/a></p>";
        echo wapfoot();

    }
}else if ($action=="inside")
{
          
addonline($uid,"Utenti","");
         if($mime== WEB)
    {
        echo webhead($uthm,$stitle);
        echo "<p align=\"center\">
";
        $inside=mysql_query("SELECT DISTINCT * FROM ibwf_chonline WHERE rid='".$rid."' and uid IS NOT NULL");
        
        while($ins=mysql_fetch_array($inside))
        {
          $unick = getnick_uid($ins[1]);
          $userl = "<a href=\"chat.php?action=say2&ses=$ses&who=$ins[1]&rid=$rid&rpw=$rpw\">$unick</a>, ";
          echo "$userl";
        }
        echo "

";
        echo "<a href=\"chat.php?ses=$ses&rid=$rid&rpw=$rpw\">«Chatroom</a>
";
        echo "
<a href=\"index.php?action=chat&ses=$ses\"><img src=\"images/chat.gif\" alt=\"*\"/>Chatrooms</a>
";
        echo "<a href=\"index.php?action=main&ses=$ses\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a></p>";
        
        echo webfoot();

    }else{
        echo waphead($stitle);
        echo "<p align=\"center\">
";
        $inside=mysql_query("SELECT DISTINCT * FROM ibwf_chonline WHERE rid='".$rid."' and uid IS NOT NULL");
        
        while($ins=mysql_fetch_array($inside))
        {
          $unick = getnick_uid($ins[1]);
          $userl = "<a href=\"chat.php?action=say2&ses=$ses&who=$ins[1]&rid=$rid&rpw=$rpw\">$unick</a>, ";
          echo "$userl";
        }
        echo "

";
        echo "<a href=\"chat.php?ses=$ses&rid=$rid&rpw=$rpw\">«Chatroom</a>
";
        echo "
<a href=\"index.php?action=chat&ses=$ses\"><img src=\"images/chat.gif\" alt=\"*\"/>Chatrooms</a>
";
        echo "<a href=\"index.php?action=main&ses=$ses\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a></p>";
        
        echo wapfoot();

    }                                      
}else if ($action=="expose")           
{
    if($mime== WEB)
    {
        echo webhead($uthm,$stitle);
       echo "<p align=\"center\">
";
        mysql_query("UPDATE ibwf_chat SET exposed='1' WHERE chatter='".$who."' AND who='".$uid."'");
        $unick = getnick_uid($who);
        echo "$unick Messaggio Inoltrato Allo Staff";
        echo "

";
        echo "<a href=\"chat.php?ses=$ses&rid=$rid&rpw=$rpw\">«Chatroom</a>
";
        echo "
<a href=\"index.php?action=chat&ses=$ses\"><img src=\"images/chat.gif\" alt=\"*\"/>Chatrooms</a>
";
        echo "<a href=\"index.php?action=main&ses=$ses\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a></p>";
        echo webfoot();

    }else{
        echo waphead($stitle);
       echo "<p align=\"center\">
";
        mysql_query("UPDATE ibwf_chat SET exposed='1' WHERE chatter='".$who."' AND who='".$uid."'");
        $unick = getnick_uid($who);
        echo "$unick Messaggio Inoltrato Allo Staff";
        echo "

";
        echo "<a href=\"chat.php?ses=$ses&rid=$rid&rpw=$rpw\">«Chatroom</a>
";
        echo "
<a href=\"index.php?action=chat&ses=$ses\"><img src=\"images/chat.gif\" alt=\"*\"/>Chatrooms</a>
";
        echo "<a href=\"index.php?action=main&ses=$ses\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a></p>";
        echo wapfoot();

    }
addonline($uid,"Chat inside list","");
                                           
}
        
        
?>

how I add this code???

while ($item = mysql_fetch_array($items))
    {
$fuckyou = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$item[2]."'"));
if($fuckyou[0]=="1") {
$seximg = "<img src=\"images/male.gif\" alt=\"*\"/>";
}else if($fuckyou[0]=="2") {
$seximg = "<img src=\"images/female.gif\" alt=\"*\"/>";
}else{
$seximg = "wtf am i?";
}

      $lnk = "<a href=\"index.php?action=viewuser&who=$item[2]&ses=$ses\">$seximg$item[0]</a>";
      echo "$lnk - $item[1] 
";
    }

help me please

i said thats for d fooooooooookin online list

subzero Super moderator Fellow · 3,954 posts #23

this is why Mr. subzero had stop helpping fookmits out

if you cant code dont own a site! if you cant add a dumb scriptlet that was easy to place down DONT OWN A FOOKIN SITE! if you need us to upload fix ya dumb errors or make you a script PAY FOR OUR TIME THAT IS FOOKIN WASTED ON YOU!! 117 sweetangel is posted by crap and please read sticky post in wap/web scripts! sweetangel!!

got it??

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Guest #25
while ($item = mysql_fetch_array($items))
    {
$fuckyou = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$item[2]."'"));
if($fuckyou[0]=="1") {
$seximg = "<img src=\"images/male.gif\" alt=\"*\"/>";
}else if($fuckyou[0]=="2") {
$seximg = "<img src=\"images/female.gif\" alt=\"*\"/>";
}else{
$seximg = "wtf am i?";
}

      $lnk = "<a href=\"index.php?action=viewuser&who=$item[2]&ses=$ses\">$seximg$item[0]</a>";
      echo "$lnk - $item[1] 
";
    }

i have been trying to code this from last week lol thanks alot bro

phoenix90 Developer · 113 posts #30

that code dont work for me External image (may be gone)

while ($item = mysql_fetch_array($items)) { $fuckyou = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$item[2]."'")); if($fuckyou[0]=="1") { $seximg = "<img src="images/male.gif" alt=""/>"; }else if($fuckyou[0]=="2") { $seximg = "<img src="images/female.gif" alt=""/>"; }else{ $seximg = "wtf am i?"; }

  $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\">$seximg$item[0]</a>";
  echo "$seximg $lnk - $item[1] 

"; }

wizard Senior · 493 posts #31

while ($item = mysql_fetch_array($items)) { $fuckyou = mysql_fetch_array(mysql_query("SELECT sex FROM ibwf_users WHERE id='".$item[2]."'")); if($fuckyou[0]=="1") { $seximg = "<img src="images/male.gif" alt=""/>"; }else if($fuckyou[0]=="2") { $seximg = "<img src="images/female.gif" alt=""/>"; }else{ $seximg = "wtf am i?"; }

  $lnk = "<a href=\"index.php?action=viewuser&amp;who=$item[2]&amp;sid=$sid\">$seximg$item[0]</a>";
  echo "$seximg $lnk - $item[1] 

"; }

where did u put that?

phoenix90 Developer · 113 posts #32

where did u put that?

What do you mean, i didn'y use that one, used another one

Guest #33

That was unfair to the lady! Seriously...she was trying to learn. And is that not the aim of this site in the first place?

WhiteWarrior Principal · 1,419 posts #35

a user flag? what page you want to see it on?.. best person to ask is wizard as its his script

sweetangel Lead · 885 posts #39
echo "IP:<a href=\"lists.php?action=byip&ses=$ses&who=$who\">$uipadd[0]</a>
";

where I add the code 4 view the flag 4 IP??

help me

if like my post click:

External image (may be gone)

amylee Principal · 1,092 posts #40

read what wizard just wrote follow whats in the zip file

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close