<?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']; 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=="") { $keli="0"; foreach(glob("zaidime/*") as $b) { $q=explode("|",file_get_contents($b)); if($q[2]=="baras" || $q[2]=="baras2" || $q[2]=="baras3" || $q[2]=="baro") { $keli=$keli+1; } } echo"<p align=\"center\"><small><b>Centras</b><br/>----------</small></p><p align=\"left\"><small>»<a href=\"miestas.php?id=istatymai&nick=$nick&pass=$pass\">Garbes kodeksas</a><br/>»<a href=\"miestas.php?id=parduotuve&nick=$nick&pass=$pass\">Parduotuve</a><br/>»<a href=\"miestas.php?id=valdzia&nick=$nick&pass=$pass\">CS valdzia</a><br/>»<a href=\"miestas.php?id=baras&nick=$nick&pass=$pass\">Baras($keli)</a><br/>»<a href=\"miestas.php?nick=$nick&pass=$pass&id=banlist\">Ban listas</a><br/>»<a href=\"ginklai.php?nick=$nick&pass=$pass\">Ginklu pirkimas</a></small></p><p align=\"center\"><small>----------<br/><a href=\"zaidimas.php?nick=$nick&pass=$pass\">I zaidima</a></small>"; } if($id=="valdzia") { echo"<p align=\"center\"><small><b>CS Valdzios atstovai</b><br/>---------<br/>Pagrindinis sio zaidimo adminstratorius yra xmintarasx, bet yra ir moderatoriai:<br/>"; foreach(glob("zaidimas/mod/*") as $b) { $b=str_replace("zaidimas/mod/","",$b); $b=str_replace(".txt","",$b); echo"<a href=\"zaidimas.php?id=apie&ka=$b&nick=$nick&pass=$pass\">$b</a><br/>"; } echo"Vieta valdzioje galima pelnyti geru zaidimu, draugiskumu ir tt. bet zinoma galima ir nusipirkti ;) kaina 5lt labas papildymas, kreiptis i admina xmintarasx, zinoma jei jus busit blogas modas, jus greit neteksit savo pareigu!<br/>----------<br/><a href=\"zaidimas.php?nick=$nick&pass=$pass\">I zaidima</a></small>"; } if($id=="banlist") { echo"<p align=\"center\"><small>Ban listas<br/>----------<br/>"; foreach(glob("zaidimas/banai/*") as $ban) { $rr=explode("|",file_get_contents($ban)); $ban=str_replace(".txt","",$ban); $ban=str_replace("zaidimas/banai/","",$ban); $laikas=$rr[1]-time(); if($rr[1]<time()) { @unlink("zaidimas/banai/$ban.txt"); } $laikas=$laikas/60; $laikas=ceil($laikas); echo"<b>$ban</b><br/>Liko: $laikas min.<br/>Priezastis: $rr[2]($rr[3])<br/>"; } echo"----------<br/><a href=\"zaidimas.php?nick=$nick&pass=$pass\">I zaidima</a></small>"; } if($id=="parduotuve") { $pinigai=@file_get_contents("zaidimas/pinigai/$nick.txt"); echo"<p align=\"center\"><small><b>Parduotuve</b><br/>---------<br/>Pinigai: $pinigai $$<br/>---------<br/></small><select name=\"pirkinys\"><option value=\"1\">Hamburgeris(25$$)</option><option value=\"2\">Pica(50$$)</option><option value=\"4\">Vaistai(100$$)</option></select><br/><anchor>Pirkti<go href=\"miestas.php?id=perkam&pass=$pass&nick=$nick\" method=\"post\"><postfield name=\"pirkinys\" value=\"$(pirkinys)\"/></go></anchor><small><br/>----------<br/><a href=\"zaidimas.php?nick=$nick&pass=$pass\">I zaidima</a></small>"; } if($id=="perkam") { echo"<p align=\"center\"><small><b>"; $pirkinys=$_POST['pirkinys']; $pirkinys=htmlspecialchars($pirkinys); if($pirkinys!="1" && $pirkinys!="2" && $pirkinys!="4") { echo"Tokio pirkinio nera!</b></small></p></card></wml>"; exit(); } $pinigai=@file_get_contents("zaidimas/pinigai/$nick.txt"); if($pinigai<25*$pirkinys) { echo"Neturi tiek pinigu!"; } else {$pinigai=$pinigai-25*$pirkinys; $gyvybes=@file_get_contents("zaidimas/gyvybes/$nick.txt"); $gyvybes=$gyvybes+25*$pirkinys; if($gyvybes>100) { $gyvybes="100"; } echo"M.. Suvalgei,dabar turi $gyvybes/100 gyvybiu."; file_put_contents("zaidimas/pinigai/$nick.txt",$pinigai);
file_put_contents("zaidimas/gyvybes/$nick.txt","$gyvybes"); } echo"</b><br/>---------<br/><a href=\"zaidimas.php?nick=$nick&pass=$pass\">I zaidima</a></small>"; }
if($id=="baras") { $keli="0"; foreach(glob("zaidime/*") as $b) { $q=explode("|",file_get_contents($b)); if($q[2]=="baras" || $q[2]=="baras2" || $q[2]=="baras3" || $q[2]=="baro") { $keli=$keli+1; } } echo"<onevent type=\"ontimer\"><go href=\"miestas.php?id=baras&pass=$pass&nick=$nick\"/></onevent><timer value=\"300\"/><p align=\"center\">"; echo"<small><b>Pokalbiai vyksta cia! ;)</b><br/>----------<br/><a href=\"miestas.php?id=baras2&pass=$pass&nick=$nick\">Rasyti</a> <a href=\"miestas.php?id=baro&pass=$pass&nick=$nick\">Online $keli</a><br/>----------</small></p><p align=\"left\">"; $masyvas=explode("|",file_get_contents("bar.txt")); for($i="0"; $i<count($masyvas)-1; $i++) { $rrr=explode("*****",$masyvas[$i]); echo"<small><b><a href=\"zaidimas.php?id=apie&ka=$rrr[0]&pass=$pass&nick=$nick\">$rrr[0]</a>:</b> $rrr[1]<br/></small>"; } echo"</p><p align=\"center\"><small><a href=\"zaidimas.php?pass=$pass&nick=$nick\">Iseiti</a></small>"; }
if($id=="baras2") { echo"<p align=\"center\"><b>Zinute</b><br/>----------<br/><input name=\"zin\" maxlength=\"200\" type=\"text\"/><br/><anchor>Rasyti<go href=\"miestas.php?id=baras3&pass=$pass&nick=$nick\" method=\"post\"><postfield name=\"zin\" value=\"$(zin)\"/></go></anchor>"; }
if($id=="baras3") { echo"<onevent type=\"ontimer\"><go href=\"miestas.php?id=baras&pass=$pass&nick=$nick\"/></onevent><timer value=\"10\"/><p align=\"center\">"; $zin=$_POST['zin']; $zin1=strlen($zin); $zin=str_replace("?>","",$zin);
$zin=str_replace("$","$$",$zin);
$zin=str_replace("|","",$zin); $zin=str_replace("&","&",$zin);
$zin=str_replace("<","<",$zin);
$zin=str_replace(">",">",$zin); $zin=str_replace(';)','<img src="veidai/mirksi.gif" alt="Veidas"/>',$zin); $zin=str_replace('=D','<img src="veidai/sypsena.gif" alt="Veidas"/>',$zin); $zin=str_replace(':)','<img src="veidai/linksmas.gif" alt="Veidas"/>',$zin);
$zin=str_replace(':N','<img src="veidai/t.gif" alt="Veidas"/>',$zin);
$zin=str_replace('=)','<img src="veidai/linksmas.gif" alt="Veidas"/>',$zin);
$zin=str_replace(':(','<img src="veidai/liudnas.gif" alt="Veidas"/>',$zin);
$zin=str_replace('=(','<img src="veidai/liudnas.gif" alt="Veidas"/>',$zin);
$zin=str_replace('=P','<img src="veidai/liezuvis.gif" alt="Veidas"/>',$zin);
$zin=str_replace(':P','<img src="veidai/liezuvis.gif" alt="Veidas"/>',$zin);
$zin=str_replace('=(','<img src="veidai/liudnas.gif" alt="Veidas"/>',$zin);
$zin=str_replace(':(','<img src="veidai/liudnas.gif" alt="Veidas"/>',$zin);
$zin=str_replace('=O','<img src="veidai/nustebes.gif" alt="Veidas"/>',$zin);
$zin=str_replace(':O','<img src="veidai/nustebes.gif" alt="Veidas"/>',$zin);
$zin=str_replace(':D','<img src="veidai/sypsena.gif" alt="Veidas"/>',$zin); $zin=str_replace("А","Ą",$zin);
$zin=str_replace("а","ą",$zin);
$zin=str_replace("И","Č",$zin);
$zin=str_replace("и","č",$zin);
$zin=str_replace("Л","Ė",$zin);
$zin=str_replace("л","ė",$zin);
$zin=str_replace("Ж","Ę",$zin);
$zin=str_replace("ж","ę",$zin);
$zin=str_replace("Б","Į",$zin);
$zin=str_replace("б","į",$zin);
$zin=str_replace("Р","Š",$zin);
$zin=str_replace("р","š",$zin);
$zin=str_replace("Ы","Ū",$zin);
$zin=str_replace("ы","ū",$zin);
$zin=str_replace("Ш","Ų",$zin);
$zin=str_replace("ш","ų",$zin);
$zin=str_replace("Ю","Ž",$zin);
$zin=str_replace("ю","ž",$zin); if($zin1>200) { echo"Per ilga zinute!"; } else { echo"Sekmingai yrasyta!"; $baras=@file_get_contents("bar.txt"); @file_put_contents("bar.txt","$nick*****$zin|$baras"); $masyvas=explode("|",file_get_contents("bar.txt")); if(count($masyvas)>15) { unset($masyvas[15]); $masyvas=implode("|",$masyvas); @file_put_contents("bar.txt",$masyvas); } } echo"<br/>----------<br/>"; }
if($id=="baro") { echo"<p align=\"center\"><small>Bare:<br/>"; $keli="0"; foreach(glob("zaidime/*") as $b) { $q=explode("|",file_get_contents($b)); if($q[2]=="baras" || $q[2]=="baras2" || $q[2]=="baras3" || $q[2]=="baro") { $keli=$keli+1; $b=str_replace("zaidime/","",$b); $b=str_replace(".txt","",$b); echo"<a href=\"zaidimas.php?id=apie&ka=$b&pass=$pass&nick=$nick\">$b</a><br/>"; } } echo"----------<br/><a href=\"zaidimas.php?id=baras&pass=$pass&nick=$nick\">I bara</a></small>"; } if($id=="istatymai") { echo"<p align=\"center\"><small><b>CS nario garbes kodeksas</b><br/>----------<br/>1.Nepuldineti daznai silpnesniu kovotoju ;)<br/>2.Nereklamuoti savo svetainiu ar dar kokiu dalyku!<br/>3.Nesitycioti is silpnesniusio zaidimo nariu!<br/>4.Nesikeikti per daug!<br/>5.Buti aktyviam CS nariui ;)<br/>----------<br/><a href=\"zaidimas.php?nick=$nick&pass=$pass\">I zaidima</a></small>"; }
?></p></card></wml>