Codice PHP:
<?php/*** @authors Ghost & DEViANCE (CODEMAFiA.ORG)* @copyright 2008-2009 Mobile Chat* @version 2.0.0 (wml 1.1 EN)*/include("../tools/ipban.php");include("../tools/admin.php"); include("../tools/ban.php"); ?><?phpheader("Cache-Control: no-cache, must-revalidate"); // Prevent caching, HTTP/1.1header("Pragma: no-cache");echo "<?xml version=\"1.0\"?>";echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";?><html xmlns="http://www.w3.org/1999/xhtml">$nimi = $_REQUEST['nimi'];$salasana = $_REQUEST['salasana'];$swe_from = array("","","","","","","$","&","");$swe_to = array("", "", "", "", "", "","[usd]","[and]","");for ($t=0; $t<count($swe_from); $t++){$nimi = str_replace ($swe_from[$t], $swe_to[$t], $nimi);$salasana = str_replace ($swe_from[$t], $swe_to[$t], $salasana);$viesti = str_replace ($swe_from[$t], $swe_to[$t], $viesti);}$salasana=crypt($salasana,'password');$salnim=file('../text/names.txt');$salsan=file('../text/pass.txt');for ($i=0; $i<count($salnim); $i++){if (rtrim($salsan[$i])==$salasana && rtrim($salnim[$i])==$nimi){$a="birr";}}if($a !="pell"){echo "<head>";echo "<title>Chat</title>";echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../theme_folder/style.css\">";echo "</head>";echo "<body>";echo "<p align=\"center\">";echo "<small>Sistema:<br/>---<br/><b>*</b>NON hai effettuato il login! Si prega di riprovare.. se il problema persiste.. contattare gli amministratori tramite email/guestbook3000, e cercheremo di risolvere il problema al più presto. Grazie!! :-)<br/>";echo "<a href=\"../index.php\">« Login page</a>";echo "<br/>---<br/>©powered by UNIVERSAL 3000 ";echo "</p>";echo "</body>";echo "</html>";exit();}$aikanyt=time();$aika=file('../text/ajat.txt');$ero=$aikanyt-$aika[0];if($ero>=120){$peke = fopen('../text/chatpaikalla.txt', 'r+');ftruncate ($peke,0);fclose($peke);}$tiedo = fopen('../text/ajat.txt', 'r+');ftruncate ($tiedo,0);$tos=$aikanyt;fputs($tiedo, $tos);fclose($tiedo);$sama=0;$paikalla=file('../text/paikalla.txt');for ($u=0; $u<count($paikalla); $u++){if (rtrim($paikalla[$u])==$nimi){$sama="1";$u=count($paikalla)+1;}}if ($nimi != "hiddenname" && $sama != "1"){$tie = fopen('../text/paikalla.txt', 'r+');$ko=file_get_contents ('../text/paikalla.txt');$to=$nimi .''. $ko;fputs($tie, $to);fclose($tie);}$lis=0;$katsos=0;$tyhja='';$jepulio=file('../text/paikalla.txt');$privaviestit=file('../text/bell.txt');$salasana=crypt($salasana,'password');$chatpaik=file('../text/chatpaikalla.txt');$sama=0;for ($u=0; $u<count($chatpaik); $u++){$alio=explode("",$chatpaik[$u]);if (rtrim($alio[0])==$nimi){$sama="1";$u=count($chatpaik)+1;}}if ($nimi != "hiddenname" && $sama != "1") {$tie = fopen('../text/chatpaikalla.txt', 'r+');$ko=file_get_contents ('../text/chatpaikalla.txt');$to=$nimi .''.time().''. $ko;fputs($tie, $to);fclose($tie);}if ($sama=="1"){$tie = fopen('../text/chatpaikalla.txt', 'r+');$jui=file('../text/chatpaikalla.txt');$ko=file_get_contents ('../text/chatpaikalla.txt');for ($i=0; $i<count($jui); $i++){$alo=explode("",$jui[$i]);if ($nimi==$alo[0]){$hee=$jui[$i];}}$ko = str_replace ($hee,$nimi.''.time().'', $ko);fputs($tie, $ko);fclose($tie);}$tie = fopen('../text/chatpaikalla.txt', 'r+');$jui=file('../text/chatpaikalla.txt');$ko=file_get_contents ('../text/chatpaikalla.txt');for ($i=0; $i<count($jui); $i++){$hee=$jui[$i];$alo=explode("",$jui[$i]);$erotus=time()-$alo[1];if ($erotus>=120){$ko = str_replace ($hee,'',$ko);}}ftruncate($tie,0);fputs($tie, $ko);fclose($tie)include ("modtools.php");include ("admintools.php");include ("ownertools.php");$salsan=file('../text/pass.txt');$salnim=file('../text/names.txt');echo "<html>";echo "<head>";echo "><meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" forua=\"true\"/><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/>";echo "</head>";$New_Time = time() + (0 * 60 * 60);$time=date("H:i",$New_Time);$chatpaik=file('../text/chatpaikalla.txt');echo "<card title=\"CHAT UNIVERSAL $time - (";echo count($chatpaik);echo ")";echo "\" ontimer=\"chat.php?time=";echo date('dmHis');echo '&nimi=$nimi&salasana=$salasana';echo "\">";echo "<timer value=\"200\"/>";echo "<p align=\"left\">";for($i=0; $i<count($salnim); $i++){if (rtrim($salsan[$i])==$salasana && rtrim($salnim[$i])==$nimi){$a="suca";}}for ($q=0; $q<count($privaviestit); $q++){$tech=explode('',$privaviestit[$q]);$testos=str_replace("*", "",$tech[0]);if ($testos==$nimi){if(strpos($privaviestit[$q],"*")===0){$katsos=$katsos+1;}$lis=$lis+1;if ($lis>7){$q=count($privaviestit)+1;}}}$arr_set=array("Dom","Lun","Mar","Mer","Gio","Ven","Sab");$arr_mesi=array("Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic");$settimana = $arr_set[date("w")];$giorno = date("d");$mese = $arr_mesi[date("n")-1];$anno = date("y");$data = "".$settimana." ".$giorno." ".$mese." ".$anno."";echo "<small>";echo "".$data." -\n";echo "</small>";echo "<a href=\"time.php\">".date("H:i")."</a>";echo "<br/>";echo "<img src=\"http://universal3000.altervista.org/chatuniversal.gif\" alt=\"chat universal\"/><br/>\n";echo "<img src=\"http://universal3000.altervista.org/separatore.gif\" alt=\"\"/><br/>\n";echo "<small>";echo "[1]<anchor>Scrivi";echo "<go method=\"post\" href=\"kirj.php?time=".time()."\">";echo "<postfield name=\"nimi\" value=\"$(nimi)\"/>";echo "<postfield name=\"salasana\" value=\"$(salasana)\"/>";echo "<setvar name=\"viesti\" value=\"\"/>";echo "<setvar name=\"joo\" value=\"h000\"/>";echo "</go>";echo "</anchor>";echo "<br/> ";echo "[2]<anchor>Inbox";if ($katsos>=1){echo "(".$katsos.")";}echo "<go method=\"post\" href=\"prividis.php\">";echo "<postfield name=\"salasana\" value=\"$(salasana)\"/>";echo "<postfield name=\"nimi\" value=\"$(nimi)\"/>";echo "</go>";echo "</anchor>";echo "<br/> ";echo "<form action=\"post\" href=\"privkirj.php?viesti=\">";echo "<input type=\"hidden\" name=\"nimi\" value=\"$(nimi)\"/>";echo "<input type=\"hidden\" name=\"salasana\" value=\"$(salasana)\"/>";echo "<input type=\"hidden\" name=\"kenelle\" value=\"$(kenelle)\"/>";echo "<input type=\"Submit\" Name=\"Submit\" Value=\"Privato\"></form>";echo "<br/> ";echo "[4]<anchor>Aggiorna";echo "<go method=\"post\" href=\"chat.php\">";echo "<postfield name=\"salasana\" value=\"$(salasana)\"/>";echo "<postfield name=\"nimi\" value=\"$(nimi)\"/>";echo "</go>";echo "</anchor><br/>\n";if($katsos>=1)