File size: 3.21Kb
<?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="©bygone.xz.lt">'; include("on.php"); $id=$_GET['id']; $nick=$_GET['nick']; $pass=$_GET['pass']; $nick=htmlspecialchars($nick); $pass=htmlspecialchars($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=="") { $pinigai=@file_get_contents("zaidimas/pinigai/$nick.txt"); echo"<p align=\"center\"><small><b>Ginklu ir kitokiu daikciuku prekeivis Ali. P.S. galima tureti tik viena ginkla ir sarvus</b><br/>----------<br/>Pinigai: $pinigai $$<br/>----------<br/></small><select name=\"gun\"><option value=\"knife\">Knife(300$$,50)</option><option value=\"armor\">Armor(500$$,80)</option><option value=\"deagle\">Pistoletas(800$$,100)</option><option value=\"ak47\">Ak47(1400$$,180)</option><option value=\"m4a1\">M4a1(2000$$,240)</option><option value=\"awp\">AWP(3000$$,360)</option></select><br/><anchor>Pirkti<go href=\"ginklai.php?nick=$nick&pass=$pass&id=perkaguna\" method=\"post\"><postfield name=\"gun\" value=\"$(gun)\"/></go></anchor><small><br/>---------<br/><a href=\"zaidimas.php?nick=$nick&pass=$pass\">I zaidima</a></small>"; }
if($id=="perkaguna") { echo"<p align=\"center\"><small>";
$pinigai=@file_get_contents("zaidimas/pinigai/$nick.txt"); $gun=$_POST['gun']; $gun=htmlspecialchars($gun); if($gun!="knife" && $gun!="armor" && $gun!="deagle" && $gun!="ak47" && $gun!="m4a1" && $gun!="awp") { echo"Tokio ginklo nera!</small></p></card></wml>"; exit(); }
if($gun=="knife") { $kaina="300"; $prideda="50"; } else if($gun=="armor") { $kaina="500"; } else if($gun=="deagle") { $kaina="800"; $prideda="100"; } else if($gun=="ak47") { $kaina="1400"; $prideda="180"; } else if($gun=="m4a1") { $kaina="2000"; $prideda="240"; } else if($gun=="awp") { $kaina="3000"; $prideda="360"; }
if($pinigai<$kaina) { echo"Neuztenka pinigu!"; } else { echo"Sekmingai nusipirkai $gun ginkla!"; $pinigai=$pinigai-$kaina; file_put_contents("zaidimas/pinigai/$nick.txt",$pinigai); if($gun=="armor") { file_put_contents("zaidimas/ginklai/sarvai/$nick.txt","80"); } else{ file_put_contents("zaidimas/ginklai/sautuvai/$nick.txt",$prideda);}
}
echo"<br/>---------<br/><a href=\"zaidimas.php?nick=$nick&pass=$pass\">I zaidima</a></small>"; }
?></p></card></wml>