File size: 2.59Kb
<?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="©Darksun.tik.lt">'; 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(file_exists("zaidimas/banai/$nick.txt")) { $pimpa=explode("|",@file_get_contents("zaidimas/banai/$nick.txt")); if($pimpa[1]<time()) { @unlink("zaidimas/banai/$nick.txt"); } else{ $laikas=$pimpa[1]-time(); $laikas=$laikas/60; $laikas=round($laikas); echo"Tu uzbanintas!<br/>-------</p><p align=\"left\">Kiek: <b>$laikas</b> min.<br/>Nuo ko: <b>$pimpa[3]</b><br/>Priezastis: <b>$pimpa[2]</b></p></card></wml>"; exit(); } } if(file_exists("zaidimas/pm/$nick.txt")) { echo"<p align=\"center\"><small><a href=\"zaidimas.php?id=pm&nick=$nick&pass=$pass\">Yra nauju pm</a></small></p>"; } if($id=="") { echo"<p align=\"center\"><small><b>Magija kovoje pravercia ;)</b><br/>----------</small></p><p align=\"left\"><small>»<a href=\"magija.php?id=magas&nick=$nick&pass=$pass&sk=1\">Skaitymas burtu knygos(50$$)</a><br/>»<a href=\"magija.php?id=magas&nick=$nick&pass=$pass&sk=2\">Magu pamokimas(100$$)</a><br/>»<a href=\"magija.php?id=magas&nick=$nick&pass=$pass&sk=3\">Zyniu ismintis(150$$)</a><br/>»<a href=\"magija.php?id=magas&nick=$nick&pass=$pass&sk=4\">Magijos knygos skaitymas(200$$)</a></small></p><p align=\"center\"><small>----------<br/><a href=\"zaidimas.php?nick=$nick&pass=$pass\">I zaidima</a></small>"; } if($id=="magas") { echo"<p align=\"center\"><small>"; $sk=$_GET['sk']; if($sk!="1" && $sk!="2" && $sk!="3" && $sk!="4") { echo"Tokiu dalyku nera!</small></p></card></wml>"; exit(); } $pinigai=@file_get_contents("zaidimas/pinigai/$nick.txt"); if(50*$sk>$pinigai) { echo"Neturi tiek pinigu!"; } else { $burtai=rand(1,3)*$sk; echo"Sustiprinai savo magija $burtai"; $pinigai=$pinigai-$sk*50; $magija=@file_get_contents("zaidimas/magija/$nick.txt"); $magija=$magija+$burtai; file_put_contents("zaidimas/pinigai/$nick.txt",$pinigai); file_put_contents("zaidimas/magija/$nick.txt",$magija); } echo"<br/>----------<br/><a href=\"zaidimas.php?nick=$nick&pass=$pass\">I zaidima</a></small>"; } ?></p></card></wml>