php 5.2 problem with lavalair xhtml

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

  • honkytonkman
    replied
    PHP Code:
    mport_request_variables('gpc');

    include("config.php");

    header("Cache-Control: no-cache, must-revalidate"); // Prevent caching, HTTP/1.1
    header("Pragma: no-cache");
    //header('Content-type: application/vnd.wap.xhtml+xml');
    header("Content-type: text/html; charset=ISO-8859-1");
    echo "<?xml version="1.0" encoding="ISO-8859-1" ?>";

    ?>
    <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtmlmobile10.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml">










    <meta name="description" content="people2000,chat,forum,wapchat,wap,communi ty" />
    <meta name="keywords" content="people2000,chat gratis,forum gratis,web,wap,people2000 community " /><?






    connectdb();
    $action=$_GET["action"];
    $id=$_GET["id"];
    $sid = $_GET["sid"];
    $rid=$_GET["rid"];
    $rpw=$_GET["rpw"];
    $uid = getuid_sid($sid);
    $uexist = isuser($uid);
    $theme = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'"));

    $onu = getnumonline();















    if((islogged($sid)==false)||!$uexist)
    {
    echo "<head>";
    echo "<title>PEOPLE 2000</title>";
    echo "<link rel="stylesheet" type="text/css" href="../themes/black_medium.css">";
    echo "</head>";
    echo "<body bgcolor="#99CCFF" link="#0000CC" vlink="#0000CC" alink="#0000CC">\n";
    //echo "<body>";
    echo "<center>";
    echo "<br/><img src="../images/Stop.gif" alt=""/><br/>";

    echo "ATTENZIONE: la tua sessione in <b> CHAT</b> Ã¨ SCADUTA oppure Ã¨ stata INTERROTTA x MOTIVI di SICUREZZA..<br/>";
    echo "PER FAVORE, RILOGGATI,grazie..<br/>";
    echo "<a href="index.php">Login</a>";
    ?><br/><br/><small>PEOPLE 2000 COMMUNITY</small><br/><?
    echo "</center>";
    echo "</html>";
    echo "</body>";
    exit();
    }

    if(isbanned($uid))
    {
    echo "<head>";
    echo "<title>ErrorE!!!</title>";
    echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">";
    echo "</head>";
    echo "<body bgcolor="#99CCFF" link="#0000CC" vlink="#0000CC" alink="#0000CC">\n";
    //echo "<body>";
    echo "<p align="center">";
    echo "<img src="../images/notok.gif" alt=""/><br/>";
    echo "<b>BANNING</b><br/><br/>";
    $banto = mysql_fetch_array(mysql_query("SELECT timeto, pnreas, exid FROM ibwf_penalties WHERE uid='".$uid."' AND penalty='1' OR uid='".$uid."' AND penalty='2'"));
    $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'"));
    $remain = $banto[0]- time();
    $rmsg = gettimemsg($remain);
    echo "<b>TEMPO RIMANENTE: </b>$rmsg<br/>";
    $nick = getnick_uid($banto[2]);
    echo "<b>BANN EFFETTUATO DA : </b>$nick<br/>";
    echo "<b>MOTIVO: </b>$banto[1]";
    //echo "<a href="index.php">Login</a>";
    ?><br/><br/><small>PEOPLE 2000 COMMUNITY</small><br/><?
    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 "<head>";
    echo "<title>INFO SISTEMA:</title>";
    echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">";
    echo "</head>";
    echo "<body bgcolor="#99CCFF" link="#0000CC" vlink="#0000CC" alink="#0000CC">\n";
    //echo "<body>";
    echo "<center>";
    echo "<img src="../images/Stop.gif" alt=""/><br/>";
    echo "<b>STANZA INESISTENTE...</b><br/><br/>";
    echo "<a href="index.php?action=chat&amp;sid=$sid">Chatro oms</a>";
    ?><br/><br/><small>PEOPLE 2000 COMMUNITY</small><br/><?
    echo "</center>";
    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 "<head>";
    echo "<title>INFO SISTEMA:</title>";
    echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">";
    echo "</head>";
    echo "<body bgcolor="#99CCFF" link="#0000CC" vlink="#0000CC" alink="#0000CC">\n";
    // echo "<body>";
    echo "<center>";
    echo "<img src="../images/Stop.gif" alt=""/><br/>";
    echo "<b>ATTENZIONE:</b>CHIAVE ERRATA , oppure<br/>";
    echo "se ERI già LOGGATO/A ,il SISTEMA ti richiede di REINSERIRE la CHIAVE<br/>";
    echo "è perche sei <b>uscito</b> x leggere un <b>profilo</b> o x <b>rispondere</b> ad un <b>INBOX</b>..<br/>";

    if(ismod($uid))
    {
    echo "<br/><b>componente STAFF:</b> ricorda che nelle stanze PRIVATE PUOI CANCELLARE i MESSAGGI come nelle stanze PUBBLICHE<br/>";
    }



    //echo "se ciò avviene dopo la lettura di un INBOX<br/>CONSIGLIAMO di usare nelle stanze PRIVATE<br/>i <b>PVT DIALOGO</b> cliccando sul nick..<br/><br/>";
    echo "<a href="index.php?action=chat&amp;sid=$sid">Chatro oms</a>";
    ?><br/><br/><small>PEOPLE 2000 COMMUNITY</small><br/><?
    echo "</center>";
    echo "</body>";
    echo "</html>";
    exit();
    }
    }
    if(!canenter($rid,$sid))
    {
    echo "<head>";
    echo "<title>ErrorE!!!</title>";
    echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">";
    echo "</head>";
    echo "<body bgcolor="#99CCFF" link="#0000CC" vlink="#0000CC" alink="#0000CC">\n";
    //echo "<body>";
    echo "<center>";
    echo "<b>ACCESSO NEGATO!</b><br/><br/>";
    echo "<a href="index.php?action=chat&amp;sid=$sid">Chatro oms</a>";
    ?><br/><br/><small>PEOPLE 2000 COMMUNITY</small><br/><?
    echo "</center>";
    echo "</body>";
    echo "</html>";
    exit();
    }



    //$time = time();
    $newtime = date("H:i,$lasaperdi");


    ///////welcome






    $ENTRA = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE uid='".$uid."' AND rid='".$rid."' "));
    if ($ENTRA[0] == "0")
    { $name = getnick_sid($sid);
    echo "<img src="../images/bum.gif" alt=""/>BUM!..";
    mysql_query("INSERT INTO ibwf_chat SET chatter='".$uid."' , who='0', timesent='".time()."', msgtext='".getstato($uid)." ".$newtime." entra in chat!', rid='".$rid."', exposed='0' ");
    echo "<div>..CIAO $name..";

    $idn = getuid_nick($uid);
    $xfile = @file("INCHAT.txt");
    $random_num = rand (0,count($xfile)-1);
    $udata = explode("::",$xfile[$random_num]);
    echo $udata[1];
    echo "</div>";
    //echo "<img src="../moods/in.gif" alt=""/></div>";
    }


    ////////////









    addtochat($uid, $rid);
    $timeto = 172800;















    $timenw = time();

    $timenw = time();
    $timeout = $timenw-$timeto;
    $deleted = mysql_query("DELETE FROM ibwf_chat WHERE timesent<".$timeout."");
    $rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'"));
    $rname = $rooms[1];
    $nick = getnick_sid($sid);
    $time=date("H:i",time());
    if ($action=="")
    {
    echo "<head>";
    echo "<title>$time -$rname-</title>";
    echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">";
    $unreadpopup=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_popups WHERE unread='1' AND touid='".$uid."'"));
    if ($unreadpopup[0]<1)
    {
    echo "<meta http-equiv="refresh" content="39; url=chat.php?time=";
    echo "".date("dmHis")."";
    echo "&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw">";
    }
    echo "</head>";
    echo "<body bgcolor="#99CCFF" link="#0000CC" vlink="#0000CC" alink="#0000CC">\n";
    //echo "<body>";
    addonline($uid,"sta chattando in stanza $rname","chat.php?rid=$rid&amp;rpw=$rpw");
    //echo "<p align ="\left">";
    echo popup($sid);






    echo "<img src="../images/CHATROOM.gif" alt=""/><br/>";
    ///////////////

    ////////////////


    $xfile = @file("roomtext.txt");
    $random_num = rand (0,count($xfile)-1);
    $udata = explode("::",$xfile[$random_num]);
    echo $udata[1]; //a random text line from the text file will be displayed
    echo "<br/>";


    $xfile = @file("randomchatlogo.txt");
    $random_num = rand (0,count($xfile)-1);
    $udata = explode("::",$xfile[$random_num]);
    echo $udata[1]; //a random text line from the text file will be displayed
    //echo "<br/>";


    $reqs = getnreqs($uid);
    if($reqs>0)
    {

    $request = "<b>ATTENZIONE</b>-> <a href="lists.php?action=reqs&amp;sid=$sid">$reqs richiesta/e di AMICIZIA</a>";
    }

    /////////////////////////////////////////




    echo "<i>peopleiani <b>LOGGATI</b> ora :<b>$onu</b></i><br/>";

    //////////////////////////////////////////



    echo "<b></b><a name="top" id="top" accesskey="1" href="chat.php?action=say&amp;sid=$sid&amp;rid=$r id&amp;rpw=$rpw">[<b>SCRIVI</b>]</a> ";
    $chatters=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline where rid='".$rid."'"));
    echo "<div align="center" style="background-color:black; color:yellow; border-bottom:blue thin solid">\n";

    echo "<a href="chat.php?action=inside&amp;sid=$sid&amp;rid =$rid&amp;rpw=$rpw"><b>$rname</b></div></br>";
    echo "<div align="center" style="background-color:black; color:yellow; border-bottom:blue thin solid">ON LINE in STANZA: ($chatters[0])</a></div><br/>";

    //echo "<b></b><a accesskey="4" href="chat.php?action=inside&amp;sid=$sid&amp;rid =$rid&amp;rpw=$rpw">ON line IN STANZA ($chatters[0])</a><br/>";
    echo "<b></b><a accesskey="2" href="#opt">GIU </a> / ";
    //echo "<b></b><a accesskey="5" href="inbox.php?action=main&amp;sid=$sid&amp;lstl oc=cht&amp;rid=$rid">PVT Inbox </a><br/>";
    echo "<b></b><a accesskey="*" href="chat.php?time=";
    echo "".date("dmHis")."";
    echo "&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw">Refr esH </a><br/>";

    $unreadinbox=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_private WHERE unread='1' AND touid='".$uid."'"));
    $unrd="".$unreadinbox[0]."";
    if ($unreadinbox[0]>0)
    {

    echo "<a href="inbox.php?action=main&amp;sid=$sid&amp;lstl oc=cht&amp;rid=$rid">ATTENZIONE!</a>";
    echo "<br/>";$xfile = @file("randomPRIVATI.txt");
    $random_num = rand (0,count($xfile)-1);
    $udata = explode("::",$xfile[$random_num]);
    echo "$udata[1]<br/>";
    echo "$unrd NUOVO/I Inbox!";



    }



    ///////pann admin

    if(isowner(getuid_sid($sid)))
    {

    //echo "<a href="ownercp.php?action=ownercp&amp;sid=$sid">[PANNELLO @HONKYTONKMAN]</a><br/><div></div><br/>";
    $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_users WHERE validated='0'"));
    //echo "<a href="index.php?action=search&amp;sid=$sid">[CERCA]</a><br/>";

    if($noi[0]>0)
    {
    echo "<b>-></b><a href="ownercp.php?action=validatelist&amp;sid=$si d">* UTENTI DA VALIDARE!!*($noi[0])</a><br/>";
    echo "<div></div><br/>";
    }
    }
    if(isheadadmin(getuid_sid($sid)))
    {
    //echo "<a href="headadmincp.php?action=headadmincp&amp;sid= $sid">[pannello @ISPANICO]</a><br/><div></div><br/>";
    $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_users WHERE validated='0'"));
    //echo "<a href="index.php?action=search&amp;sid=$sid">[CERCA]</a><br/>";

    if($noi[0]>0)
    {
    echo "<b>-></b><a href="headadmincp.php?action=validatelist&amp;sid =$sid">UTENTI DA CONVALIDARE($noi[0])</a><br/>";
    }
    }




    ///fine


















    ///////////















    //echo "</p>";
    //echo "<br/><br/>";

    /////////////////////////////////////////

    //$time=date("H:i",time());
    $time=date("H:i",time());

    ///////////////////////////////////////



    $who = $_POST["who"];









    $rinfo = mysql_fetch_array(mysql_query("SELECT censord, freaky FROM ibwf_rooms WHERE id='".$rid."'"));
    if (trim($message) != "")
    {
    if(!isblocked($message,$uid))
    {
    //$msgtime=date("H:i",$chat[2]);


    //$time;
    //$chatok = mysql_query("INSERT INTO ibwf_chat SET chatter='".$uid."', who='".$who."', timesent='".time()."', msgtext='".$message."', rid='".$rid."';");

    //$time = time();
    $newtime = date("H:i,$lasaperdi");

    $chatok = mysql_query("INSERT INTO ibwf_chat SET chatter='".$uid."', who='".$who."', timesent='".time()."', msgtext='".getstat($uid)." ".$newtime." ".$message."', rid='".$rid."';");
    //$chatok = mysql_query("INSERT INTO ibwf_chat SET chatter='".$uid."', who='".$who."', timesent='".date("dmHis")."/".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."'");
















    }else{






    $bantime = time() + (1*60*60*60);
    echo "<img src="../images/BLOC.gif" alt=""/>";
    echo "ALT!!<br/><br/>";

    echo "ATTENZIONE HAI SPAMMATO UN SITO PORNO/ILLEGALE O nella nostra LISTA BLOCCATI<br/>ORA TI SEI BANNATO/A AUTOMATICAMENTE x 2 GIORNI e 11 ORE!..<br/>a PEOPLE 2000 lo SPAM Ã¨ libero (con moderazione)ma SOLO PARTICOLARMENTE x i siti PERSONALI !";

    $user = getnick_sid($sid);
    mysql_query("INSERT INTO ibwf_mlog SET action='autoban', details='<b>".getnick_uid(1)."</b> auto bannato utente $user x spamming sito BLOCCATO in chat', actdt='".time()."'");
    mysql_query("INSERT INTO ibwf_penalties SET uid='".$uid."', penalty='1', exid='1', timeto='".$bantime."', pnreas='bann automatico x spamming di SITO BLOCCATO'");
    //mysql_query("UPDATE ibwf_users SET gplus='0', shield='0' WHERE id='".$uid."'");
    echo "</body>";
    echo "</html>";
    exit();
    }
    if($rinfo[1]==2)
    {
    //oh damn i gotta post this message to ravebabe 
    //will it succeed?
    $botid = "d91ffb587e34d495";
    $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 ibwf_chat SET chatter='1', who='', timesent='".time()."', msgtext='".$reply." @".getnick_uid($uid)."', rid='".$rid."';");
    //$chatok = mysql_query("INSERT INTO ibwf_chat SET chatter='".$uid."', who='".$who."', timesent='".date("dmHis")."/".time()."', msgtext='".$message."', rid='".$rid."';");
    }
    $message = "";
    }

    echo "<br/>";
    $chats = mysql_query("SELECT chatter, who, timesent, msgtext, exposed FROM ibwf_chat WHERE rid='".$rid."' ORDER BY timesent DESC, id DESC");
    //$chats = mysql_query("SELECT chatter, who, timesent, msgtext, exposed FROM ibwf_chat WHERE rid='".$rid."' ORDER BY id DESC");

    $counter=0;

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


    if($counter<11)
    {
    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=""/>";

    }
    $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."(DIALOGO) PVT A ".$chnick;
    }
    if($chat[1]==$uid)
    {
    ///out
    $iml = "<img src="../moods/in.gif" alt=""/>";
    $chnick = getnick_uid($chat[0]);
    $optlink = $iml."(DIALOGO) PVT DI ".$chnick;
    }
    if($chat[4]=='1')
    {
    ///out
    //$iml = "<img src="../moods/point.gif" alt=""/>";
    $iml = "<img src="../moods/point.gif" alt=""/>ATTENZIONE! segnalazione ABUSO in DIALOGO-PVT!: ";
    $chnick = getnick_uid($chat[0]);
    $tonick = getnick_uid($chat[1]);
    $optlink = "$iml di ".$chnick." a ".$tonick;
    }

    $ds= date("H.i.s", $chat[2]);
    $text = parsepm($chat[3], $sid);
    $nos = substr_count($text,"<img src=");

    ////////////////////////////////

    if(isspam($text) || substr($chat[3],0,4)=="mat")
    {
    $chnick = getnick_uid($chat[0]);
    if(isspam($text)){
    echo "<b>PEOPLE 2000:<i>*$chnick, ricorda di non esagerare con lo spam*</i></b><br/>";
    }else{
    echo "<b>PEOPLE 2000:<i>*$chnick, buon divertimento*</i></b><br/>";

    }
    }

    /////////////////









    else if($nos>5){
    $chnick = getnick_uid($chat[0]);
    echo addchatmsg($chat[0],$text,1,"*..RISCHIO INTASAMENTO DA SMILEYS..USANE DI MENO!!!*");
    }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 addchatmsg($chat[0],$tosay,1,"");
    }
    else{
    if($rinfo[0]==0){$tosay = getbbcode($chat[3], $sid, 0);}
    else{$tosay = parsepm($chat[3], $sid, 1);}
    if($rinfo[1]==1){$tosay = strrev($tosay);}

    echo "<a href="chat.php?action=say2&amp;sid=$sid&amp;who=$ chat[0]&amp;rid=$rid&amp;rpw=$rpw">$optlink</a> - ";
    echo $tosay."<br/>";

    //echo "$chat[3] <a href="chat.php?action=say2&amp;sid=$sid&amp;who=$ chat[0]&amp;rid=$rid&amp;rpw=$rpw">$optlink</a> - ";
    //echo $tosay."<br/>";




    }
    }
    $counter++;
    }
    }
    }




















    echo "<br/><div></div>";
    echo "<br/>";
    echo "<a name="opt" id="opt"></a>";
    echo "<b></b><a accesskey="*" href="chat.php?time=";
    echo "".date("dmHis")."";
    echo "&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw">Refr esH </a><br/>";
    echo "<b></b><a href="chat.php?action=say&amp;sid=$sid&amp;rid=$r id&amp;rpw=$rpw">[<b>SCRIVI</b>]</a><br/>";

    echo "<b></b><a accesskey="2" href="lists.php?action=smilies&amp;sid=$sid">[SmilEYS-LOGHI]</a><br/>";
    echo "<b></b><a href="lists.php?action=smiliesWEB&amp;sid=$sid">[SmilEYS-LOGHI WeB] <b>10</b> x PAG.</a><br/>";



    echo "<b></b><a accesskey="3" href="chat.php?action=options&amp;sid=$sid&amp;ri d=$rid&amp;rpw=$rpw">[OPZIONI]</a><br/>";
    $chatters=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline where rid='".$rid."'"));
    //echo "<b></b><a accesskey="4" href="chat.php?action=inside&amp;sid=$sid&amp;rid =$rid&amp;rpw=$rpw">ON LINE $chatters[0]</a><br/>";
    echo "<b></b><a accesskey="5" href="inbox.php?action=main&amp;sid=$sid&amp;lstl oc=cht&amp;rid=$rid">[POSTA]</a><br/>";
    echo "<b></b><a accesskey="6" href="lists.php?action=buds&amp;sid=$sid"><img src="../images/AMICI.gif" alt=""/>AMICI</a><br/>";




    ///////pann admin

    if(isowner(getuid_sid($sid)))
    {

    echo "<a href="ownercp.php?action=ownercp&amp;sid=$sid">[PANNELLO @HONKYTONKMAN]</a><br/><div></div><br/>";
    $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_users WHERE validated='0'"));
    echo "<a href="index.php?action=search&amp;sid=$sid">[CERCA]</a><br/>";

    if($noi[0]>0)
    {
    echo "<b>-></b><a href="ownercp.php?action=validatelist&amp;sid=$si d">* UTENTI DA VALIDARE!!*($noi[0])</a><br/>";
    echo "<div></div><br/>";
    }
    }
    if(isheadadmin(getuid_sid($sid)))
    {
    echo "<a href="headadmincp.php?action=headadmincp&amp;sid= $sid">[pannello @ISPANICO]</a><br/><div></div><br/>";
    $noi = mysql_fetch_array(mysql_query("SELECT count(*) FROM ibwf_users WHERE validated='0'"));
    echo "<a href="index.php?action=search&amp;sid=$sid">[CERCA]</a><br/>";

    if($noi[0]>0)
    {
    echo "<b>-></b><a href="headadmincp.php?action=validatelist&amp;sid =$sid">UTENTI DA CONVALIDARE($noi[0])</a><br/>";
    }
    }




    ///fine












    echo "<b>nessuno in chat? ..chatta con</b>:<br/>";
    //////////echo "<a href="ravebabe.php?sid=$sid">[CHAT ROBOT]<b>[F]</b></a><br/>";
    //////////echo "<a href="ravebabe2.php?sid=$sid">[CHAT ROBOT]<b>[M]</b></a><br/>";
    ?>
    <a href="http://tobbychatbot.altervista.org/">CHATBOT [<b>TOBBY</b>]<br/>

    <?
    echo "<img src="../images/homestanza.gif" alt=""/><br/>";

    echo "<b></b><a accesskey="7" href="index.php?action=chat&amp;sid=$sid">LISTA STANZE</a><br/>";



    echo "<b></b><br/><a accesskey="9" href="index.php?action=clmenu&amp;sid=$sid">Club s</a><br/>";
    /////////frulla
    $sql = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_users WHERE pollid>'0' ORDER BY RAND() LIMIT 1"));
    if($sql[0]!="")
    {
    echo "FRULLA SONDAGGI: <a href="index.php?action=viewpl&who=$sql[0]&sid=$sid">$sql[1]</a><br/><br/>";
    }
    //////////////

    echo "<a href="index.php?action=TOPICSATTIVI&amp;sid=$sid\ ">[Topics Attivi]</a><br/>";

    echo forumlink($sid);

    echo "<a href="lists.php?action=allBARZ&amp;sid=$sid"> [BARZELLETTE 2000]</a><br/><br/>";





    echo "<b></b><a accesskey="9" href="#top">SU</a> / ";





    echo "<b></b><a accesskey="0" href="index.php?action=main&amp;sid=$sid"> Home</a><br/>";


    echo "<b></b><a accesskey="0" href="index.php?action=logout&amp;sid=$sid&amp;wh o=$uid">ESCI</a>";
    echo "<div></div>";

    echo "<br/><img src="../images/home.gif" alt=""/>CHAT<br/>";
    echo "</body>";
    }
    /////////////////////////////////////////////////////SAY

    else if ($action=="say")
    {
    echo "<head>";
    echo "<title>SCRIVI </title>";
    echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">";
    echo "</head>";
    echo "<body bgcolor="#99CCFF" link="#0000CC" vlink="#0000CC" alink="#0000CC">\n";
    //echo "<body>";
    echo "<p align="center">";
    addonline($uid,"sta messaggiando in chat","");


    echo "<div><img src="../images/CHATROOMCELL.gif" alt=""/><br/>";
    echo "".date("H:i")." - ".date("j-m-Y")."</div>";

















    echo "<form action="chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$r pw" method="post">";
    echo "<p>MESSAGGIO:<input name="message" type="text" maxlength="955"/><br/>";
    echo "<input type="Submit" Name="sy2" value="INVIA"></form><br/>";
    $rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'"));
    $rname = $rooms[1];
    echo "<b></b><a accesskey="4" href="chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw ">INDIETRO A $rname</a><br/>";

    echo "<a href="lists.php?action=bbcode&amp;sid=$sid">BBCo de</a><br/>";



    echo "<br/>";




    //echo "<b></b><a accesskey="6" href="inbox.php?action=main&amp;sid=$sid">PVT Inbox</a><br/>";
    echo "<b></b><a accesskey="7" href="lists.php?action=buds&amp;sid=$sid"><img src="../images/AMICI.gif" alt=""/>AMICI</a><br/>";


    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_ignore WHERE name='".$uid."'"));
    echo "<a href="lists.php?action=ignl&amp;sid=$sid"><img src="../images/IGNORATI.gif" alt=""/>IGNORATI($noi[0])</a><br/>";






    echo "<img src="../images/homestanza.gif" alt=""/><br/>";
    echo "<b></b><a accesskey="8" href="index.php?action=chat&amp;sid=$sid">[LISTA STANZE]</a><br/>";

    //echo "<a href="ravebabe.php?sid=$sid">[CHAT ROBOT]M</a><br/>";
    //echo "<a href="ravebabe2.php?sid=$sid">[CHAT ROBOT]F</a><br/>";
    echo "<b></b><br/><a accesskey="9" href="index.php?action=clmenu&amp;sid=$sid">Club s</a><br/>";
    echo forumlink($sid);
    echo "<b></b><a accesskey="0" href="index.php?action=main&amp;sid=$sid"><img src="../images/home.gif" alt=""/>Home</a></p>";
    echo "<div></div><br/>";

    ?><br/><br/><small>PEOPLE 2000 CHAT</small><br/><br/><?
    echo "</body>";
    }
    ////////////////////////////////////////////
    /////////////////////////////////////////////////////SAY2
    else if ($action=="say2") {
    echo "<head>";
    echo "<title>MESSAGGERIA PRIVATA</title>";
    echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">";
    echo "</head>";
    echo "<body bgcolor="#99CCFF" link="#0000CC" vlink="#0000CC" alink="#0000CC">\n";
    //echo "<body>";
    echo "<p align="center">";

    echo "<br/><img src="../images/nono.gif" alt=""/><br/>";
    echo "<div></div><br/>";


    $unick = getnick_uid($who);
    echo "<b> (DIALOGO) MANDA PVT A $unick</b>";

    //av
    echo "<div align="center" style="background-color:#FF6600; color:white; border-bottom:black thin solid">\n";
    $avlink = getavatar($who);
    if($avlink=="")
    {
    echo "";
    }else{
    echo "<img src="$avlink" alt="$whonick"/>";
    }
    echo"</div><br/>";
    //fine
    echo "</p>";

    addonline($uid,"sta mandando un PVT in CHAT","");
    echo "<form action="chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$r pw" method="post">";
    echo "<input type="Hidden" name="who" value="$who">";
    echo "<p>MESSAGGIO:<input name="message" type="text" maxlength="955"/><br/>";
    echo "<input type="Submit" name="private" Value="OK"></form>";
    echo "<br/>";



    echo "<b></b><a accesskey="1" href="index.php?action=viewuser&amp;sid=$sid&amp; who=$who&amp;lstloc=cht&amp;rid=$rid">VEDI PROFILO DI $unick</a><br/>";



    if(ismod($uid))
    {
    echo "<b></b><a accesskey="*" href="chat.php?action=clear&amp;sid=$sid&amp;who= $who&amp;rid=$rid&amp;rpw=$rpw">CANCELLA MESSAGGI di $unick (tutte le STANZE)</a><br/>";

    }
    //echo "<b></b><a accesskey="1" href="index.php?action=viewuser&amp;sid=$sid&amp; who=$who&amp;lstloc=cht&amp;rid=$rid">VEDI PROFILO DI $unick</a><br/>";

    echo "<div></div><br/>";



    echo "<b></b><a accesskey="2" href="chat.php?action=expose&amp;sid=$sid&amp;who =$who&amp;rid=$rid&amp;rpw=$rpw"><img src="../moods/point.gif" alt=""/> SEGNALA ABUSO in DIALOGO-PVT di $unick</a><br/>";
    echo "<div align="center" style="background-color:black; color:red; border-bottom:yellow thin solid">\n";

    echo "<img src="../moods/point.gif" alt=""/>";
    ?> da utilizzare se ricevi <b>DIALOGHI-PVT</b> in CHAT offensivi/contro il regolamento<br/>
    <small><i>utilizzando questa funzione ,RENDI PUBBLICO il dialogo-pvt ricevuto e all'eventuale ATTENZIONE<br/>dello STAFF presente in stanza.</i></small></div><br/>

    <?
    $rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'"));
    $rname = $rooms[1];
    echo "<b></b><a accesskey="4" href="chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw ">INDIETRO A $rname</a><br/>";
    echo "<b></b><a accesskey="6" href="inbox.php?action=main&amp;sid=$sid">POSTA</a><br/>";
    echo "<b></b><a accesskey="7" href="lists.php?action=buds&amp;sid=$sid"><img src="../images/AMICI.gif" alt=""/>AMICI</a><br/>";

    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_ignore WHERE name='".$uid."'"));
    echo "<a href="lists.php?action=ignl&amp;sid=$sid"><img src="../images/IGNORATI.gif" alt=""/>IGNORATI($noi[0])</a><br/>";



    echo "<img src="../images/homestanza.gif" alt=""/><br/>";
    echo "<b></b><a accesskey="8" href="index.php?action=chat&amp;sid=$sid">[LISTA STANZE]</a><br/>";

    //echo "<a href="ravebabe.php?sid=$sid">[CHAT ROBOT]M</a><br/>";
    //echo "<a href="ravebabe2.php?sid=$sid">[CHAT ROBOT]F</a><br/>";

    echo "<b></b><br/><a accesskey="9" href="index.php?action=clmenu&amp;sid=$sid">Club s</a><br/>";
    echo forumlink($sid);
    echo "<b></b><a accesskey="0" href="index.php?action=main&amp;sid=$sid"><img src="../images/home.gif" alt=""/>Home</a></p>";
    echo "<div></div><br/>";

    ?><br/><br/><small>PEOPLE 2000 CHAT</small><br/><?
    echo "</body>";
    }
    /////////////////////////////////////////////////////CHAT OPTIONS

    else if ($action=="options")
    {
    echo "<head>";
    echo "<title>CHAT (OPZIONI)</title>";
    echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">";
    echo "</head>";


    echo "<p align="center">";


    echo "<body bgcolor="#99CCFF" link="#0000CC" vlink="#0000CC" alink="#0000CC">\n";
    //echo "<body>";
    echo "<br/><img src="../images/chatopzioni.gif" alt=""/><br/>";
    echo "<div></div><br/>";

    addonline($uid,"è in opzioni CHAT","");
    echo "<div align="center" style="background-color:#FF6600; color:white; border-bottom:blue thin solid">\n";

    echo "<br/><a href="index.php?action=sitethms&amp;sid=$sid">[CambiA TEMA]</a></div><br/>";

    echo "<b></b><a accesskey="1" href="lists.php?action=chmood&amp;sid=$sid&amp;pa ge=1">ICONE</a><br/>";
    echo "<b></b><a href="lists.php?action=modr&amp;sid=$sid">[<b>CONTATTA MODS</b>]</a><br/>";
    echo "<b></b><a href="lists.php?action=smodr&amp;sid=$sid">[<b>CONTATTA SUPER MODS</b>]</a><br/>";


    echo "<b></b><a href="bacia-legna.php?action=main&amp;sid=$sid">BACIA/LEGNA</a><br/><br/>";
    echo "<b></b><a href="invita.php?action=main&amp;sid=$sid">INVIT A</a><br/>";
    //echo "<b></b><a accesskey="2" href="lists.php?action=smilies&amp;sid=$sid">Smi lEYS-LOGHI</a><br/>";
    echo "<b></b><a accesskey="3" href="chat.php?action=inside&amp;sid=$sid&amp;rid =$rid&amp;rpw=$rpw">ON LINE</a><br/>";
    $rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'"));
    $rname = $rooms[1];
    echo "<b></b><a accesskey="4" href="chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw ">INDIETRO A $rname</a><br/>";
    echo "<b></b><a accesskey="6" href="inbox.php?action=main&amp;sid=$sid">POSTA</a><br/>";
    //echo "<b></b><a href="funalert.php?action=main&amp;sid=$sid">BAC IA/LEGNA</a><br/>";
    echo "<b></b><a accesskey="7" href="lists.php?action=buds&amp;sid=$sid"><img src="../images/AMICI.gif" alt=""/>AMICI</a><br/>";

    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_ignore WHERE name='".$uid."'"));
    echo "<a href="lists.php?action=ignl&amp;sid=$sid"><img src="../images/IGNORATI.gif" alt=""/>IGNORATI($noi[0])</a><br/>";






    echo "<img src="../images/homestanza.gif" alt=""/><br/>";
    echo "<b></b><a accesskey="8" href="index.php?action=chat&amp;sid=$sid">[LISTA STANZE]</a><br/>";

    //echo "<a href="ravebabe.php?sid=$sid">[CHAT ROBOT]M</a><br/>";
    //echo "<a href="ravebabe2.php?sid=$sid">[CHAT ROBOT]F</a><br/>";
    echo "<b></b><br/><a accesskey="9" href="index.php?action=clmenu&amp;sid=$sid">Club s</a><br/>";
    echo forumlink($sid);
    echo "<b></b><a accesskey="0" href="index.php?action=main&amp;sid=$sid"><img src="../images/home.gif" alt=""/>Home</a></p>";
    echo "<div></div><br/>";

    ?><br/><br/><small>PEOPLE 2000 CHAT</small><br/><?
    echo "</body>";
    }
    ////////////////////////////////////////////
    //////////////////////////////inside//////////
    else if ($action=="inside") {

    addonline($uid,"sta guardando lista utenti in una stanza","");
    echo "<head>";
    echo "<title>ON LINE in $rname</title>";
    echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">";
    echo "</head>";

    echo "<body bgcolor="#99CCFF" link="#0000CC" vlink="#0000CC" alink="#0000CC">\n";
    //echo "<body>";
    echo "<p align="center"><br/>";

    echo "<img src="../images/onlinestanza.gif" alt=""/><br/>";

    echo "<div></div><br/>";


    $inside=mysql_query("SELECT DISTINCT * FROM ibwf_chonline WHERE rid='".$rid."' and uid IS NOT NULL");

    while($ins=mysql_fetch_array($inside))
    {
    $unick = getnick_uid($ins[1]);
    $userl = "<a href="chat.php?action=say2&amp;sid=$sid&amp;who=$ ins[1]&amp;rid=$rid&amp;rpw=$rpw">$unick</a><br/>";
    echo "$userl";
    }
    echo "<br/>";
    $rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'"));
    $rname = $rooms[1];


    echo "<b>-></b><a href="index.php?action=online&amp;sid=$sid">Onli ne TOTALI(".getnumonline().")</a><br/>";
    echo "<b></b><a href="invita.php?action=main&amp;sid=$sid">INVIT A</a><br/>";
    echo "<b></b><a accesskey="4" href="chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw ">INDIETRO A $rname</a><br/>";
    echo "<b></b><a accesskey="6" href="inbox.php?action=main&amp;sid=$sid">POSTA</a><br/>";
    echo "<b></b><a accesskey="7" href="lists.php?action=buds&amp;sid=$sid"><img src="../images/AMICI.gif" alt=""/>AMICI</a><br/>";



    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_ignore WHERE name='".$uid."'"));
    echo "<a href="lists.php?action=ignl&amp;sid=$sid"><img src="../images/IGNORATI.gif" alt=""/>IGNORATI($noi[0])</a><br/>";


    echo "<b></b><a accesskey="8" href="index.php?action=chat&amp;sid=$sid">Chat</a><br/>";
    echo forumlink($sid);
    echo "<b></b><a accesskey="0" href="index.php?action=main&amp;sid=$sid"><img src="../images/home.gif" alt=""/>Home</a></p>";
    echo "<div></div><br/>";

    ?><br/><br/><small>PEOPLE 2000 CHAT</small><br/><?
    echo "</body>";
    }
    else if ($action=="expose") {

    addonline($uid,"sta segnalando abuso in chatrooms","");
    echo "<head>";
    echo "<title>SEGNALAZIONE</title>";
    echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">";
    echo "</head>";
    echo "<body bgcolor="#99CCFF" link="#0000CC" vlink="#0000CC" alink="#0000CC">\n";
    //echo "<body>";
    echo "<p align="center"><br/>";
    echo "<br/><img src="../images/segnala.gif" alt=""/><br/>";







    mysql_query("UPDATE ibwf_chat SET exposed='1' WHERE chatter='".$who."' AND who='".$uid."'");
    $unick = getnick_uid($who);









    echo "il <b>DIALOGO-PVT</b> di $unick , a te inviato,E STATO <b>SEGNALATO</b> e reso pubblico in stanza !! ..";
    echo "<br/>ricorda che puoi SEMPRE inserire i DISTURBATORI in LISTA NERA!..";
    echo "<br/><br/>";
    $rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'"));
    $rname = $rooms[1];
    echo "<b></b><a accesskey="4" href="chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw ">INDIETRO a $rname</a><br/>";
    echo "<b></b><a accesskey="6" href="inbox.php?action=main&amp;sid=$sid">POSTA</a><br/>";
    echo "<b></b><a accesskey="7" href="lists.php?action=buds&amp;sid=$sid"><img src="../images/AMICI.gif" alt=""/>AMICI</a><br/>";

















    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_ignore WHERE name='".$uid."'"));
    echo "<a href="lists.php?action=ignl&amp;sid=$sid"><img src="../images/IGNORATI.gif" alt=""/>IGNORATI($noi[0])</a><br/>";


    echo "<img src="../images/homestanza.gif" alt=""/><br/>";
    echo "<b></b><a accesskey="8" href="index.php?action=chat&amp;sid=$sid"><img src="../images/chat.gif" alt=""/>LISTA STANZE</a><br/>";

    //echo "<a href="ravebabe.php?sid=$sid">[CHAT ROBOT]M</a><br/>";
    //echo "<a href="ravebabe2.php?sid=$sid">[CHAT ROBOT]F</a><br/>";


    echo "<b></b><br/><a accesskey="9" href="index.php?action=clmenu&amp;sid=$sid">Club s</a><br/>";
    echo forumlink($sid);
    echo "<b></b><a accesskey="0" href="index.php?action=main&amp;sid=$sid"><img src="../images/home.gif" alt=""/>Home</a></p>";
    echo "<div></div><br/>";

    ?><br/><br/><small>PEOPLE 2000 CHAT</small><br/><?


    echo "</body>";


    }
    else if(($action=="clear")&&(ismod($uid)))
    {
    addonline($uid,"è in pannello chat","");
    echo "<head>";
    echo "<title>CANCELLA MESSAGGI</title>";
    echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">";
    echo "</head>";
    echo "<body bgcolor="#99CCFF" link="#0000CC" vlink="#0000CC" alink="#0000CC">\n";
    //echo "<body>";
    echo "<p align="center"><br/>";


    echo "<br/><img src="../images/logo3.gif" alt=""/><br/>";

    echo "<div></div><br/>";
    $trgtnick=getnick_uid($who);
    $perm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$uid."'"));
    $trgtperm = mysql_fetch_array(mysql_query("SELECT perm FROM ibwf_users WHERE id='".$who."'"));
    if($trgtperm>$perm){
    echo "<b><img src="../images/notok.gif" alt=""/><br/>ErrorE!!!<br/>PermESSO NEGATO..</b><br/>";
    echo "<br/>NON PUOI CANCELLARE MESSAGGI DI $trgtnick<br/>";
    }else{
    if(($who!="")||($who!=0))
    {
    $res = mysql_query("DELETE FROM ibwf_chat WHERE chatter='".$who."'");
    if($res)
    {
    echo "MESSAGGI DI $trgtnick ,in tutte le STANZE, ELIMINATI!!<br/>";
    }else{
    echo "ERRORE<br/>";
    }
    }else{
    echo "UTENTE INESISTENTE<br/>";
    }
    }
    echo "<br/>";
    $rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM ibwf_rooms WHERE id='".$rid."'"));
    $rname = $rooms[1];
    echo "<b></b><a accesskey="4" href="chat.php?sid=$sid&amp;rid=$rid&amp;rpw=$rpw ">INDIETRO A $rname</a><br/>";
    //echo "<b></b><a accesskey="6" href="inbox.php?action=main&amp;sid=$sid">PVT Inbox</a><br/>";
    echo "<b></b><a accesskey="7" href="lists.php?action=buds&amp;sid=$sid"><img src="../images/AMICI.gif" alt=""/>AMICI</a><br/>";


    $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_ignore WHERE name='".$uid."'"));
    echo "<a href="lists.php?action=ignl&amp;sid=$sid"><img src="../images/IGNORATI.gif" alt=""/>IGNORATI($noi[0])</a><br/>";




    echo "<b></b><a accesskey="8" href="index.php?action=chat&amp;sid=$sid"><img src="../images/chat.gif" alt=""/>LISTA STANZE</a><br/>";



    //echo "<a href="ravebabe.php?sid=$sid">[CHAT ROBOT]M</a><br/>";
    //echo "<a href="ravebabe2.php?sid=$sid">[CHAT ROBOT]F</a><br/>";





    echo "<b></b><br/><a accesskey="9" href="index.php?action=clmenu&amp;sid=$sid">Club s</a><br/>";
    echo forumlink($sid);
    echo "<b></b><a accesskey="0" href="index.php?action=main&amp;sid=$sid"><img src="../images/home.gif" alt=""/>Home</a></p>";
    echo "<div></div><br/>";
    ?><br/><br/><small>PEOPLE 2000 CHAT</small><br/><?
    echo "</body>";
    }
    ?>
    </html>
    Last edited by honkytonkman; 16.03.16, 13:26.

    Leave a comment:


  • something else
    replied
    Can you post your chat.php here

    Leave a comment:


  • honkytonkman
    replied
    Originally posted by something else View Post
    Try commenting out or deleting this function in core.php:
    PHP Code:
    /*if(!get_magic_quotes_gpc()){
    $_GET = array_map('trim', $_GET);
    $_POST = array_map('trim', $_POST);
    $_COOKIE = array_map('trim', $_COOKIE);
    $_GET = array_map('addslashes', $_GET);
    $_POST = array_map('addslashes', $_POST);
    $_COOKIE = array_map('addslashes', $_COOKIE);
    }*/ 
    but make sure you are using mysql_escape_string() on all your $_POSTs and $_GETs etc
    done it.now on shotbox,forum,etc.. l'isola appears right without slash.. BUT.. in chat rooms problem is still living!..no message appears if i use words as l'isola, l'alba etc. appears only writing l\'isola,l\'alba ,etc.as before

    Leave a comment:


  • something else
    replied
    Try commenting out or deleting this function in core.php:
    PHP Code:
    /*if(!get_magic_quotes_gpc()){
    $_GET = array_map('trim', $_GET);
    $_POST = array_map('trim', $_POST);
    $_COOKIE = array_map('trim', $_COOKIE);
    $_GET = array_map('addslashes', $_GET);
    $_POST = array_map('addslashes', $_POST);
    $_COOKIE = array_map('addslashes', $_COOKIE);
    }*/ 
    but make sure you are using mysql_escape_string() on all your $_POSTs and $_GETs etc

    Leave a comment:


  • honkytonkman
    replied
    Originally posted by something else View Post
    I'm guessing chat hasn't got parsepm() function in it
    could try:
    $text = str_replace("","",$text);

    and that should wipe out all slashes
    try it ..but putting this code on core appears:
    Parse error: syntax error, unexpected '"' in /membri/honkytonkman/CHAT/web/core.php on line 2643

    Leave a comment:


  • something else
    replied
    I'm guessing chat hasn't got parsepm() function in it
    could try:
    $text = str_replace("\","",$text);

    and that should wipe out all slashes

    Leave a comment:


  • Ghost
    replied
    Originally posted by honkytonkman View Post
    DO IT...
    sorry but ive never used crappy lavalair. and i dont intend to start now.

    Leave a comment:


  • honkytonkman
    replied
    Originally posted by something else View Post
    Oops I was wrong...... Try:
    $text = stripslashes($text);
    sometthing changes now.. in forum now, l'alba appears only with one slash : l\'alba
    but in chat message with it don't appears..as before .only way is writing in the field with slash

    Leave a comment:


  • something else
    replied
    Oops I was wrong...... Try:
    $text = stripslashes($text);

    Leave a comment:


  • honkytonkman
    replied
    Originally posted by Ghost View Post
    i think something else may off slightly giving you wrong str_replace.
    you should be trying to str_replace \\\ not ///

    try it instead with:
    PHP Code:
    $text = str_replace("\\","",$text); 
    DO IT...this is results:

    Parse error: syntax error, unexpected '"' in /membri/honkytonkman/CHAT/web/core.php on line 2640

    Leave a comment:


  • Ghost
    replied
    i think something else may off slightly giving you wrong str_replace.
    you should be trying to str_replace \\\ not ///

    try it instead with:
    PHP Code:
    $text = str_replace("\\\","",$text); 

    Leave a comment:


  • honkytonkman
    replied
    no..don't works ..nothing change.. i have inserted in core.php here:

    ////////bbcode
    $text=preg_replace("/\[small\](.*?)\[\/small\]/i","<small>\\1</small>", $text);

    $text = preg_replace("/\[url\=(.*?)\](.*?)\[\/url\]/is","<a href="$1">$2</a>",$text);
    $text = preg_replace("/\[topic\=(.*?)\](.*?)\[\/topic\]/is","<a href="index.php?action=viewtpc&amp;tid=$1&amp;sid= $sid">$2</a>",$text);
    $text = preg_replace("/\[club\=(.*?)\](.*?)\[\/club\]/is","<a href="index.php?action=gocl&amp;clid=$1&amp;sid=$s id">$2</a>",$text);
    $text = preg_replace("/\[blog\=(.*?)\](.*?)\[\/blog\]/is","<a href="index.php?action=viewblog&amp;bid=$1&amp;sid =$sid">$2</a>",$text);
    $text = preg_replace("/\[img\=(.*?)\](.*?)\[\/img\]/i","<img src="\\1"/>",$text);
    $text = preg_replace("/\[img\=(.*?)\](.*?)\[\/img\]/i","<img src="\\1"/>",$text);
    ////////////



    $text = str_replace("///","",$text);
    $text = ereg_replace("http://[A-Za-z0-9.-_/=?]+","<a href="\\0">\\0</a>", $text);



    Leave a comment:


  • something else
    replied
    Yeah that should work

    Leave a comment:


  • honkytonkman
    replied
    Originally posted by something else View Post
    Its because you are using a quick fix for mysql_real_escape_string()

    I guess a quick fix for it would be to use a string replacement in your parsebb function:
    $text = str_replace("///","",$text);
    well, so i have to put this string in parsebb function..but it's too long from when i did coding and i have forgot many things..where stands this parsebb function in
    the lava script?..you're talking about the core.php?

    Leave a comment:


  • something else
    replied
    Its because you are using a quick fix for mysql_real_escape_string()

    I guess a quick fix for it would be to use a string replacement in your parsebb function:
    $text = str_replace("///","",$text);

    Leave a comment:

Working...
X