View file ligonine.php

File size: 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="&#169;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($id=="") { echo"<p align=\"center\"><small><b>Karo ligonine</b><br/>----------"; echo"<br/>Atsigules i ligonine nemokamai, atgausi visas gyvybes, bet 10min negalesi kovoti.<br/>Gultis?<br/><a href=\"ligonine.php?id=gultis&amp;pass=$pass&amp;nick=$nick\">Gultis</a>"; echo"<br/>----------<br/><a href=\"zaidimas.php?nick=$nick&amp;pass=$pass\">I zaidima</a></small>"; } 
if($id=="gultis") { echo"<p align=\"center\"><small><b>Atsigulei!</b><br/>----------";  echo"<br/><a href=\"zaidimas.php?nick=$nick&amp;pass=$pass\">I zaidima</a></small>"; $time=time()+600; file_put_contents("serga/$nick.txt",$time); }
 ?></p></card></wml>