Not working
yes its not working 🙁
External image (may be gone) TIME SPACE WARP NGAYON DIN!!! Ang amin ay amin lamang at ang sa inyo ay amin parin - TEAM LUPIN
Started on the old forum in August 2008 · view the original in the archive · old links redirect here
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
Not working
yes its not working 🙁
External image (may be gone) TIME SPACE WARP NGAYON DIN!!! Ang amin ay amin lamang at ang sa inyo ay amin parin - TEAM LUPIN
yes its not working :(
Aw Sorry here it is
function addtochat($uid, $rid)
{
$bago = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE uid='".$uid."' AND rid='".$rid."'"));
if($bago[0]==0){
$msg = "/me Enter the Room";
mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', userid='".$uid."', text='".$msg."'");
}
$timeto = 120;
$timenw = time();
$timeout = $timenw - $timeto;
$exec = mysql_query("DELETE FROM ibwf_chonline WHERE lton<'".$timeout."'");
$res = mysql_query("INSERT INTO ibwf_chonline SET lton='".time()."', uid='".$uid."', rid='".$rid."'");
if(!$res)
{
mysql_query("UPDATE ibwf_chonline SET lton='".time()."', rid='".$rid."' WHERE uid='".$uid."'");
}
}
you need to be sorry again for your wrong code
mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', userid='".$uid."', text='".$msg."'");
there is no userid row in ibwf_chat table it would be chatter.though still this code doesnot work
you need to be sorry again for your wrong code
mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', userid='".$uid."', text='".$msg."'");there is no userid row in ibwf_chat table it would be chatter.though still this code doesnot work
so rukiya bro. .Can u give the full, complete and working code?
you need to be sorry again for your wrong code
mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', userid='".$uid."', text='".$msg."'");there is no userid row in ibwf_chat table it would be chatter.though still this code doesnot work
LoL tnx.. Simply replace userid by chatter if that is in your table I only copy the table structure used in first page
$res = mysql_query("INSERT INTO ibwf_chonline SET lton='".time()."', uid='".$uid."', rid='".$rid."'"); if($res) { $msg = getnick_uid($uid)."enter the room"; mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', userid='0', text='".$msg."'"); } else { //just update the chonline list } dont remember if time sent is the correct field name anyways after doing that ....in the chat room when fetching the items from ibwf_chat eg $sql = mysql_query("SELECT userid,timesent,text FROM ibwf_chat"); while($item = mysql_fetch_array($sql)) { if($item[0]=='0') { $item[0]="chat_system"; echo $item[0].$item[1].$item[2]; } else { //print the items }this code already posted by mckeny juz use search button
Here it is hope it will work now
function addtochat($uid, $rid)
{
$bago = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE uid='".$uid."' AND rid='".$rid."'"));
if($bago[0]==0){
$msg = "/me Enter the Room";
mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', chatter='".$uid."', text='".$msg."'");
}
$timeto = 120;
$timenw = time();
$timeout = $timenw - $timeto;
$exec = mysql_query("DELETE FROM ibwf_chonline WHERE lton<'".$timeout."'");
$res = mysql_query("INSERT INTO ibwf_chonline SET lton='".time()."', uid='".$uid."', rid='".$rid."'");
if(!$res)
{
mysql_query("UPDATE ibwf_chonline SET lton='".time()."', rid='".$rid."' WHERE uid='".$uid."'");
}
}
LoL tnx.. Simply replace userid by chatter if that is in your table I only copy the table structure used in first page Here it is hope it will work now
function addtochat($uid, $rid) { $bago = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE uid='".$uid."' AND rid='".$rid."'")); if($bago[0]==0){ $msg = "/me Enter the Room"; mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', chatter='".$uid."', text='".$msg."'"); } $timeto = 120; $timenw = time(); $timeout = $timenw - $timeto; $exec = mysql_query("DELETE FROM ibwf_chonline WHERE lton<'".$timeout."'"); $res = mysql_query("INSERT INTO ibwf_chonline SET lton='".time()."', uid='".$uid."', rid='".$rid."'"); if(!$res) { mysql_query("UPDATE ibwf_chonline SET lton='".time()."', rid='".$rid."' WHERE uid='".$uid."'"); } }
QUOTE(rukiya)
though still this code doesnot work
is that too difficult to help others??i have edit the code that give by mckeny but still not working..
function addtochat($uid, $rid) { $timeto = 120; $timenw = time(); $timeout = $timenw - $timeto; $exec = mysql_query("DELETE FROM ibwf_chonline WHERE lton<'".$timeout."'"); $res = mysql_query("INSERT INTO ibwf_chonline SET lton='".time()."', uid='".$uid."', rid='".$rid."'"); if(!$res) {
$msg = getnick_uid($uid)."enter the room"; mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', id='0', msgtext='".$msg."'");
} else { mysql_query("UPDATE ibwf_chonline SET lton='".time()."', rid='".$rid."' WHERE uid='".$uid."'"); } $sql = mysql_query("SELECT id,chatter,timesent,msgtext FROM ibwf_chat"); while($item = mysql_fetch_array($sql)) { $item = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE uid='".$uid."' AND rid='".$rid."'")); if($item[0]==0) { $item[0]="chat system"; echo $item[0].$item[1].$item[2]; } else { //print the items } } }
can somebody fix it?
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
function addtochat($uid, $rid)
{
$bago = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE uid='".$uid."' AND rid='".$rid."'"));
if($bago[0]==0){
$msg = "*mat Enter the Room";
mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', chatter='".$uid."', text='".$msg."'");
}
$timeto = 120;
$timenw = time();
$timeout = $timenw - $timeto;
$exec = mysql_query("DELETE FROM ibwf_chonline WHERE lton<'".$timeout."'");
$res = mysql_query("INSERT INTO ibwf_chonline SET lton='".time()."', uid='".$uid."', rid='".$rid."'");
if(!$res)
{
mysql_query("UPDATE ibwf_chonline SET lton='".time()."', rid='".$rid."' WHERE uid='".$uid."'");
}
}
Find this code inside your chat.php (If you cant find this code better to post your whole chat.php code here 🙂)
if(isspam($text))
{
$chnick = getnick_uid($chat[0]);
echo "[b]Chat system:[i]*$chnick, please don't try to spam*[/i][/b]
";
}
Replace it with
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't try to spam*[/i][/b]
";
}else{
echo "[b]Chat system:[i]*$chnick, Joined the room*[/i][/b]
";
}
}
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
function addtochat($uid, $rid) { $bago = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE uid='".$uid."' AND rid='".$rid."'")); if($bago[0]==0){ $msg = "*mat Enter the Room"; mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', chatter='".$uid."', text='".$msg."'"); } $timeto = 120; $timenw = time(); $timeout = $timenw - $timeto; $exec = mysql_query("DELETE FROM ibwf_chonline WHERE lton<'".$timeout."'"); $res = mysql_query("INSERT INTO ibwf_chonline SET lton='".time()."', uid='".$uid."', rid='".$rid."'"); if(!$res) { mysql_query("UPDATE ibwf_chonline SET lton='".time()."', rid='".$rid."' WHERE uid='".$uid."'"); } }Find this code inside your chat.php (If you cant find this code better to post your whole chat.php code here 🙂)
if(isspam($text)) { $chnick = getnick_uid($chat[0]); echo "Chat system:*$chnick, please don't try to spam* "; }Replace it with
if(isspam($text) || substr($chat[3],0,4)=="*mat") { $chnick = getnick_uid($chat[0]); if(isspam($text)){ echo "Chat system:*$chnick, please don't try to spam* "; }else{ echo "Chat system:*$chnick, Joined the room* "; } }
$chnick = getnick_uid($chat[0]);
$tonick = getnick_uid($chat[1]);
$optlink = "$iml by ".$chnick." to ".$tonick;
}
$ds= date("H.i.s", $chat[2]);
$text = parsepm($chat[3], $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]Chat system:[i]*$chnick, please don't try to spam*[/i][/b]
";
}else{
echo "[b]Chat system:[i]*$chnick, Joined the room*[/i][/b]
";
}
}
else if($nos>2){
$chnick = getnick_uid($chat[0]);
echo "[b]Chat system:»[i]*hey! $chnick, you can only use 2 smilies per msg*[/i][/b]
";
where do i get it wrong? ? Nothing seems to be appear. .Help
by the end the oNe who think thy so great fall down and cry like a bAby who wana his lil m0mmy. . .Fcuk up magGot
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
Lol..The code only show "me enter the room" but not show the user nick?
as you see chane me to uid hehehehe i will share it...
reveal who entered the room..
CODE $me= getnick_uid($uid); mysql_query("INSERT INTO ibwf_chat SET chatter='1', who='".$who."', timesent='".time()."', msgtext='$me entered the JAKENPOY Chat room', rid='".$rid."'");
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.
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
function addtochat($uid, $rid) { $bago = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE uid='".$uid."' AND rid='".$rid."'")); if($bago[0]==0){ $msg = "*mat Enter the Room"; mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', chatter='".$uid."', text='".$msg."'"); } $timeto = 120; $timenw = time(); $timeout = $timenw - $timeto; $exec = mysql_query("DELETE FROM ibwf_chonline WHERE lton<'".$timeout."'"); $res = mysql_query("INSERT INTO ibwf_chonline SET lton='".time()."', uid='".$uid."', rid='".$rid."'"); if(!$res) { mysql_query("UPDATE ibwf_chonline SET lton='".time()."', rid='".$rid."' WHERE uid='".$uid."'"); } }Find this code inside your chat.php (If you cant find this code better to post your whole chat.php code here 🙂)
if(isspam($text)) { $chnick = getnick_uid($chat[0]); echo "Chat system:*$chnick, please don't try to spam* "; }Replace it with
if(isspam($text) || substr($chat[3],0,4)=="*mat") { $chnick = getnick_uid($chat[0]); if(isspam($text)){ echo "Chat system:*$chnick, please don't try to spam* "; }else{ echo "Chat system:*$chnick, Joined the room* "; } }
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.
how i make at me 2 work 🙁 i tried 🙁 but dont showCODE<?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> <?phpinclude("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 " "; 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 " "; echo "</card>"; echo "</wml>"; exit(); }
if(isbanned($uid)) { echo "<card id="main" title="TecWeb">"; echo " "; 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='".$uid."' AND penalty='1' OR uid='".$uid."' AND penalty='2'")); $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM lib3rtymrc_users WHERE id='".$uid."'")); $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 " "; echo "</card>"; echo "</wml>"; exit(); } if(ischatban($uid)) { echo "<card id="main" title="TecWeb">"; echo " "; 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='".$uid."' AND penalty='4'")); $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='".$uid."'")); echo "Motiv ban: $banres[0] "; echo "<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>"; echo "Prim</a>"; echo " "; echo "</card>"; echo "</wml>"; exit(); } ///////////////////////////////////time $res = mysql_fetch_array(mysql_query("SELECT lastact FROM lib3rtymrc_users WHERE id='".$uid."'")); $lastact = $res[0]; $atime = time() - $lastact;
if($atime<1800){ $res = mysql_fetch_array(mysql_query("SELECT otime, mtime FROM lib3rtymrc_users where id='".$uid."'")); $otime = $res[0] + $atime; $mtime = $res[1] + $atime; $res = mysql_query("UPDATE lib3rtymrc_users SET otime='".$otime."', mtime='".$mtime."' where id='".$uid."'"); }
$isroom = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_rooms WHERE id='".$rid."'"));
if($isroom[0]==0)
{
echo "<card id=\"main\" title=\"TecWeb\">";
echo "
"; echo "Aceasta camera nu mai exista "; echo ":P vezi in alta camera
"; echo "<a href="index.php?action=chat&sid=$sid">Camere chat</a>"; echo " "; echo "</card>"; echo "</wml>"; exit(); } $passworded = mysql_fetch_array(mysql_query("SELECT pass FROM lib3rtymrc_rooms WHERE id='".$rid."'")); if($passworded[0]!="") { if($rpw!=$passworded[0]) { echo "<card id="main" title="TecWeb">"; echo " "; echo "Nu poti intra in aceasta camera! "; echo "Parola gresita!
"; echo "<a href="index.php?action=chat&sid=$sid">Camere chat</a>"; echo " "; echo "</card>"; echo "</wml>"; exit(); } } if(!canenter($rid,$sid)) { echo "<card id="main" title="TecWeb">"; echo " "; echo "Nu poti intra in aceasta camera "; echo ":P hai ia distanta
"; echo "<a href="index.php?action=chat&sid=$sid">Camere chat</a>"; echo " "; 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='".$rid."'"));
$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('dmHis');
echo "&sid=$sid&rid=$rid&rpw=$rpw";
echo "\">";
//start of main card
echo "<timer value=\"200\"/>
"; addonline($uid,"Camera Chat $rname","chat.php?sid=$sid&rid=$rid&rpw=$rpw"); // alerte $uid = getuid_sid($sid); $unreadpopup=mysql_fetch_array(mysql_query("SELECT COUNT() FROM lib3rtymrc_popups WHERE unread='1' AND touid='".$uid."'")); if ($unreadpopup[0]>0) { echo popup($sid); echo " "; echo "</card>"; echo "</wml>"; exit(); } //// // if(ismod($uid)) { $noi = mysql_fetch_array(mysql_query("SELECT count() FROM lib3rtymrc_users WHERE validated='0'")); if($noi[0]>0) { echo "(!)<a href="moderator.php?action=validatelist&sid=$sid">Conturi Nevalidate</a>($noi[0]) "; } } // echo " <a href="chat.php?action=say&sid=$sid&rid=$rid&rpw=$rpw">scrie</a>| "; echo "<a href="chat.php?time="; echo date('dmHis'); echo "&sid=$sid&rid=$rid&rpw=$rpw"; echo "">refresh</a>|"; echo "<a href="lists.php?action=smilies&sid=$sid">emotii</a>"; $sml = mysql_fetch_array(mysql_query("SELECT hvia FROM lib3rtymrc_users WHERE id='".getuid_sid($sid)."'")); if($sml[0]=="1") { //echo "emotii <a href="genproc.php?action=shsml&sid=$sid&act=dis">off</a>"; }else{ //echo "emotii <a href="genproc.php?action=shsml&sid=$sid&act=enb">on</a>"; //echo "emotii <a href="lists.php?action=smilies&sid=$sid">emotii</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='1' AND touid='".$uid."'")); $pmtotl=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_private WHERE touid='".$uid."'")); $unrd="[".$unreadinbox[0]."]"; if ($unreadinbox[0]==1) { echo " ai<a href="posta.php?action=main&sid=$sid"> un </a>pm
==== "; } if ($unreadinbox[0]>1) { echo " ai<a href="posta.php?action=main&sid=$sid"> $unrd </a>pm-uri ==== "; } echo " "; $message=$_POST["message"]; $who = $_POST["who"]; $rinfo = mysql_fetch_array(mysql_query("SELECT censord, freaky FROM lib3rtymrc_rooms WHERE id='".$rid."'")); if (trim($message) != "") { $nosm = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_chat WHERE msgtext='".$message."'")); if($nosm[0]==0){
$chatok = mysql_query("INSERT INTO lib3rtymrc_chat SET chatter='".$uid."', who='".$who."', timesent='".time()."', msgtext='".$message."', rid='".$rid."';");
$lstmsg = mysql_query("UPDATE lib3rtymrc_rooms SET lastmsg='".time()."' WHERE id='".$rid."'");
$hehe=mysql_fetch_array(mysql_query("SELECT chmsgs FROM lib3rtymrc_users WHERE id='".$uid."'"));
$totl = $hehe[0]+1;
$msgst= mysql_query("UPDATE lib3rtymrc_users SET chmsgs='".$totl."' WHERE id='".$uid."'");
//// plusuri pe camera de chat
$usts = mysql_fetch_array(mysql_query("SELECT plusses FROM lib3rtymrc_users WHERE id='".$uid."'"));
$upl = $usts[0]+1;// aici e q ++
mysql_query("UPDATE lib3rtymrc_users SET plusses='".$upl."' WHERE id='".$uid."'");
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)."&custid=".$custid;
$result = PostToHost($hostname, $hostpath, $sendData);
$pos = strpos($result, "custid=\"");
$pos = strpos($result, "<that>");
if ($pos === false) {
$reply = "";
} else {
$pos += 6;
$endpos = strpos($result, "</that>", $pos);
$reply = unhtmlspecialchars2(substr($result, $pos, $endpos - $pos));
$reply = mysql_escape_string($reply);
}
$chatok = mysql_query("INSERT INTO lib3rtymrc_chat SET chatter='8152', who='', timesent='".time()."', msgtext='".$reply." @".getnick_uid($uid)."', rid='".$rid."';");
}
}
$message = "";
}
echo "
"; echo ""; $chats = mysql_query("SELECT chatter, who, timesent, msgtext, exposed FROM lib3rtymrc_chat WHERE rid='".$rid."' 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]=='1' && ismod($uid))
{
$canc = true;
}
if($canc)
{
$cmid = mysql_fetch_array(mysql_query("SELECT chmood FROM lib3rtymrc_users WHERE id='".$chat[0]."'"));
$iml = "";
if(($cmid[0]!=0))
{
$mlnk = mysql_fetch_array(mysql_query("SELECT img, text FROM lib3rtymrc_moods WHERE id='".$cmid[0]."'"));
$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]=='1')
{
///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,"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("fuck","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='".$chat[0]."'"));
if($nopl[0]=='M')
{
$usex = "B";
}else if($nopl[0]=='F'){
$usex = "F";
}else{
$usex = "<img src=\"images/unknown.gif\" alt=\".\"/>";
}
// echo "»<a href=\"chat.php?action=say2&sid=$sid&who=$chat[0]&rid=$rid&rpw=$rpw\">$optlink</a>-$ds
"; if(ismod(getuid_sid($sid))) { echo "<a href="moderator.php?action=moderare&who=$chat[0]&sid=$sid&who=$chat[0]">[x]</a>"; }
// echo "$usex»<a href=\"chat.php?action=say2&sid=$sid&who=$chat[0]&rid=$rid&rpw=$rpw\">$optlink</a>-".getstatus($chat[0])."
"; echo "($usex)<a href="chat.php?action=privat&sid=$sid&who=$chat[0]&rid=$rid&rpw=$rpw">$optlink</a>-$ds "; echo $tosay." ===== ";
// echo $tosay."
===== ";
}
}
$counter++;
}
}
}
echo "";
//echo "
";
echo " "; echo " "; $chatters=mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM lib3rtymrc_chonline where rid='".$rid."'")); echo " conectati camera:<a href="chat.php?action=inside&sid=$sid&rid=$rid&rpw=$rpw">$chatters[0]</a> "; echo "conectati site:<a href="conectati.php?action=online&sid=$sid&rid=$rid&rpw=$rpw">".getnumonline()."</a> "; echo "<a href="index.php?action=main&sid=$sid">Acasa</a> "; $time=number_format(microtime(),2); echo "pagina incarcata in: $time secunde "; echo " "; echo "</card>"; }
/////////////////////////////////////////////////////SAY else if ($action=="say") { echo "<card id="say" title="Scrie Mesaj pe Chat">";
addonline($uid,"Scrie mesaj pe chat","");
echo "
"; echo "Mesaj: <input name="message" type="text" value="" maxlength="255"/> "; echo "<anchor>[scrie]"; echo "<go href="chat.php?sid=$sid&rid=$rid&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&rid=$rid&rpw=$rpw&font=$ingrosat" method="post">"; //echo "<postfield name="message" value="$(message)"/>"; //echo "</go></anchor> "; //}else{ //echo "[bold] "; //} echo "<a href="lists.php?action=chmood&sid=$sid&page=1">Mood-uri</a> "; echo "<a href="lists.php?action=smilies&sid=$sid">Emotii</a> "; echo "«<a href="chat.php?sid=$sid&rid=$rid&rpw=$rpw">Camera</a>"; //end
echo "
<a href="index.php?action=chat&sid=$sid">Meniu chat</a> "; echo "<a href="index.php?action=main&sid=$sid">Acasa</a> ";
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 "
"; $nopl = mysql_fetch_array(mysql_query("SELECT sex, location, birthday FROM lib3rtymrc_users WHERE id='".$who."'")); $uage = getage($nopl[2]); if($nopl[0]=='M') { $usex = "<img src="images/male2.gif" alt="."/>"; }else if($nopl[0]=='F'){ $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 " "; echo "
Mesaj:<input name="message" type="text" value=" " maxlength="255"/> "; echo "«<anchor>Privat"; echo "<go href="chat.php?sid=$sid&rid=$rid&rpw=$rpw" method="post">"; echo "<postfield name="message" value="$(message)"/>"; echo "<postfield name="who" value="$who"/>"; echo "</go></anchor> "; echo "»<a href="index.php?action=viewuser&sid=$sid&who=$who">$sim$unick profil</a> "; echo "»<a href="chat.php?action=expose&sid=$sid&who=$who&rid=$rid&rpw=$rpw">Expune $sim$unick</a> ";
echo "»<a href=\"chat.php?action=inside&sid=$sid&rid=$rid&rpw=$rpw\">Conectati</a>
"; echo "«<a href="chat.php?sid=$sid&rid=$rid&rpw=$rpw">Camera</a> "; //end
echo "
===== "; echo "«<a href="index.php?action=main&sid=$sid">Prim</a> ";
echo "</card>";
}
////////////////////////////////////////////
//////////////////////////////inside//////////
else if ($action=="inside") {
addonline($uid,"Conectati Camera Chat","");
echo "<card id=\"main\" title=\"Conectati chat\">";
echo "
"; $inside=mysql_query("SELECT DISTINCT * FROM lib3rtymrc_chonline WHERE rid='".$rid."' and uid IS NOT NULL");
while($ins=mysql_fetch_array($inside))
{
$nopl = mysql_fetch_array(mysql_query("SELECT sex FROM lib3rtymrc_users WHERE id='".$ins[1]."'"));
if($nopl[0]=='M')
{
$usex = "<img src=\"images/male2.gif\" alt=\".\"/>";
}else if($nopl[0]=='F'){
$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&sid=$sid&who=$ins[1]&rid=$rid&rpw=$rpw\">
$sim$unick</a>
"; echo "$userl"; } echo "
===== "; echo "«<a href="chat.php?sid=$sid&rid=$rid&rpw=$rpw">Camera</a> "; echo "«<a href="index.php?action=main&sid=$sid">Acasa</a> ";
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 "
"; mysql_query("UPDATE lib3rtymrc_chat SET exposed='1' WHERE chatter='".$who."' AND who='".$uid."'"); echo "Privatele userului $unick sunt expuse moderatorilor"; echo "
"; $rooms = mysql_fetch_array(mysql_query("SELECT id, name FROM lib3rtymrc_rooms WHERE id='".$rid."'")); $rname = $rooms[1]; echo "«<a href="chat.php?sid=$sid&rid=$rid&rpw=$rpw">Inapoi pe $rname</a> "; // echo " <a href="index.php?action=chat&sid=$sid"><img src="images/chat.gif" alt="*"/>Meniu chat</a> "; echo "<a href="index.php?action=main&sid=$sid">Acasa</a> ";
echo "</card>";
}
?> </wml>
Hate romains that take codes from here and tell to all that they had made that External image (may be gone)
CODEfunction addtochat($uid, $rid) { $bago = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE uid='".$uid."' AND rid='".$rid."'")); if($bago[0]==0){ $msg = "*mat --> Entra in STANZA"; mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', chatter='".$uid."', text='".$msg."'"); }
$timeto = 86400; $timenw = time(); $timeout = $timenw - $timeto; $exec = mysql_query("DELETE FROM ibwf_chonline WHERE lton<'".$timeout."'"); $res = mysql_query("INSERT INTO ibwf_chonline SET lton='".time()."', uid='".$uid."', rid='".$rid."'"); if(!$res) { mysql_query("UPDATE ibwf_chonline SET lton='".time()."', rid='".$rid."' WHERE uid='".$uid."'"); } }
CODEif(isspam($text) || substr($chat[3],0,4)=="mat") { $chnick = getnick_uid($chat[0]); if(isspam($text)){ echo "Chat system:$chnick, please don't try to spam*** "; }else{ echo "Chat system:$chnick, Joined the room**** "; } }
i tried into my chat but DON'T WORK...nothin' appears in chatroom...
the italian/international COMMUNITY of friendship http://people2000.netne.net WAP/WEB peoplemailbox@katamail.com
QUOTE (honkytonkman @ Dec 11 2008, 12:08 PM) <{POST_SNAPBACK}>
CODE function addtochat($uid, $rid) { $bago = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_chonline WHERE uid='".$uid."' AND rid='".$rid."'")); if($bago[0]==0){ $msg = "*mat --> Entra in STANZA"; mysql_query("INSERT INTO ibwf_chat SET timesent='".time()."', chatter='".$uid."', text='".$msg."'"); }
$timeto = 86400; $timenw = time(); $timeout = $timenw - $timeto; $exec = mysql_query("DELETE FROM ibwf_chonline WHERE lton<'".$timeout."'"); $res = mysql_query("INSERT INTO ibwf_chonline SET lton='".time()."', uid='".$uid."', rid='".$rid."'"); if(!$res) { mysql_query("UPDATE ibwf_chonline SET lton='".time()."', rid='".$rid."' WHERE uid='".$uid."'"); } }
CODEif(isspam($text) || substr($chat[3],0,4)=="mat") { $chnick = getnick_uid($chat[0]); if(isspam($text)){ echo "Chat system:$chnick, please don't try to spam*** "; }else{ echo "Chat system:$chnick, Joined the room**** "; } }
i tried into my chat but DON'T WORK...nothin' appears in chatroom... 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ノ刀ノイリ!
QUOTE (ionutxp @ Dec 10 2008, 08:26 PM) <{POST_SNAPBACK}>
//////////////////////////////////////// ////////////// CHAT.php By IonutXp ////////////////////////////////////////
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ノ刀ノイリ!
😐 😐
Hate romains that take codes from here and tell to all that they had made that External image (may be gone)