Размер файла: 1.25Kb
<?php
header("Content-type: text/vnd.wap.wml");
header("Cache-control: no-store,no-cache,must-revalidate");
print '<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="index" title="Dark Sun wapGAME">'; include("on.php"); $id=$_GET['id']; $nick=$_GET['nick']; $pass=$_GET['pass']; if(!file_exists("zaidimas/nick/$nick.txt")) { echo"<p align=\"center\">Toks narys neegzistuoja!</p></card></wml>"; exit(); } if(file_get_contents("zaidimas/nick/$nick.txt")!=$pass) { echo"<p align=\"center\">Neteisingas slaptazodis!</p></card></wml>"; exit(); } if($id=="zkovas") { echo"<p align=\"center\"><small><b>AMFITEATRAS, buk atsargus, nes tave gali uzpulti cia!</b><br/>----------"; echo"<br/>"; foreach("glob("zaidime/*") as $b) { $rr=explode("|",@file_get_contents($b)); $b=str_replace("zaidime/","",$b);
$b=str_replace(".txt","",$b); if($rr[2]=="zkovas" || $rr[2]=="kovoja") { echo"<a href=\"zaidimas.php?id=apie&ka=$b&pass=$pass&nick=$nick\">$b</a> <a href=\"zaidimas.php?id=kovoja&ka=$b&pass=$pass&nick=$nick\">Pulti</a><br/>"; } } echo"<br/>----------<br/><a href=\"zaidimas.php?nick=$nick&pass=$pass\">I zaidima</a></small>"; } ?></p></card></wml>