Help Me! Page In Wml From Xhtml

Started on the old forum in November 2008 · view the original in the archive · old links redirect here

13 replies · 895 views · started 18 years ago · 1 min read

5 participants
Leviathan73 Senior · 260 posts #1

Hello to all, are desperate! I can not convert this page wml in xhtml, so I can put a background color in the room, or that is visible even from pc. I put the code CODE<? include("../tools/ipban.php"); ?>

<? include("../tools/admin.php"); ?> <? include("../tools/ban.php"); ?> <?php header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1"); echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";

echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";

/**

  • @authors Ghost & DEViANCE (CODEMAFiA.ORG)
  • @copyright 2008-2009 Mobile Chat
  • @version 2.0.0 (wml 1.1 EN) */

$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="suca";}} if ($a !="mare"){

echo "<wml>"; echo "<card title="Chat">"; echo " ";

echo "Sistema:

*****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!! 🙂 "; echo "<a href="../index.php">« Login page</a>";

echo "

©powered by UNIVERSAL 3000 "; echo " "; echo "</card>"; echo "</wml>"; 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 "<wml>";

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 " ";

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 "";
echo "".$data."-\n";
echo "";

echo "<a href="time.php">".date("H:i")."</a>";

echo " ";

echo "<img src="http://universal3000.altervista.org/chatuniversal.gif" alt="chat universal"/> \n";

echo "<img src="http://universal3000.altervista.org/separatore.gif" alt=""/> \n";

echo ""; 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 " ";

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 " ";

echo "[3]<anchor>Privato"; echo "<go method="post" href="privkirj.php?viesti=">"; echo "<postfield name="nimi" value="$(nimi)"/>"; echo "<postfield name="salasana" value="$(salasana)"/>"; echo "<postfield name="kenelle" value="$(kenelle)"/>"; echo "<setvar name="viesti" value=""/>"; echo "</go>"; echo "</anchor>"; echo " ";

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> \n";

if ($katsos>=1){ echo "<anchor>*"; echo "<go method="post" href="prividis.php">"; echo "<postfield name="salasana" value="$(salasana)"/>"; echo "<postfield name="nimi" value="$(nimi)"/>"; echo "</go>"; echo "</anchor>"; echo "(".$katsos.")New Message(s)

";}

echo ""; echo " "; echo "

";

if ($a != "suca") { $ines=0; $viesti="";}

if ($viesti != ''){

$turska=file('../text/toisto.txt');

for ($l=0; $l<count($turska); $l++) { if (rtrim($turska[$l])==$viesti){$viesti='';}}

$toistoke = fopen('../text/toisto.txt', 'r+'); $hypro=file_get_contents ('../text/toisto.txt');
$hape=$viesti . ' ' . $hypro; fputs($toistoke, $hape); if (filesize('../text/toisto.txt')>400) {ftruncate ($toistoke,400);} fclose($toistoke); } if ($joo=='h000'){$joo='';} $viesti=$viesti.$joo; if ($viesti != '') {

$swe_from = array("","","","","","","$","&",""); $swe_to = array("", "", "", "", "", "","[usd]","[and]","");

for ($i=0; $i<count($swe_from); $i++) { $viesti = str_replace ($swe_from[$i], $swe_to[$i], $viesti); $nimi = str_replace ($swe_from[$i], $swe_to[$i], $nimi); }

$rumatsanat=file('../text/sensuuri.txt'); for ($ri=0; $ri<count($rumatsanat); $ri++) { $vaihto=rtrim($rumatsanat[$ri]); $viesti = str_replace ($vaihto,"", $viesti); }

$nimi= htmlspecialchars($nimi); $nimi= stripslashes($nimi); $viesti= htmlspecialchars($viesti); $viesti=stripslashes($viesti);

include("bbcodes.php");

include("../main/smileyarray.php");

$kuv=file('../text/smileywml.txt');

for ($m=0; $m<count($joo); $m++) { $viesti = str_replace ($joo[$m], rtrim($kuv[$m]), $viesti); } $joo='';

$user = explode ('/', $HTTP_USER_AGENT); $ip = ($REMOTE_ADDR); if($admin=="1"){$uusirivi =''.$time.'.'&ip='.$ip.'"]©'.strip_tags($nimi) . ': ' . $viesti . '

';}

if($admin=="2"){$uusirivi =''.$time.'.'&ip='.$ip.'"]¹'.strip_tags($nimi) . ': ' . $viesti . '

';}

if($admin=="3"){$uusirivi =''.$time.'.'&ip='.$ip.'"]²'.strip_tags($nimi) . ': ' . $viesti . '

';}

if($admin=="4"){$uusirivi ='.'&ip='.$ip.'"]'.strip_tags($nimi) . ' '.$time.'» madoo che brutta figura che sto facendo..sono testa di minkia, voglio dimostrare qualcosa ma so fatto cosi

';}

if($admin=="7"){$uusirivi =' ';}

if($admin=="0"){$uusirivi =''.$time.'.'&ip='.$ip.'"]'.strip_tags($nimi) . ': ' . $viesti . '

';} $tiedosto = fopen('../text/ball.txt', 'r+'); $kolmas=file_get_contents ('../text/ball.txt'); $toinen="$uusirivi $kolmas"; fputs($tiedosto, $toinen); if (filesize('../text/ball.txt')>1000000) {ftruncate ($tiedosto,1000000);} fclose($tiedosto); $viestik=$viesti; $nimik=$nimi; $viesti = ''; } $juttujoo=file('../text/hall.txt'); for ($k=0; $k<17; $k++) { echo $juttujoo[$k]; }

echo " "; echo " "; echo "";

echo "<img src="http://universal3000.altervista.org/separatore.gif" alt=""/> \n";

if($admin=="1"){echo "<a href="ownercp.php?nimi=$nimi&rank=1">©CPanel</a>";}

if($admin=="2"){echo "<a href="admincp.php?nimi=$nimi&rank=2">¹CPanel</a>";}

if($admin=="3"){echo "<a href="modcp.php?nimi=$nimi&rank=3">²CPanel</a>";} echo " ";

echo "NOVITA!!<anchor>Hypnose"; echo "<go method="post" href="chat2.php">"; echo "<postfield name="salasana" value="$(salasana)"/>"; echo "<postfield name="nimi" value="$(nimi)"/>"; echo "</go>"; echo "</anchor>"; echo " ";

echo "<anchor>Stanze Private"; echo "<go method="post" href="changerooms.php?time=".time()."">"; echo "<postfield name="ines" value="$(ines)"/>"; echo "<postfield name="nimi" value="$(nimi)"/>"; echo "<postfield name="salasana" value="$(salasana)"/>"; echo "</go>"; echo "</anchor> ";

echo "<anchor>Online(".count(file('../text/chatpaikalla.txt')).")"; echo "<go method="post" href="paikalla.php?time=".date(ymdHis)."">"; echo "<postfield name="nimi" value="$(nimi)"/>"; echo "<postfield name="salasana" value="$(salasana)"/>"; echo "</go>"; echo "</anchor>"; echo " ";

echo "<anchor>Smileys(".count(file('../text/smileywml.txt')).")"; echo "<go method="post" href="chatsmileys2.php?time=".date(ymdHis)."">"; echo "<postfield name="nimi" value="$(nimi)"/>"; echo "<postfield name="salasana" value="$(salasana)"/>"; echo "</go>"; echo "</anchor>"; echo " ";

echo "UTILITA'!!<a href="service.php?nimi=$nimi">Servizi</a>"; echo " ";

echo "<a href="stats2.php?nimi=$nimi">Statistiche</a>"; echo " ";

echo "<a href="bbcodes_tutorial.php?nimi=$nimi">BBCodes</a>";

echo " ";

echo "<anchor>Logout"; echo "<go method="post" href="logout.php?time=".date(ymdHis)."">"; echo "<postfield name="nimi" value="$(nimi)"/>"; echo "<postfield name="salasana" value="$(salasana)"/>"; echo "</go>"; echo "</anchor>";

echo "

©powered by UNIVERSAL 3000 "; echo ""; echo " "; echo "</card>"; echo "</wml>";

?> Many thanks to those who know me help! 😉

jsyguy23 Developer · 134 posts #2

CODE<?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"); ?>

<?php header("Cache-Control: no-cache, must-revalidate"); // Prevent caching, HTTP/1.1 header("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="suca";}} if($a !="mare"){

echo "<head>"; echo "<title>Chat</title>"; echo "<link rel="stylesheet" type="text/css" href="../theme_folder/style.css">"; echo "</head>"; echo "<body>";

echo " "; echo "Sistema:

*****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!! 🙂 "; echo "<a href="../index.php">« Login page</a>"; echo "

©powered by UNIVERSAL 3000 "; echo " "; 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 " "; 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 ""; echo "".$data."-\n"; echo ""; echo "<a href="time.php">".date("H:i")."</a>";

echo " "; echo "<img src="http://universal3000.altervista.org/chatuniversal.gif" alt="chat universal"/> \n"; echo "<img src="http://universal3000.altervista.org/separatore.gif" alt=""/> \n";

echo ""; 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 " ";

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 " ";

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 " ";

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> \n";

if($katsos>=1){ echo "<anchor>*"; echo "<go method="post" href="prividis.php">"; echo "<postfield name="salasana" value="$(salasana)"/>"; echo "<postfield name="nimi" value="$(nimi)"/>"; echo "</go>"; echo "</anchor>"; echo "(".$katsos.")New Message(s)

";} echo ""; echo " "; echo "

";

if ($a != "suca") { $ines=0; $viesti="";} if ($viesti != ''){ $turska=file('../text/toisto.txt'); for ($l=0; $l<count($turska); $l++) { if (rtrim($turska[$l])==$viesti){$viesti='';}} $toistoke = fopen('../text/toisto.txt', 'r+'); $hypro=file_get_contents ('../text/toisto.txt'); $hape=$viesti . ' ' . $hypro; fputs($toistoke, $hape); if (filesize('../text/toisto.txt')>400) {ftruncate ($toistoke,400);} fclose($toistoke);} if($joo=='h000'){$joo='';} $viesti=$viesti.$joo; if($viesti != '') {

$swe_from = array("","","","","","","$","&",""); $swe_to = array("", "", "", "", "", "","[usd]","[and]",""); for ($i=0; $i<count($swe_from); $i++){ $viesti = str_replace ($swe_from[$i], $swe_to[$i], $viesti); $nimi = str_replace ($swe_from[$i], $swe_to[$i], $nimi);} $rumatsanat=file('../text/sensuuri.txt'); for ($ri=0; $ri<count($rumatsanat); $ri++){ $vaihto=rtrim($rumatsanat[$ri]); $viesti = str_replace ($vaihto,"", $viesti);}

$nimi= htmlspecialchars($nimi); $nimi= stripslashes($nimi); $viesti= htmlspecialchars($viesti); $viesti=stripslashes($viesti);

include("bbcodes.php"); include("../main/smileyarray.php"); $kuv=file('../text/smileywml.txt'); for ($m=0; $m<count($joo); $m++){ $viesti = str_replace ($joo[$m], rtrim($kuv[$m]), $viesti);} $joo='';

$user = explode ('/', $HTTP_USER_AGENT); $ip = ($REMOTE_ADDR); if($admin=="1"){$uusirivi =''.$time.'.'&ip='.$ip.'"]©'.strip_tags($nimi) . ': ' . $viesti . ' ';} if($admin=="2"){$uusirivi =''.$time.'.'&ip='.$ip.'"]¹'.strip_tags($nimi) . ': ' . $viesti . ' ';} if($admin=="3"){$uusirivi =''.$time.'.'&ip='.$ip.'"]²'.strip_tags($nimi) . ': ' . $viesti . ' ';} if($admin=="4"){$uusirivi ='.'&ip='.$ip.'"]'.strip_tags($nimi) . ' '.$time.'» madoo che brutta figura che sto facendo..sono testa di minkia, voglio dimostrare qualcosa ma so fatto cosi ';} if($admin=="7"){$uusirivi ='';} if($admin=="0"){$uusirivi =''.$time.'.'&ip='.$ip.'"]'.strip_tags($nimi) . ': ' . $viesti . ' ';} $tiedosto = fopen('../text/ball.txt', 'r+'); $kolmas=file_get_contents ('../text/ball.txt'); $toinen="$uusirivi $kolmas"; fputs($tiedosto, $toinen); if (filesize('../text/ball.txt')>1000000) {ftruncate ($tiedosto,1000000);} fclose($tiedosto); $viestik=$viesti; $nimik=$nimi; $viesti = '';} $juttujoo=file('../text/hall.txt'); for ($k=0; $k<17; $k++){ echo $juttujoo[$k];} echo " ";

echo " "; echo ""; echo "<img src="http://universal3000.altervista.org/separatore.gif" alt=""/> \n"; if($admin=="1"){echo "<a href="ownercp.php?nimi=$nimi&rank=1">©CPanel</a>";} if($admin=="2"){echo "<a href="admincp.php?nimi=$nimi&rank=2">¹CPanel</a>";} if($admin=="3"){echo "<a href="modcp.php?nimi=$nimi&rank=3">²CPanel</a>";} echo " ";

echo "NOVITA!!<anchor>Hypnose"; echo "<go method="post" href="chat2.php">"; echo "<postfield name="salasana" value="$(salasana)"/>"; echo "<postfield name="nimi" value="$(nimi)"/>"; echo "</go>"; echo "</anchor>"; echo " ";

echo "<anchor>Stanze Private"; echo "<go method="post" href="changerooms.php?time=".time()."">"; echo "<postfield name="ines" value="$(ines)"/>"; echo "<postfield name="nimi" value="$(nimi)"/>"; echo "<postfield name="salasana" value="$(salasana)"/>"; echo "</go>"; echo "</anchor> ";

echo "<anchor>Online(".count(file('../text/chatpaikalla.txt')).")"; echo "<go method="post" href="paikalla.php?time=".date(ymdHis)."">"; echo "<postfield name="nimi" value="$(nimi)"/>"; echo "<postfield name="salasana" value="$(salasana)"/>"; echo "</go>"; echo "</anchor>"; echo " ";

echo "<anchor>Smileys(".count(file('../text/smileywml.txt')).")"; echo "<go method="post" href="chatsmileys2.php?time=".date(ymdHis)."">"; echo "<postfield name="nimi" value="$(nimi)"/>"; echo "<postfield name="salasana" value="$(salasana)"/>"; echo "</go>"; echo "</anchor>"; echo " ";

echo "UTILITA'!!<a href="service.php?nimi=$nimi">Servizi</a>"; echo " "; echo "<a href="stats2.php?nimi=$nimi">Statistiche</a>"; echo " "; echo "<a href="bbcodes_tutorial.php?nimi=$nimi">BBCodes</a>"; echo " ";

echo "<anchor>Logout"; echo "<go method="post" href="logout.php?time=".date(ymdHis)."">"; echo "<postfield name="nimi" value="$(nimi)"/>"; echo "<postfield name="salasana" value="$(salasana)"/>"; echo "</go>"; echo "</anchor>";

echo "

©powered by UNIVERSAL 3000 "; echo ""; echo " "; echo "</body>"; echo "</html>"; ?>

CODEthere you go m8 just done a few bits for ya think you be able to do rest lol 🙂

Leviathan73 Senior · 260 posts #3

Hi jsi, I copy and paste the code xhtml that I have done, check this inscription: Parse error: syntax error, unexpected T_INCLUDE in / membri/universal3000/chat_universal/room1/chat.php on line 1 :'(

jsyguy23 Developer · 134 posts #4

CODE

<? include("../tools/ipban.php"); ?> <? include("../tools/admin.php"); ?> <? include("../tools/ban.php"); ?> <?php header("Cache-Control: no-cache, must-revalidate"); // Prevent caching, HTTP/1.1 header("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">

/**

  • @authors Ghost & DEViANCE (CODEMAFiA.ORG)
  • @copyright 2008-2009 Mobile Chat
  • @version 2.0.0 (wml 1.1 EN) */

$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="suca";}} if($a !="mare"){

echo "<head>"; echo "<title>Chat</title>"; echo "<link rel="stylesheet" type="text/css" href="../theme_folder/style.css">"; echo "</head>"; echo "<body>";

echo " "; echo "Sistema:

*****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!! 🙂 "; echo "<a href="../index.php">« Login page</a>"; echo "

©powered by UNIVERSAL 3000 "; echo " "; 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 " "; 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 ""; echo "".$data."-\n"; echo ""; echo "<a href="time.php">".date("H:i")."</a>";

echo " "; echo "<img src="http://universal3000.altervista.org/chatuniversal.gif" alt="chat universal"/> \n"; echo "<img src="http://universal3000.altervista.org/separatore.gif" alt=""/> \n";

echo ""; 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 " ";

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 " ";

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 " ";

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> \n";

if($katsos>=1){ echo "<anchor>*"; echo "<go method="post" href="prividis.php">"; echo "<postfield name="salasana" value="$(salasana)"/>"; echo "<postfield name="nimi" value="$(nimi)"/>"; echo "</go>"; echo "</anchor>"; echo "(".$katsos.")New Message(s)

";} echo ""; echo " "; echo "

";

if ($a != "suca") { $ines=0; $viesti="";} if ($viesti != ''){ $turska=file('../text/toisto.txt'); for ($l=0; $l<count($turska); $l++) { if (rtrim($turska[$l])==$viesti){$viesti='';}} $toistoke = fopen('../text/toisto.txt', 'r+'); $hypro=file_get_contents ('../text/toisto.txt'); $hape=$viesti . ' ' . $hypro; fputs($toistoke, $hape); if (filesize('../text/toisto.txt')>400) {ftruncate ($toistoke,400);} fclose($toistoke);} if($joo=='h000'){$joo='';} $viesti=$viesti.$joo; if($viesti != '') {

$swe_from = array("","","","","","","$","&",""); $swe_to = array("", "", "", "", "", "","[usd]","[and]",""); for ($i=0; $i<count($swe_from); $i++){ $viesti = str_replace ($swe_from[$i], $swe_to[$i], $viesti); $nimi = str_replace ($swe_from[$i], $swe_to[$i], $nimi);} $rumatsanat=file('../text/sensuuri.txt'); for ($ri=0; $ri<count($rumatsanat); $ri++){ $vaihto=rtrim($rumatsanat[$ri]); $viesti = str_replace ($vaihto,"", $viesti);}

$nimi= htmlspecialchars($nimi); $nimi= stripslashes($nimi); $viesti= htmlspecialchars($viesti); $viesti=stripslashes($viesti);

include("bbcodes.php"); include("../main/smileyarray.php"); $kuv=file('../text/smileywml.txt'); for ($m=0; $m<count($joo); $m++){ $viesti = str_replace ($joo[$m], rtrim($kuv[$m]), $viesti);} $joo='';

$user = explode ('/', $HTTP_USER_AGENT); $ip = ($REMOTE_ADDR); if($admin=="1"){$uusirivi =''.$time.'.'&ip='.$ip.'"]©'.strip_tags($nimi) . ': ' . $viesti . ' ';} if($admin=="2"){$uusirivi =''.$time.'.'&ip='.$ip.'"]¹'.strip_tags($nimi) . ': ' . $viesti . ' ';} if($admin=="3"){$uusirivi =''.$time.'.'&ip='.$ip.'"]²'.strip_tags($nimi) . ': ' . $viesti . ' ';} if($admin=="4"){$uusirivi ='.'&ip='.$ip.'"]'.strip_tags($nimi) . ' '.$time.'» madoo che brutta figura che sto facendo..sono testa di minkia, voglio dimostrare qualcosa ma so fatto cosi ';} if($admin=="7"){$uusirivi ='';} if($admin=="0"){$uusirivi =''.$time.'.'&ip='.$ip.'"]'.strip_tags($nimi) . ': ' . $viesti . ' ';} $tiedosto = fopen('../text/ball.txt', 'r+'); $kolmas=file_get_contents ('../text/ball.txt'); $toinen="$uusirivi $kolmas"; fputs($tiedosto, $toinen); if (filesize('../text/ball.txt')>1000000) {ftruncate ($tiedosto,1000000);} fclose($tiedosto); $viestik=$viesti; $nimik=$nimi; $viesti = '';} $juttujoo=file('../text/hall.txt'); for ($k=0; $k<17; $k++){ echo $juttujoo[$k];} echo " ";

echo " "; echo ""; echo "<img src="http://universal3000.altervista.org/separatore.gif" alt=""/> \n"; if($admin=="1"){echo "<a href="ownercp.php?nimi=$nimi&rank=1">©CPanel</a>";} if($admin=="2"){echo "<a href="admincp.php?nimi=$nimi&rank=2">¹CPanel</a>";} if($admin=="3"){echo "<a href="modcp.php?nimi=$nimi&rank=3">²CPanel</a>";} echo " ";

echo "NOVITA!!<anchor>Hypnose"; echo "<go method="post" href="chat2.php">"; echo "<postfield name="salasana" value="$(salasana)"/>"; echo "<postfield name="nimi" value="$(nimi)"/>"; echo "</go>"; echo "</anchor>"; echo " ";

echo "<anchor>Stanze Private"; echo "<go method="post" href="changerooms.php?time=".time()."">"; echo "<postfield name="ines" value="$(ines)"/>"; echo "<postfield name="nimi" value="$(nimi)"/>"; echo "<postfield name="salasana" value="$(salasana)"/>"; echo "</go>"; echo "</anchor> ";

echo "<anchor>Online(".count(file('../text/chatpaikalla.txt')).")"; echo "<go method="post" href="paikalla.php?time=".date(ymdHis)."">"; echo "<postfield name="nimi" value="$(nimi)"/>"; echo "<postfield name="salasana" value="$(salasana)"/>"; echo "</go>"; echo "</anchor>"; echo " ";

echo "<anchor>Smileys(".count(file('../text/smileywml.txt')).")"; echo "<go method="post" href="chatsmileys2.php?time=".date(ymdHis)."">"; echo "<postfield name="nimi" value="$(nimi)"/>"; echo "<postfield name="salasana" value="$(salasana)"/>"; echo "</go>"; echo "</anchor>"; echo " ";

echo "UTILITA'!!<a href="service.php?nimi=$nimi">Servizi</a>"; echo " "; echo "<a href="stats2.php?nimi=$nimi">Statistiche</a>"; echo " "; echo "<a href="bbcodes_tutorial.php?nimi=$nimi">BBCodes</a>"; echo " ";

echo "<anchor>Logout"; echo "<go method="post" href="logout.php?time=".date(ymdHis)."">"; echo "<postfield name="nimi" value="$(nimi)"/>"; echo "<postfield name="salasana" value="$(salasana)"/>"; echo "</go>"; echo "</anchor>";

echo "

©powered by UNIVERSAL 3000 "; echo ""; echo " "; echo "</body>"; echo "</html>"; ?>

try that i think that should work m8 nd remember you got to finish off the rest of codeing it to html lol

metulj Super moderator Principal · 1,726 posts #6

QUOTE (Leviathan73 @ Nov 6 2008, 03:15 PM) <{POST_SNAPBACK}>

jsy, that means M8????

m8 or M8 means mate aka friend

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ノ刀ノイリ!

Leviathan73 Senior · 260 posts #7

Hi! Metuly. What should I do exactly? you can explain easily? excuse my ignorance. :'(

Leviathan73 Senior · 260 posts #8

Hi isyguy23 ! I please translate this last page in xhtml? thanks

<?php
header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1");

$New_Time = time() + (0 * 60 * 60);
$time=date("H:i",$New_Time);

$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);

$chatpaik=file('text/chatpaikalla.txt');
$paikk=file('text/paikalla.txt');
$salnim=file('text/names.txt');
$user = explode ('/', $HTTP_USER_AGENT);

echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"\n \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";

/**
* @authors Ghost & DEViANCE (CODEMAFiA.ORG)
* @copyright 2008-2009 Mobile Chat
* @version 2.0.0 (wml 1.1 EN)
*/

echo "<wml>\n";
echo "<head>";
echo "<meta name=\"keywords\" content=\"wap, wapchat, chat, mobile chatroom, script, wap script, leviathan73, chatuniversal \"/>";
echo "<meta name=\"description\" content=\"wapchat version 2.0.0 (wml 1.1 EN)\"/>";
echo "<meta name=\"robots\" content=\"index, follow\"/>";
echo "<meta name=\"revisit-after\" content=\"1 days\"/>";
echo "<meta name=\"rating\" content=\"general\"/>";
echo "<meta name=\"author\" content=\"deviance, ghost\"/>";
echo "><meta http-equiv=\"Cache-Control\" content=\"must-revalidate\" forua=\"true\"/><meta http-equiv=\"Cache-Control\" content=\"no-cache\" forua=\"true\"/>";
echo "</head>";

//put your site name here!
echo "<card newcontext=\"true\" title=\"UNIVERSAL 3000\">\n";
echo "<p align=\"center\">\n";

$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 "[size="1"]";   
echo "Oggi è: ".$data."-\n";   
echo "[/size]";

echo "<a href=\"main/time2.php\">".date("H:i")."</a>";

echo "
";

//also put your site name here!
echo "<img src=\"http://universal3000.altervista.org/UNIVERSAL_3000_4.PNG\" alt=\"by UNIVERSAL 3000\"/>
\n";

$fp=fopen("text/count.txt","a+"); fputs($fp,"1"); fclose($fp);

$xfile = @file("random.txt");
$random_num = rand (0,count($xfile)-1);
$udata = explode("::",$xfile[$random_num]);
echo "$udata[1]
";

echo "<img src=\"http://universal3000.altervista.org/separatpiccolo.gif\" alt=\"\"/>
\n";
echo "<img src=\"http://universal3000.altervista.org/it-sm.gif\" alt=\"\"/>\n";
echo "[i]Benvenuti[/i] [i]nella[/i]
[i]CHAT[/i] [i]UNIVERSAL[/i]
\n";

echo "[size="1"]";
echo "Chatter Del Giorno: \n";
echo "[/size]";

//INSERISCI QUI I LINK DELLE IMMAGINI
$members = array (
  "http://universal3000.altervista.org/upload/universal/Gum_files/Immag012.jpg",
  "http://universal3000.altervista.org/upload/universal/Gum_files/daniela.jpg",
  "http://universal3000.altervista.org/upload/universal/Gum_files/batistaa.jpg",
  "http://universal3000.altervista.org/upload/universal/Gum_files/Franci.JPG",

);

//INSERISCI QUI I NOMI UTENTE
$nomi = array(
"robertina",
"ladyenigma",
"daniela",
"leviathan73",
);

echo "
";
$xfile = @file("random0.txt");
$udata = explode("::",$xfile[random($nomi)]);
echo "$udata[1]
";
echo '[img]'.$members[random($members)].'[/img]';

function random($array) 
{ 
    $today = date('z'); 
    $rand = $today % count($array); 
    return $rand; 
}
  

echo "
---
\n";

echo "<a href=\"main/sisaan.php\">Entra</a>
\n";

echo "<a href=\"main/registerrules.php\">Registrati</a>
\n";

echo "<a
href=\"http://my.wapshare.us/gb.php?id=3025#card1 \">GUESTBOOK3000</a>
\n";

$xfile = @file("random1.txt");
$random_num = rand (0,count($xfile)-1);
$udata = explode("::",$xfile[$random_num]);
echo "$udata[1]";

echo "
\n";

$owners=count(file('text/ownernames.txt'));
$admins=count(file('text/adminnames.txt'));
$mods=count(file('text/modnames.txt'));
$banned=count(file('text/bannames.txt'));
$staff = $owners + $admins + $mods;

echo "Utenti Online:";
echo " ";
echo "<a href=\"main/online.php\">".count(file('text/chatpaikalla.txt'))."</a>
\n";

echo "Chat Staff:";
echo " ";
echo "<a href=\"main/staff.php\">".$staff."</a>
\n";

echo "Lista Utenti:";
echo " ";
echo "<a href=\"main/users.php\">".count(file('text/names.txt'))."</a>
\n";

echo "Smileys:";
echo " ";
echo "<a href=\"main/chatsmileys.php\">".count(file('text/smiley.txt'))."</a>
\n";

echo "Utenti Bannati:";
echo " ";
echo "<a href=\"main/bannedusers.php\">".$banned."</a>
\n";

echo "Chat Statistiche:";
echo " ";
echo "<a href=\"main/stats.php\">*</a>\n";

echo "<a href=\"main/caratteristiche.php\">Caratteristiche</a>
\n";

echo "<img src=\"http://universal3000.altervista.org/sepmod.gif\" alt=\"\"/>
\n";

$time=number_format(microtime(),2);
echo "Script: $time Sec(s)";
echo "
Valid>WML 1.1";

echo "
---
©powered by UNIVERSAL 3000 ";

echo "
\n";

echo "<img src=\"http://universal3000.altervista.org/flags-eu.gif\" alt=\"\"/>
\n";

echo "<img src=\"http://universal3000.altervista.org/separator.gif\" alt=\"\"/>
\n";

echo "<a
href=\"http://universal3000.altervista.org/solowap.wml\">Indietro</a>\n";

echo "
\n";

echo "<a
href=\"http://universal3000.altervista.org\">Torna alla Home</a>\n";

echo "
\n";

echo "VISITE TOTALI:";
$fp=fopen("count.txt","a+"); fputs($fp,"1"); fclose($fp);
 $fp1=filesize("count.txt"); 
echo "$fp1";
echo "
";

echo "</p>\n";
echo "</card>\n";
echo "</wml>\n";

?>

😊

Leviathan73 Senior · 260 posts #10

in quale altro post? in che senso bisogna completare lo script??

honkytonkman Senior · 252 posts #11

QUOTE (Leviathan73 @ Nov 11 2008, 04:13 PM) <{POST_SNAPBACK}>

in quale altro post? in che senso bisogna completare lo script??

devi rifare tutte le pagine in struttura xhtml..ovvero cambiare gli headers e trasformare i campi di invio da wml in xhtml (input forms)..la prima cosa e facile ..basta inserire in testa CODE<?php header("Content-type: text/html; charset=ISO-8859-1"); echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n"; echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">\n";

echo "<html xmlns="http://www.w3.org/1999/xhtml">\n"; echo "<head>\n"; echo "<title></title>\n"; echo "</head>\n"; echo "<body bgcolor="#99CCFF" link="#0000CC" vlink="#0000CC" alink="#0000CC">\n"; echo "

\n"; echo "\n";

e in coda :

echo " "; echo "</body>"; echo "<html>";

i campi di invio invece sono piu difficili da rifare

the italian/international COMMUNITY of friendship http://people2000.netne.net WAP/WEB peoplemailbox@katamail.com

Leviathan73 Senior · 260 posts #12

adriano i campi di invio sono questi?

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 "
 ";
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 "
 ";
echo "[3]<anchor>Privato";
echo "<go method=\"post\" href=\"privkirj.php?viesti=\">";
echo "<postfield name=\"nimi\" value=\"$(nimi)\"/>";echo "<postfield name=\"salasana\" value=\"$(salasana)\"/>";echo "<postfield name=\"kenelle\" value=\"$(kenelle)\"/>";echo "<setvar name=\"viesti\" value=\"\"/>";
echo "</go>";
echo "</anchor>";echo "
 ";
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>
\n";if ($katsos>=1){echo "<anchor>*";echo "<go method=\"post\" href=\"prividis.php\">";echo "<postfield name=\"salasana\" value=\"$(salasana)\"/>";
echo "<postfield name=\"nimi\" value=\"$(nimi)\"/>";echo "</go>";echo "</anchor>";
echo "(".$katsos.")New Message(s)
---
";}echo "</small>";
echo "</p>";
echo "

";

caso mai se me la puoi fare lo stesso.. e x i campi di invio ci penso io.

djdevil89 Senior · 287 posts #13

This site is in english so please talk english or i will close the topic

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close