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&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&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&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 "&sid=$sid&rid=$rid&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&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&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&sid=$sid&rid=$r id&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&sid=$sid&rid =$rid&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&sid=$sid&rid =$rid&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&sid=$sid&lstl oc=cht&rid=$rid">PVT Inbox </a><br/>";
echo "<b></b><a accesskey="*" href="chat.php?time=";
echo "".date("dmHis")."";
echo "&sid=$sid&rid=$rid&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&sid=$sid&lstl oc=cht&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&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&sid=$sid">[CERCA]</a><br/>";
if($noi[0]>0)
{
echo "<b>-></b><a href="ownercp.php?action=validatelist&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&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&sid=$sid">[CERCA]</a><br/>";
if($noi[0]>0)
{
echo "<b>-></b><a href="headadmincp.php?action=validatelist&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&sid=$sid&who=$ chat[0]&rid=$rid&rpw=$rpw">$optlink</a> - ";
echo $tosay."<br/>";
//echo "$chat[3] <a href="chat.php?action=say2&sid=$sid&who=$ chat[0]&rid=$rid&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 "&sid=$sid&rid=$rid&rpw=$rpw">Refr esH </a><br/>";
echo "<b></b><a href="chat.php?action=say&sid=$sid&rid=$r id&rpw=$rpw">[<b>SCRIVI</b>]</a><br/>";
echo "<b></b><a accesskey="2" href="lists.php?action=smilies&sid=$sid">[SmilEYS-LOGHI]</a><br/>";
echo "<b></b><a href="lists.php?action=smiliesWEB&sid=$sid">[SmilEYS-LOGHI WeB] <b>10</b> x PAG.</a><br/>";
echo "<b></b><a accesskey="3" href="chat.php?action=options&sid=$sid&ri d=$rid&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&sid=$sid&rid =$rid&rpw=$rpw">ON LINE $chatters[0]</a><br/>";
echo "<b></b><a accesskey="5" href="inbox.php?action=main&sid=$sid&lstl oc=cht&rid=$rid">[POSTA]</a><br/>";
echo "<b></b><a accesskey="6" href="lists.php?action=buds&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&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&sid=$sid">[CERCA]</a><br/>";
if($noi[0]>0)
{
echo "<b>-></b><a href="ownercp.php?action=validatelist&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&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&sid=$sid">[CERCA]</a><br/>";
if($noi[0]>0)
{
echo "<b>-></b><a href="headadmincp.php?action=validatelist&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&sid=$sid">LISTA STANZE</a><br/>";
echo "<b></b><br/><a accesskey="9" href="index.php?action=clmenu&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&sid=$sid\ ">[Topics Attivi]</a><br/>";
echo forumlink($sid);
echo "<a href="lists.php?action=allBARZ&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&sid=$sid"> Home</a><br/>";
echo "<b></b><a accesskey="0" href="index.php?action=logout&sid=$sid&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&rid=$rid&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&rid=$rid&rpw=$rpw ">INDIETRO A $rname</a><br/>";
echo "<a href="lists.php?action=bbcode&sid=$sid">BBCo de</a><br/>";
echo "<br/>";
//echo "<b></b><a accesskey="6" href="inbox.php?action=main&sid=$sid">PVT Inbox</a><br/>";
echo "<b></b><a accesskey="7" href="lists.php?action=buds&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&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&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&sid=$sid">Club s</a><br/>";
echo forumlink($sid);
echo "<b></b><a accesskey="0" href="index.php?action=main&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&rid=$rid&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&sid=$sid& who=$who&lstloc=cht&rid=$rid">VEDI PROFILO DI $unick</a><br/>";
if(ismod($uid))
{
echo "<b></b><a accesskey="*" href="chat.php?action=clear&sid=$sid&who= $who&rid=$rid&rpw=$rpw">CANCELLA MESSAGGI di $unick (tutte le STANZE)</a><br/>";
}
//echo "<b></b><a accesskey="1" href="index.php?action=viewuser&sid=$sid& who=$who&lstloc=cht&rid=$rid">VEDI PROFILO DI $unick</a><br/>";
echo "<div></div><br/>";
echo "<b></b><a accesskey="2" href="chat.php?action=expose&sid=$sid&who =$who&rid=$rid&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&rid=$rid&rpw=$rpw ">INDIETRO A $rname</a><br/>";
echo "<b></b><a accesskey="6" href="inbox.php?action=main&sid=$sid">POSTA</a><br/>";
echo "<b></b><a accesskey="7" href="lists.php?action=buds&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&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&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&sid=$sid">Club s</a><br/>";
echo forumlink($sid);
echo "<b></b><a accesskey="0" href="index.php?action=main&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&sid=$sid">[CambiA TEMA]</a></div><br/>";
echo "<b></b><a accesskey="1" href="lists.php?action=chmood&sid=$sid&pa ge=1">ICONE</a><br/>";
echo "<b></b><a href="lists.php?action=modr&sid=$sid">[<b>CONTATTA MODS</b>]</a><br/>";
echo "<b></b><a href="lists.php?action=smodr&sid=$sid">[<b>CONTATTA SUPER MODS</b>]</a><br/>";
echo "<b></b><a href="bacia-legna.php?action=main&sid=$sid">BACIA/LEGNA</a><br/><br/>";
echo "<b></b><a href="invita.php?action=main&sid=$sid">INVIT A</a><br/>";
//echo "<b></b><a accesskey="2" href="lists.php?action=smilies&sid=$sid">Smi lEYS-LOGHI</a><br/>";
echo "<b></b><a accesskey="3" href="chat.php?action=inside&sid=$sid&rid =$rid&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&rid=$rid&rpw=$rpw ">INDIETRO A $rname</a><br/>";
echo "<b></b><a accesskey="6" href="inbox.php?action=main&sid=$sid">POSTA</a><br/>";
//echo "<b></b><a href="funalert.php?action=main&sid=$sid">BAC IA/LEGNA</a><br/>";
echo "<b></b><a accesskey="7" href="lists.php?action=buds&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&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&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&sid=$sid">Club s</a><br/>";
echo forumlink($sid);
echo "<b></b><a accesskey="0" href="index.php?action=main&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&sid=$sid&who=$ ins[1]&rid=$rid&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&sid=$sid">Onli ne TOTALI(".getnumonline().")</a><br/>";
echo "<b></b><a href="invita.php?action=main&sid=$sid">INVIT A</a><br/>";
echo "<b></b><a accesskey="4" href="chat.php?sid=$sid&rid=$rid&rpw=$rpw ">INDIETRO A $rname</a><br/>";
echo "<b></b><a accesskey="6" href="inbox.php?action=main&sid=$sid">POSTA</a><br/>";
echo "<b></b><a accesskey="7" href="lists.php?action=buds&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&sid=$sid"><img src="../images/IGNORATI.gif" alt=""/>IGNORATI($noi[0])</a><br/>";
echo "<b></b><a accesskey="8" href="index.php?action=chat&sid=$sid">Chat</a><br/>";
echo forumlink($sid);
echo "<b></b><a accesskey="0" href="index.php?action=main&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&rid=$rid&rpw=$rpw ">INDIETRO a $rname</a><br/>";
echo "<b></b><a accesskey="6" href="inbox.php?action=main&sid=$sid">POSTA</a><br/>";
echo "<b></b><a accesskey="7" href="lists.php?action=buds&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&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&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&sid=$sid">Club s</a><br/>";
echo forumlink($sid);
echo "<b></b><a accesskey="0" href="index.php?action=main&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&rid=$rid&rpw=$rpw ">INDIETRO A $rname</a><br/>";
//echo "<b></b><a accesskey="6" href="inbox.php?action=main&sid=$sid">PVT Inbox</a><br/>";
echo "<b></b><a accesskey="7" href="lists.php?action=buds&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&sid=$sid"><img src="../images/IGNORATI.gif" alt=""/>IGNORATI($noi[0])</a><br/>";
echo "<b></b><a accesskey="8" href="index.php?action=chat&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&sid=$sid">Club s</a><br/>";
echo forumlink($sid);
echo "<b></b><a accesskey="0" href="index.php?action=main&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>
Comment