Просмотр файла imgs/index.php

Размер файла: 5.29Kb
<?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'];  if($id=="") { $on=count(glob("zaidime/*")); echo"<p align=\"center\"><img src=\"http://bygone.xz.lt/logo.jpg\" alt=\"logo\"/><br/><small>---------<br/>Unikalus zaidimas Counter strike! Bek pazaisti! ;)<br/>---------</small></p><p align=\"left\"><small><b><img src=\"http://bygone.xz.lt/svarbu.jpg\" alt=\"icon\"/><a href=\"index.php?id=log\">Prisijungimas</a><br/><img src=\"http://bygone.xz.lt/svarbu.jpg\" alt=\"icon\"/><a href=\"index.php?id=reg\">Registracija</a><br/><img src=\"http://bygone.xz.lt/svarbu.jpg\" alt=\"icon\"/><a href=\"index.php?id=apie\">Apie zaidima</a></b></small></p><p align=\"center\"><small>----------<br/>"; echo'<a href="http://wtop.us/i.php?id=kinggg"><img src="http://wtop.us/count.php?id=kinggg" alt="WAP TOP"/></a>'; echo"<a href=\"http://cntr.finx.lt/i.php?i=xmintarasxx\"><img src=\"http://cntr.finx.lt/c.php?i=xmintarasxx\" alt=\"CNTR.finx.lt\"/></a>"; echo"<br/>----------<br/>";   echo"<b>&#169;XmintarasX</b></small></p></card></wml>"; } if($id=="reg") {  $a=substr(str_shuffle(str_repeat("1234567890",5)),5,5);  @file_put_contents("zaidimas/kodreg.txt",$a);  echo"<p align=\"center\"><small><b>CS Registracija</b><br/>---------<br/></small>Slapyvardis:<br/><input type=\"text\" maxlength=\"20\" name=\"nick\"/><br/>Slaptazodis:<br/><input type=\"password\" maxlength=\"20\" name=\"pass\"/><br/>Kodas:<br/><img src=\"kodas.php\" alt=\"kodas\"/>";  echo"<br/><input type=\"text\" name=\"kod\" maxlength=\"15\"/><br/>Zaidejas:<br/><select name=\"kas\"><option value=\"policija\">Policininkas</option><option value=\"teroristai\">Teroristas</option></select><br/><anchor>Registruotis<go href=\"index.php?id=reg2\" method=\"post\"><postfield name=\"nick\" value=\"$(nick)\"/><postfield name=\"pass\" value=\"$(pass)\"/><postfield name=\"kod\" value=\"$(kod)\"/><postfield name=\"kas\" value=\"$(kas)\"/></go></anchor><small><br/>---------<br/><a href=\"index.php\">I pradzia</a></small></p></card></wml>"; }


if($id=="reg2") { echo"<p align=\"center\">"; $as=@file_get_contents("zaidimas/kodreg.txt"); $kod=$_POST['kod']; $kas=$_POST['kas']; $kas=htmlspecialchars($kas); $fl=@file_get_contents("zaidimas/flood.txt"); $pass=$_POST['pass']; $nick=$_POST['nick']; $pass=htmlspecialchars($pass); $nick=htmlspecialchars($nick); if($flood>time()) { echo"Antiflood! Palaukite keleta sekundziu ir bandykite vel."; } else if("$as"!="$kod") { echo"Neteisingas kodas ant paveikslelio!"; } else if(empty($nick)) { echo"Tuscias nicko laukelis."; } else if(empty($pass)) { echo"Tuscias slaptazodzio laukelis."; } else if(file_exists("zaidimas/nick/$nick.txt")) { echo"Sitas nick jau yra uzimtas!"; } else if($kas!="policija" && $kas!="teroristai") { echo"Blogas zaidejas!"; } else if(preg_match("/[^A-z0-9_-]/",$nick)) { echo "Neleistini simboliai naudojami nicke!";} else { $pass=md5(md5($pass)); echo"Sekmingai uzsiregistravai wap-CS zaidime!<br/><small><a href=\"zaidimas.php?pass=$pass&amp;nick=$nick\">Prisijungti</a></small>";  @file_put_contents("zaidimas/nick/$nick.txt","$pass");
@file_put_contents("zaidimas/kreditai/$nick.txt","1");
@file_put_contents("zaidimas/ginyba/$nick.txt","1");
@file_put_contents("zaidimas/taiklumas/$nick.txt","0");
@file_put_contents("zaidimas/pinigai/$nick.txt","60");
@file_put_contents("zaidimas/gyvybes/$nick.txt","100");
@file_put_contents("zaidimas/kas/$nick.txt","$kas");
@file_put_contents("zaidimas/patirtis/$nick.txt","0");
@file_put_contents("zaidimas/pergales/$nick.txt","0");
@file_put_contents("zaidimas/pralaimejimai/$nick.txt","0");
@file_put_contents("zaidimas/stiprumas/$nick.txt","1");
$time=time()+100; file_put_contents("zaidimas/flood.txt",$time); $a=substr(str_shuffle(str_repeat("1234567890",5)),5,5);  @file_put_contents("zaidimas/kodreg.txt",$a); } echo"<small><br/>---------</small></p></card></wml>"; } if($id=="log") { echo"<p align=\"center\"><b>Prisijungimas</b><br/>----------<br/>Nick:<br/><input name=\"nick\" type=\"text\"/><br/>Slaptazodis:<br/><input name=\"pass\" type=\"password\"/><br/><anchor>Jungtis<go href=\"index.php?id=log2\" method=\"post\"><postfield name=\"nick\" value=\"$(nick)\"/><postfield name=\"pass\" value=\"$(pass)\"/></go></anchor><br/>----------<br/><a href=\"index.php\">I pradzia</a></p></card></wml>";  } if($id=="log2") { $nick=$_POST['nick']; $pass=$_POST['pass']; $pass=htmlspecialchars($pass); $pass=md5(md5($pass)); $nick=htmlspecialchars($nick); echo"<p align=\"center\">Tikrinami duomenys<br/><a href=\"zaidimas.php?pass=$pass&amp;nick=$nick\">Testi</a></p></card></wml>"; } if($id=="apie") { echo"<p align=\"center\"><small><b>wap-CS</b> - tai online zaidimas, tai kovinio stiliaus wap zaidimas. Kuriame jus turite nurungti priesus botus, ir zinoma buti topo virsuneje garbes ir prestizo reikalas ;). Siame zaidime jus turesite pasirinkti zaideja policinka ar terorista, ir istreniruoti(istobulyti) savo kary iki neiveikiamo varzovo kitiems ;) Sekmes zaidime! tikiuosi patiks... :)<br/>----------<br/>Dizaina sukure: <b>xmintarasx</b>.<br/>----------<br/><a href=\"index.php\">I zaidima</a></small></p></card></wml>";  } ?>