Chat System

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    Lol..The code only show "me enter the room" but not show the user nick?And how to add browser for example :

    Chat system:
    boyzone enter the room
    browser : Mozilla 4.0[/b]

    Lol..The code only show "me enter the room" but not show the user nick?[/b]
    as you see chane me to uid hehehehe i will share it...


    reveal who entered the room..

    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
    $me= getnick_uid($uid);
    mysql_query("INSERT INTO ibwf_chat SET chatter=&#39;1&#39;, who=&#39;".$who."&#39;, timesent=&#39;".time()."&#39;, msgtext=&#39;$me entered the JAKENPOY Chat room&#39;, rid=&#39;".$rid."&#39;");
    </div>

    different chat pages hehehehehe
    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


      #32
      Ok lets finish this one. But a little advice bro as site owner you dont need to be a good coder but you must atleast understand php code

      Here it is Replace your addtochat function with
      Code:
      function addtochat($uid, $rid)
      {
      $bago = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE uid=&#39;".$uid."&#39; AND rid=&#39;".$rid."&#39;"));
      if($bago[0]==0){
      $msg = "*mat Enter the Room";
      mysql_query("INSERT INTO ibwf_chat SET timesent=&#39;".time()."&#39;, chatter=&#39;".$uid."&#39;, text=&#39;".$msg."&#39;");
      }
      
      $timeto = 120;
      $timenw = time();
      $timeout = $timenw - $timeto;
      $exec = mysql_query("DELETE FROM ibwf_chonline WHERE lton<&#39;".$timeout."&#39;");
      $res = mysql_query("INSERT INTO ibwf_chonline SET lton=&#39;".time()."&#39;, uid=&#39;".$uid."&#39;, rid=&#39;".$rid."&#39;");
      if(!$res)
      {
      mysql_query("UPDATE ibwf_chonline SET lton=&#39;".time()."&#39;, rid=&#39;".$rid."&#39; WHERE uid=&#39;".$uid."&#39;");
      }
      }
      Find this code inside your chat.php (If you cant find this code better to post your whole chat.php code here )
      Code:
      if(isspam($text))
      {
      $chnick = getnick_uid($chat[0]);
      echo "[b]Chat system:[i]*$chnick, please don&#39;t try to spam*[/i][/b]
      ";
      }
      Replace it with
      Code:
      if(isspam($text) || substr($chat[3],0,4)=="*mat")
      {
      $chnick = getnick_uid($chat[0]);
      if(isspam($text)){
      echo "[b]Chat system:[i]*$chnick, please don&#39;t try to spam*[/i][/b]
      ";
      }else{
      echo "[b]Chat system:[i]*$chnick, Joined the room*[/i][/b]
      ";
      }
      }
      [/b]
      im very respect and appriciate your work. .U try to help us as u can without "though this dont work" or "echo "code by min0taur"; like wut rukiya do. .But do this code really work bro?Just need a cofirmation coz my internet connection have a problem and need to go to cyber cafe to edit my wap. .So i dont want to throw my money just to edit a not working code.Tq.

      Comment


        #33
        how i make at me 2 work i tried but dont show<div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?php
        ////////////////////////////////////////
        ////////////// CHAT.php By IonutXp
        ////////////////////////////////////////


        header("Content-type: text/vnd.wap.wml");
        header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // expires in the past
        header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Last modified, right now
        header("Cache-Control: no-cache, must-revalidate"); // Prevent caching, HTTP/1.1
        header("Pragma: no-cache");
        print "<?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\">";
        //8152
        ?>
        <wml>
        <head>
        <meta forua="true" http-equiv="Cache-Control" content="max-age=0"/>
        <meta forua="true" http-equiv="Cache-Control" content="must-revalidate"/>
        </head>
        <?php

        include("config.php");
        include("core.php");
        connectdb();
        $action=$_GET["action"];
        $id=$_GET["id"];
        $sid = $_GET["sid"];
        $rid=$_GET["rid"];
        $rpw=$_GET["rpw"];
        $font=$_GET["font"];
        $uid = getuid_sid($sid);

        $uexist = isuser($uid);

        if((islogged($sid)==false)||!$uexist)
        {
        echo "<card id=\"main\" title=\"TecWeb\">";
        echo "<p align=\"center\">";
        echo "<img src=\"images/notok.gif\" alt=\"x\"/>Nu esti logat
        ";
        echo "Sau sesiunea ta a expirat

        ";
        echo "<a href=\"index.php\">LOGARE</a>";
        echo "</p>";
        echo "</card>";
        echo "</wml>";
        exit();
        }

        if(isbanned($uid))
        {
        echo "<card id=\"main\" title=\"TecWeb\">";
        echo "<p align=\"center\">";
        echo "<img src=\"images/notok.gif\" alt=\"x\"/>
        ";
        echo "Esti Banat(a)
        ";
        $banto = mysql_fetch_array(mysql_query("SELECT timeto, pnreas, exid FROM lib3rtymrc_penalties WHERE uid=&#39;".$uid."&#39; AND penalty=&#39;1&#39; OR uid=&#39;".$uid."&#39; AND penalty=&#39;2&#39;"));
        $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM lib3rtymrc_users WHERE id=&#39;".$uid."&#39;"));
        $remain = $banto[0]- time();
        $rmsg = gettimemsg($remain);
        echo "Timp ramas pana la debanare: $rmsg
        ";
        $nick = getnick_uid($banto[2]);
        echo "By: $nick
        ";
        echo "Motiv ban: $banres[0]";
        //echo "<a href=\"index.php\">Login</a>";
        echo "</p>";
        echo "</card>";
        echo "</wml>";
        exit();
        }
        if(ischatban($uid))
        {
        echo "<card id=\"main\" title=\"TecWeb\">";
        echo "<p align=\"center\">";
        echo "<img src=\"images/notok.gif\" alt=\"x\"/>";
        echo "Esti Banat(a) pe acest serviciu
        ";
        $banto = mysql_fetch_array(mysql_query("SELECT timeto, pnreas, exid FROM lib3rtymrc_penalties WHERE uid=&#39;".$uid."&#39; AND penalty=&#39;4&#39;"));
        $remain = $banto[0]- time();
        $rmsg = gettimemsg($remain);
        echo "Timp ramas pana la debanare: $rmsg
        ";
        $nick = getnick_uid($banto[2]);
        echo "By: $nick
        ";
        $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM lib3rtymrc_users WHERE id=&#39;".$uid."&#39;"));
        echo "Motiv ban: $banres[0]
        ";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
        echo "Prim</a>";
        echo "</p>";
        echo "</card>";
        echo "</wml>";
        exit();
        }
        ///////////////////////////////////time
        $res = mysql_fetch_array(mysql_query("SELECT lastact FROM lib3rtymrc_users WHERE id=&#39;".$uid."&#39;"));
        $lastact = $res[0];
        $atime = time() - $lastact;

        if($atime<1800){
        $res = mysql_fetch_array(mysql_query("SELECT otime, mtime FROM lib3rtymrc_users where id=&#39;".$uid."&#39;"));
        $otime = $res[0] + $atime;
        $mtime = $res[1] + $atime;
        $res = mysql_query("UPDATE lib3rtymrc_users SET otime=&#39;".$otime."&#39;, mtime=&#39;".$mtime."&#39; where id=&#39;".$uid."&#39;");
        }

        $isroom = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_rooms WHERE id=&#39;".$rid."&#39;"));
        if($isroom[0]==0)
        {
        echo "<card id=\"main\" title=\"TecWeb\">";
        echo "<p align=\"center\">";
        echo "Aceasta camera nu mai exista
        ";
        echo ":P vezi in alta camera

        ";
        echo "<a href=\"index.php?action=chat&amp;sid=$sid\">Camere chat</a>";
        echo "</p>";
        echo "</card>";
        echo "</wml>";
        exit();
        }
        $passworded = mysql_fetch_array(mysql_query("SELECT pass FROM lib3rtymrc_rooms WHERE id=&#39;".$rid."&#39;"));
        if($passworded[0]!="")
        {
        if($rpw!=$passworded[0])
        {
        echo "<card id=\"main\" title=\"TecWeb\">";
        echo "<p align=\"center\">";
        echo "Nu poti intra in aceasta camera!
        ";
        echo "Parola gresita!

        ";
        echo "<a href=\"index.php?action=chat&amp;sid=$sid\">Camere chat</a>";
        echo "</p>";
        echo "</card>";
        echo "</wml>";
        exit();
        }
        }
        if(!canenter($rid,$sid))
        {
        echo "<card id=\"main\" title=\"TecWeb\">";
        echo "<p align=\"center\">";
        echo "Nu poti intra in aceasta camera
        ";
        echo ":P hai ia distanta

        ";
        echo "<a href=\"index.php?action=chat&amp;sid=$sid\">Camere chat</a>";
        echo "</p>";
        echo "</card>";
        echo "</wml>";
        exit();
        }
        addtochat($uid, $rid);


        $timeto = 300;
        $timenw = time();
        $timeout = $timenw-$timeto;
        $deleted = mysql_query("DELETE FROM lib3rtymrc_chat WHERE timesent<".$timeout."");

        if ($action=="")
        {

        $rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM lib3rtymrc_rooms WHERE id=&#39;".$rid."&#39;"));
        $rname = $rooms[1];
        $nick = getnick_sid($sid);
        //echo "<card id=\"chat\" title=\"".date("H:i:s")."\" ontimer=\"chat.php?time=";
        echo "<card id=\"chat\" title=\"$nick@$rname\" ontimer=\"chat.php?time=";
        echo date(&#39;dmHis&#39;);
        echo "&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw";

        echo "\">";

        //start of main card


        echo "<timer value=\"200\"/><p align=\"center\">";
        addonline($uid,"Camera Chat $rname","chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$r pw");
        // alerte
        $uid = getuid_sid($sid);
        $unreadpopup=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_popups WHERE unread=&#39;1&#39; AND touid=&#39;".$uid."&#39;"));
        if ($unreadpopup[0]>0)
        {
        echo popup($sid);
        echo "</p>";
        echo "</card>";
        echo "</wml>";
        exit();
        }
        ////
        //
        if(ismod($uid))
        {
        $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM lib3rtymrc_users WHERE validated=&#39;0&#39;"));
        if($noi[0]>0)
        {
        echo "(!)<a href=\"moderator.php?action=validatelist&amp;sid=$ sid\">Conturi Nevalidate</a>($noi[0])
        ";
        }
        }
        //
        echo "
        <a href=\"chat.php?action=say&amp;sid=$sid&amp;rid=$r id&amp;rpw=$rpw\">scrie</a>| ";
        echo "<a href=\"chat.php?time=";
        echo date(&#39;dmHis&#39;);
        echo "&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw";
        echo "\">refresh</a>|";
        echo "<a href=\"lists.php?action=smilies&amp;sid=$sid\">emo tii</a>";
        $sml = mysql_fetch_array(mysql_query("SELECT hvia FROM lib3rtymrc_users WHERE id=&#39;".getuid_sid($sid)."&#39;"));
        if($sml[0]=="1")
        {
        //echo "emotii <a href=\"genproc.php?action=shsml&amp;sid=$sid&amp;a ct=dis\">off</a>";
        }else{
        //echo "emotii <a href=\"genproc.php?action=shsml&amp;sid=$sid&amp;a ct=enb\">on</a>";
        //echo "emotii <a href=\"lists.php?action=smilies&amp;sid=$sid\">emo tii</a>";
        }
        /*
        if(getuid_sid($sid)==2)
        {
        echo "<a href=\"wtai://wp/mc;+972545565459\">Call me</a>
        ";
        }
        */
        $unreadinbox=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_private WHERE unread=&#39;1&#39; AND touid=&#39;".$uid."&#39;"));
        $pmtotl=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_private WHERE touid=&#39;".$uid."&#39;"));
        $unrd="[".$unreadinbox[0]."]";
        if ($unreadinbox[0]==1)
        {
        echo "
        ai<a href=\"posta.php?action=main&amp;sid=$sid\"> un </a>pm

        ====
        ";
        }
        if ($unreadinbox[0]>1)
        {
        echo "
        ai<a href=\"posta.php?action=main&amp;sid=$sid\"> $unrd </a>pm-uri
        ====
        ";
        }
        echo "
        </p>";
        $message=$_POST["message"];
        $who = $_POST["who"];
        $rinfo = mysql_fetch_array(mysql_query("SELECT censord, freaky FROM lib3rtymrc_rooms WHERE id=&#39;".$rid."&#39;"));
        if (trim($message) != "")
        {
        $nosm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_chat WHERE msgtext=&#39;".$message."&#39;"));
        if($nosm[0]==0){

        $chatok = mysql_query("INSERT INTO lib3rtymrc_chat SET chatter=&#39;".$uid."&#39;, who=&#39;".$who."&#39;, timesent=&#39;".time()."&#39;, msgtext=&#39;".$message."&#39;, rid=&#39;".$rid."&#39;;");
        $lstmsg = mysql_query("UPDATE lib3rtymrc_rooms SET lastmsg=&#39;".time()."&#39; WHERE id=&#39;".$rid."&#39;");

        $hehe=mysql_fetch_array(mysql_query("SELECT chmsgs FROM lib3rtymrc_users WHERE id=&#39;".$uid."&#39;"));
        $totl = $hehe[0]+1;
        $msgst= mysql_query("UPDATE lib3rtymrc_users SET chmsgs=&#39;".$totl."&#39; WHERE id=&#39;".$uid."&#39;");
        //// plusuri pe camera de chat
        $usts = mysql_fetch_array(mysql_query("SELECT plusses FROM lib3rtymrc_users WHERE id=&#39;".$uid."&#39;"));
        $upl = $usts[0]+1;// aici e q ++
        mysql_query("UPDATE lib3rtymrc_users SET plusses=&#39;".$upl."&#39; WHERE id=&#39;".$uid."&#39;");
        if($rinfo[1]==2)
        {
        //oh damn i gotta post this message to ravebabe
        //will it succeed?
        $botid = "a946463cae36564f";
        $hostname = "www.pandorabots.com";
        $hostpath = "/pandora/talk-xml";
        $sendData = "botid=".$botid."&input=".urlencode($message)."&cu stid=".$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 lib3rtymrc_chat SET chatter=&#39;8152&#39;, who=&#39;&#39;, timesent=&#39;".time()."&#39;, msgtext=&#39;".$reply." @".getnick_uid($uid)."&#39;, rid=&#39;".$rid."&#39;;");
        }
        }
        $message = "";
        }

        echo "

        ";
        echo "";
        $chats = mysql_query("SELECT chatter, who, timesent, msgtext, exposed FROM lib3rtymrc_chat WHERE rid=&#39;".$rid."&#39; ORDER BY timesent DESC, id DESC");
        $counter=0;

        while($chat = mysql_fetch_array($chats))
        {
        $canc = true;


        if($counter<12)
        {
        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]==&#39;1&#39; && ismod($uid))
        {
        $canc = true;
        }
        if($canc)
        {
        $cmid = mysql_fetch_array(mysql_query("SELECT chmood FROM lib3rtymrc_users WHERE id=&#39;".$chat[0]."&#39;"));

        $iml = "";
        if(($cmid[0]!=0))
        {
        $mlnk = mysql_fetch_array(mysql_query("SELECT img, text FROM lib3rtymrc_moods WHERE id=&#39;".$cmid[0]."&#39;"));
        $iml = "<img src=\"$mlnk[0]\" alt=\"$mlnk[1]\"/>";

        }
        $chnick = getnick_uid($chat[0]);// nick
        // simbol
        $sim = getsimbol($chat[0]);
        //
        $optlink = $iml.$sim.$chnick;
        if(($chat[1]!=0)&&($chat[0]==$uid))
        {
        ///out
        $iml = "<img src=\"moods/out.gif\" alt=\"!\"/>";
        $chnick = getnick_uid($chat[1]);
        // simbol
        $sim = getsimbol($chat[1]);
        //
        $optlink = $iml."PV la ".$sim.$chnick;
        }
        if($chat[1]==$uid)
        {
        ///out
        $iml = "<img src=\"moods/in.gif\" alt=\"!\"/>";
        $chnick = getnick_uid($chat[0]);
        // simbol
        $sim = getsimbol($chat[0]);
        //
        $optlink = $iml."PV de la ".$sim.$chnick;
        }
        if($chat[4]==&#39;1&#39;)
        {
        ///out
        $iml = "<img src=\"moods/point.gif\" alt=\"!\"/>";
        $chnick = getnick_uid($chat[0]);
        $tonick = getnick_uid($chat[1]);
        $tosim = getsimbol($chat[1]);
        $sim = getsimbol($chat[0]);
        $optlink = "$iml de la ".$sim.$chnick." la ".$tosim.$tonick;
        }

        $ds= date("H.i.s", $chat[2]);
        $text = parsepm($chat[3], $sid);
        $nos = substr_count($text,"<img src=");
        if(ischspam($text))
        {
        $chnick = getnick_uid($chat[0]);
        $sim = getsimbol($chat[0]);
        echo "TecWeb:»*$sim$chnick,dont make spam!*
        =====
        ";
        }
        else if($nos>2){
        $chnick = getnick_uid($chat[0]);
        $sim = getsimbol($chat[0]);
        echo "TecWeb:»$sim*$chnick,only 2 smilies!*
        =====
        ";
        }else{
        $sres = substr($chat[3],0,3);

        if($sres == "/tw")
        {
        $chco = strlen($chat[3]);
        $goto = $chco - 3;
        $rest = substr($chat[3],3,$goto);
        $tosay = parsepm($rest, $sid);

        echo "*$chnick $tosay*
        =====
        ";
        }else{
        $tosay = parsepm($chat[3], $sid);

        if($rinfo[0]==1)
        {
        $tosay = str_replace("****","f**k",$tosay);
        $tosay = str_replace("matii","mama de acasa",$tosay);
        $tosay = str_replace("dick","d**k",$tosay);
        $tosay = str_replace("pussy","pu**y",$tosay);
        $tosay = str_replace("sugi","Cenzurat",$tosay);
        $tosay = str_replace("pula","nu am minte, iarta-ma Doamne",$tosay);
        $tosay = str_replace("pizda","afara ninge, cerul e senin",$tosay);
        $tosay = str_replace("fut","imi pare rau, dar nu am cei 7 ani de acasa ",$tosay);
        $tosay = str_replace("coaie","oare de ce nu inteleg eu ca aici e un chat decent?",$tosay);
        $tosay = str_replace("kkt ","vreau inghetata",$tosay);
        $tosay = str_replace("cacat","vreau hamburgher de la McDonalds",$tosay);
        }

        if($rinfo[1]==1)
        {
        $tosay = htmlspecialchars($chat[3]);
        $tosay = strrev($tosay);
        }
        $nopl = mysql_fetch_array(mysql_query("SELECT sex FROM lib3rtymrc_users WHERE id=&#39;".$chat[0]."&#39;"));
        if($nopl[0]==&#39;M&#39;)
        {
        $usex = "B";
        }else if($nopl[0]==&#39;F&#39;){
        $usex = "F";
        }else{
        $usex = "<img src=\"images/unknown.gif\" alt=\".\"/>";
        }
        // echo "»<a href=\"chat.php?action=say2&amp;sid=$sid&amp;who=$ chat[0]&amp;rid=$rid&amp;rpw=$rpw\">$optlink</a>-$ds
        ";
        if(ismod(getuid_sid($sid)))
        {
        echo "<a href=\"moderator.php?action=moderare&amp;who=$chat[0]&amp;sid=$sid&amp;who=$chat[0]\">[x]</a>";
        }

        // echo "$usex»<a href=\"chat.php?action=say2&amp;sid=$sid&amp;who=$ chat[0]&amp;rid=$rid&amp;rpw=$rpw\">$optlink</a>-".getstatus($chat[0])."
        ";
        echo "($usex)<a href=\"chat.php?action=privat&amp;sid=$sid&amp;who =$chat[0]&amp;rid=$rid&amp;rpw=$rpw\">$optlink</a>-$ds
        ";
        echo $tosay."
        =====
        ";


        // echo $tosay."
        =====
        ";

        }
        }

        $counter++;
        }
        }
        }
        echo "
        ";
        //echo "</p>";

        echo "</p>";
        echo "<p align=\"center\">";
        $chatters=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_chonline where rid=&#39;".$rid."&#39;"));
        echo "
        conectati camera:<a href=\"chat.php?action=inside&amp;sid=$sid&amp;rid =$rid&amp;rpw=$rpw\">$chatters[0]</a>
        ";
        echo "conectati site:<a href=\"conectati.php?action=online&amp;sid=$sid&am p;rid=$rid&amp;rpw=$rpw\">".getnumonline()."</a>
        ";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\">Acasa</a>
        ";
        $time=number_format(microtime(),2);
        echo "pagina incarcata in: $time secunde
        ";
        echo "</p>";
        echo "</card>";
        }

        /////////////////////////////////////////////////////SAY
        else if ($action=="say") {
        echo "<card id=\"say\" title=\"Scrie Mesaj pe Chat\">";

        addonline($uid,"Scrie mesaj pe chat","");
        echo "<p align=\"center\">";
        echo "Mesaj:
        <input name=\"message\" type=\"text\" value=\"\" maxlength=\"255\"/>
        ";
        echo "<anchor>[scrie]";
        echo "<go href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw \" method=\"post\">";
        echo "<postfield name=\"message\" value=\"$(message)\"/>";
        echo "</go></anchor>
        ";
        //if(getplusses(getuid_sid($sid))>=500)
        //{
        //echo "<anchor>[bold]";
        //echo "<go href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw \&amp;font=$ingrosat\" method=\"post\">";
        //echo "<postfield name=\"message\" value=\"$(message)\"/>";
        //echo "</go></anchor>

        ";
        //}else{
        //echo "[bold]
        ";
        //}
        echo "<a href=\"lists.php?action=chmood&amp;sid=$sid&amp;pa ge=1\">Mood-uri</a>
        ";
        echo "<a href=\"lists.php?action=smilies&amp;sid=$sid\">Emo tii</a>
        ";
        echo "«<a href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw \">Camera</a>
        ";
        //end

        echo "

        <a href=\"index.php?action=chat&amp;sid=$sid\">Meniu chat</a>
        ";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\">Acasa</a></p>";

        echo "</card>";
        }
        /////////////////////////////////////////////////////SAY2
        else if ($action=="privat") {
        $unick = getnick_uid($who);
        $sim = getsimbol($who);
        addonline($uid,"Scrie mesaj privat pe Chat la $sim$unick","");
        echo "<card id=\"say\" title=\"Scrie mesaj privat pe Chat la $sim$unick\">";
        echo "<p align=\"center\">";
        $nopl = mysql_fetch_array(mysql_query("SELECT sex, location, birthday FROM lib3rtymrc_users WHERE id=&#39;".$who."&#39;"));
        $uage = getage($nopl[2]);
        if($nopl[0]==&#39;M&#39;)
        {
        $usex = "<img src=\"images/male2.gif\" alt=\".\"/>";
        }else if($nopl[0]==&#39;F&#39;){
        $usex = "<img src=\"images/female2.gif\" alt=\".\"/>";
        }else{
        $usex = "<img src=\"images/unknown.gif\" alt=\".\"/>";
        }
        echo "Privat la $sim$unick";
        echo "
        ";
        echo "$usex/$uage ani/$nopl[1]";
        echo "</p>";
        echo "

        Mesaj:<input name=\"message\" type=\"text\" value=\" \" maxlength=\"255\"/>
        ";
        echo "«<anchor>Privat";
        echo "<go href=\"chat.php?sid=$sid&amp;rid=$rid&amp;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&amp;sid=$sid&amp; who=$who\">$sim$unick profil</a>
        ";
        echo "»<a href=\"chat.php?action=expose&amp;sid=$sid&amp;who =$who&amp;rid=$rid&amp;rpw=$rpw\">Expune $sim$unick</a>
        ";

        echo "»<a href=\"chat.php?action=inside&amp;sid=$sid&amp;rid =$rid&amp;rpw=$rpw\">Conectati</a>
        ";
        echo "«<a href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw \">Camera</a></p>";
        //end

        echo "<p align=\"left\">
        =====
        ";
        echo "«<a href=\"index.php?action=main&amp;sid=$sid\">Prim</a></p>";

        echo "</card>";
        }
        ////////////////////////////////////////////
        //////////////////////////////inside//////////
        else if ($action=="inside") {

        addonline($uid,"Conectati Camera Chat","");
        echo "<card id=\"main\" title=\"Conectati chat\">";
        echo "<p align=\"left\">";
        $inside=mysql_query("SELECT DISTINCT * FROM lib3rtymrc_chonline WHERE rid=&#39;".$rid."&#39; and uid IS NOT NULL");

        while($ins=mysql_fetch_array($inside))
        {
        $nopl = mysql_fetch_array(mysql_query("SELECT sex FROM lib3rtymrc_users WHERE id=&#39;".$ins[1]."&#39;"));
        if($nopl[0]==&#39;M&#39;)
        {
        $usex = "<img src=\"images/male2.gif\" alt=\".\"/>";
        }else if($nopl[0]==&#39;F&#39;){
        $usex = "<img src=\"images/female2.gif\" alt=\".\"/>";
        }else{
        $usex = "<img src=\"images/unknown.gif\" alt=\".\"/>";
        }
        $unick = getnick_uid($ins[1]);
        $sim = getsimbol($ins[1]);
        $userl = "»$usex<a href=\"chat.php?action=privat&amp;sid=$sid&amp;who =$ins[1]&amp;rid=$rid&amp;rpw=$rpw\">
        $sim$unick</a>
        ";
        echo "$userl";
        }
        echo "

        =====
        ";
        echo "«<a href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw \">Camera</a>
        ";
        echo "«<a href=\"index.php?action=main&amp;sid=$sid\">Acasa</a></p>";

        echo "</card>";
        }
        else if ($action=="expose") {
        $unick = getnick_uid($who);
        addonline($uid,"Expune pv de la $unick","");
        echo "<card id=\"main\" title=\"Expune pv de la $unick\">";
        echo "<p align=\"center\">
        ";
        mysql_query("UPDATE lib3rtymrc_chat SET exposed=&#39;1&#39; WHERE chatter=&#39;".$who."&#39; AND who=&#39;".$uid."&#39;");
        echo "Privatele userului $unick sunt expuse moderatorilor";
        echo "

        ";
        $rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM lib3rtymrc_rooms WHERE id=&#39;".$rid."&#39;"));
        $rname = $rooms[1];
        echo "«<a href=\"chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw \">Inapoi pe $rname</a>
        ";
        // echo "
        <a href=\"index.php?action=chat&amp;sid=$sid\"><img src=\"images/chat.gif\" alt=\"*\"/>Meniu chat</a>
        ";
        echo "<a href=\"index.php?action=main&amp;sid=$sid\">Acasa</a></p>";

        echo "</card>";
        }


        ?>
        </wml></div>
        Hate romains that take codes from here and tell to all that they had made that

        Comment


          #34
          <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>function addtochat($uid, $rid)
          {
          $bago = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE uid=&#39;".$uid."&#39; AND rid=&#39;".$rid."&#39;"));
          if($bago[0]==0){
          $msg = "*mat --> Entra in STANZA";
          mysql_query("INSERT INTO ibwf_chat SET timesent=&#39;".time()."&#39;, chatter=&#39;".$uid."&#39;, text=&#39;".$msg."&#39;");
          }

          $timeto = 86400;
          $timenw = time();
          $timeout = $timenw - $timeto;
          $exec = mysql_query("DELETE FROM ibwf_chonline WHERE lton<&#39;".$timeout."&#39;");
          $res = mysql_query("INSERT INTO ibwf_chonline SET lton=&#39;".time()."&#39;, uid=&#39;".$uid."&#39;, rid=&#39;".$rid."&#39;");
          if(!$res)
          {
          mysql_query("UPDATE ibwf_chonline SET lton=&#39;".time()."&#39;, rid=&#39;".$rid."&#39; WHERE uid=&#39;".$uid."&#39;");
          }
          }</div>


          <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>if(isspam($text) || substr($chat[3],0,4)=="*mat")
          {
          $chnick = getnick_uid($chat[0]);
          if(isspam($text)){
          echo "Chat system:*$chnick, please don&#39;t try to spam*
          ";
          }else{
          echo "Chat system:*$chnick, Joined the room*
          ";
          }
          }</div>

          i tried into my chat but DON&#39;T WORK...nothin&#39; appears in chatroom...
          sigpicthe italian/international COMMUNITY of friendship
          http://people2000.netne.net
          WAP/WEB
          peoplemailbox@katamail.com

          Comment


            #35
            <div class='quotetop'>QUOTE (honkytonkman @ Dec 11 2008, 12:08 PM) <{POST_SNAPBACK}></div>
            <div class='codetop'>CODE
            <div class='codemain' style='height:200px;white-space:pre;overflow:auto'>function addtochat($uid, $rid)
            {
            $bago = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE uid=&#39;".$uid."&#39; AND rid=&#39;".$rid."&#39;"));
            if($bago[0]==0){
            $msg = "*mat --> Entra in STANZA";
            mysql_query("INSERT INTO ibwf_chat SET timesent=&#39;".time()."&#39;, chatter=&#39;".$uid."&#39;, text=&#39;".$msg."&#39;");
            }

            $timeto = 86400;
            $timenw = time();
            $timeout = $timenw - $timeto;
            $exec = mysql_query("DELETE FROM ibwf_chonline WHERE lton<&#39;".$timeout."&#39;");
            $res = mysql_query("INSERT INTO ibwf_chonline SET lton=&#39;".time()."&#39;, uid=&#39;".$uid."&#39;, rid=&#39;".$rid."&#39;");
            if(!$res)
            {
            mysql_query("UPDATE ibwf_chonline SET lton=&#39;".time()."&#39;, rid=&#39;".$rid."&#39; WHERE uid=&#39;".$uid."&#39;");
            }
            }</div>


            <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>if(isspam($text) || substr($chat[3],0,4)=="*mat")
            {
            $chnick = getnick_uid($chat[0]);
            if(isspam($text)){
            echo "Chat system:*$chnick, please don&#39;t try to spam*
            ";
            }else{
            echo "Chat system:*$chnick, Joined the room*
            ";
            }
            }</div>

            i tried into my chat but DON&#39;T WORK...nothin&#39; appears in chatroom...[/b][/quote]
            read entire topic... code DOES work
            It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
            ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
            ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
            キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

            Comment


              #36
              <div class='quotetop'>QUOTE (ionutxp @ Dec 10 2008, 08:26 PM) <{POST_SNAPBACK}></div>
              ////////////////////////////////////////
              ////////////// CHAT.php By IonutXp
              ////////////////////////////////////////[/b]
              yea right...
              It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
              ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
              ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
              キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

              Comment


                #37
                Hate romains that take codes from here and tell to all that they had made that

                Comment


                  #38
                  LoL

                  Comment

                  Working...
                  X