",$ReplyText); $ReplyText = str_replace(" :p ","",$ReplyText); $ReplyText = str_replace(" 8o ","",$ReplyText); $ReplyText = str_replace(" :( ","",$ReplyText); $ReplyText = str_replace(" :j ","",$ReplyText); $ReplyText = str_replace(" -- ","",$ReplyText); $ReplyText = str_replace(" ++ ","",$ReplyText); $ReplyText = str_replace(" :D ","",$ReplyText); $ReplyText = str_replace(" ;( ","",$ReplyText); $ReplyText = str_replace(" :! ","",$ReplyText); $ReplyText = str_replace(" :? ","",$ReplyText); $ReplyText = str_replace(" ;! ","",$ReplyText); $ReplyText = str_replace(" :d ","",$ReplyText); $ReplyText = str_replace(" 8I ","",$ReplyText); $ReplyText = str_replace(" ;? ","",$ReplyText); $ReplyText = str_replace(" :O ","",$ReplyText); $ReplyText = str_replace(" ;- ","",$ReplyText); $ReplyText = str_replace(" :) ","",$ReplyText); $ReplyText = str_replace(" ;D ","",$ReplyText); $ReplyText = str_replace(" ;b ","",$ReplyText); $ReplyText = str_replace(" ;I ","",$ReplyText); $ReplyText = str_replace(" ;s ","",$ReplyText); $ReplyText = eregi_replace("<([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])>","\\1://\\2\\3",$ReplyText); $ReplyText = eregi_replace("\[([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])\]","
",$ReplyText); $ReplyText = eregi_replace("(([a-z0-9_]|\\-|\\.)+@([^[:space:]]*)([[:alnum:]-])\.([^[:space:]]*)([[:alnum:]-]))","\\1",$ReplyText); return $ReplyText; } if($msg!=""){ Function WriteMyFile($contenu){ $fp = fopen("modules/kikchat/messages.txt", "w"); $r = fwrite($fp, "$contenu"); fclose($fp); } Function ReadMyFile(){ $max=22; $fcontents = file("modules/kikchat/messages.txt"); $lines=count($fcontents); if ($lines<$max){$startline=0;}else{$startline=$lines-$max;} for ($i = 0; $i <= $max; $i++) {$contenu .= $fcontents[$i+$startline];} return $contenu; } if (isset($I_HEURE_UK) && ($I_HEURE_UK != "")) $iheure=$I_HEURE_UK; else $iheure= date("H:i"); WriteMyFile(ReadMyFile()."".$iheure." : ".$name." : ".FilterText(stripslashes($msg))."
\n"); } include("modules/kikchat/skin.php"); ?>