0){$color="#00FF00";} else{$color="#AA0000";} $userspost=$_POST["pspmessage"]; $name=$_COOKIE["name"]; if($name==""){ $name=$_POST["pspname"]; if($name!=""){setcookie("name", $name, time()+259200);} } if($userspost!="" && $name!=""){ $badWords=array("shit","fuck","cunt","lul","kut","idiot","eikel","suck","shit","cancer","hufter","idiot","piss","satan","vagina","porn","sex","virgin","clit","tits","boobs","klootzak","sticchiu","breast","tette","kanker","piss","neger","nigger","farfalla","pompino","whore","devil","poop","gay","@ss","bitch","b!tch"); $userspost=str_replace($badWords,"###",$userspost); $userspost=strtr($userspost,"<>%"," "); // Emoticons $userspost=str_replace("[:)]","",$userspost); $userspost=str_replace("[;)]","",$userspost); $userspost=str_replace("[lol]","",$userspost); $userspost=str_replace("[eek]","",$userspost); $userspost=str_replace("[:o]","",$userspost); $userspost=str_replace("[mad]","",$userspost); $userspost=str_replace("[gr8]","",$userspost); $userspost=str_replace("[:d]","",$userspost); $userspost=str_replace("[:D]","",$userspost); $userspost=str_replace("[cool]","",$userspost); $userspost=str_replace("[:(]","",$userspost); $userspost=str_replace("[:p]","",$userspost); $userspost=str_replace("[:P]","",$userspost); $userspost=str_replace("[rolleyes]","",$userspost); $userspost=str_replace("[love]","",$userspost); $userspost=str_replace("[cry]","",$userspost); $userspost=str_replace("[help]","",$userspost); $userspost=str_replace("[nono]","",$userspost); $userspost=str_replace("[stupid]","",$userspost); $userspost=str_replace("[winner]","",$userspost); $userspost=str_replace("[sleep]","",$userspost); $userspost=str_replace("[ill]","",$userspost); $name=strtolower($name); $name=str_replace($badWords,"###",$name); $name=strtr($name,"/<>%"," "); $name=ucfirst($name); $idtag=$name; $idtag=str_replace("Gdsoldt","DownTrust",$idtag); $idtag=str_replace("Gdteamco","Codess",$idtag); $idtag=str_replace("Gdborg1","Borg",$idtag); $idtag=str_replace("Gdgoat86","Goatje",$idtag); $idtag=str_replace("Gdteamto","Toby",$idtag); $idtag=str_replace("Gdcry0","Crytek",$idtag); $newMessage=""; $newMessage.=date("H:i")." ".$idtag.": ".$userspost; $newMessage=stripslashes($newMessage); $fileName="pspmessages.txt"; $txp=fopen($fileName, "r"); $allMessages=fread($txp, filesize($fileName)); fclose($txp); $curmsgs=explode("
",$allMessages); if($newMessage!=$curmsgs[0]){ array_unshift($curmsgs,$newMessage); unset($curmsgs[50]); } $allMessages=implode("
",$curmsgs); $txp=fopen($fileName, "w"); fwrite($txp,$allMessages); fclose($txp); //Ip Logging $adm=fopen("/home/psp/public_html/adminunderscoremenu/ip_data_1.dat","r"); $allMessages=fread($adm, filesize("/home/psp/public_html/adminunderscoremenu/ip_data_1_nl.dat")); fclose($adm); $getip = $_SERVER["REMOTE_ADDR"]; $admMessage=""; $admMessage.=date("H:i")." [".$getip."] ".$idtag.": ".$userspost; $admMessage=stripslashes($admMessage); $curmsgs=explode("
",$allMessages); if($admMessage!=$curmsgs[0]){ array_unshift($curmsgs,$admMessage); unset($curmsgs[50]); } $allMessages=implode("
",$curmsgs); $adm=fopen("/home/psp/public_html/adminunderscoremenu/ip_data_1_nl.dat", "w"); fwrite($adm,$allMessages); fclose($adm); //IP Logging END } echo ""; ?> pspimages chat v1.0
Name: > Message:
red=using pcgreen=using pspblue=adminpurple=moderator