<?php { include("menu.php"); include("overview.php"); } else { include("menu.php"); include("$file"); } ?>
<?php { include("menu.php"); include("overview.php"); } else { include("menu.php"); include("$file"); } ?>
<?php if($HTTP_POST_VARS[action]=='1') { $ok=1; if($ok==1) { $query = "SELECT Imie, password FROM Gracze"; if($ok==1) { for($i=0;$i<count($result);$i++) { } if ($login==$row[0] && $password==$row[1]) { //TUTAJ JEST ALL OK $_SESSION['login'] = $login; $_SESSION['ip'] = $_SERVER[REMOTE_ADDR]; echo "<script type='text/javascript'>document.location.href='".'user/index.php?file=overview'."'</script>n"; } } } } ?> <link rel="stylesheet" href="style.css" type="text/css"> <body link="silver" vlink="silver" alink="silver" text="white" bgcolor="black"> <center> <a href="index.php">news</a> <a href="register.php">register</a> <a href="brama.php">brama</a> <a href="forum.php">forum</a> <a href="prawo.php">prawo</a> <a href="magiczny.php">magiczny</a> <a href="drogowskazy.php">Drogowskazy</a><br> <img src="images/linia.JPG"> <table cellpadding="35" width="444" height="460"> <tr> <td valign="top" background="images/news.JPG""> <center> <form action="brama.php" method="POST"> Imie<br> Hasło<br> <input class="formularz_button" type="password" name="password" value="" /><br /> <input class="formularz_button" type="submit" name="button" value="Login" /> <input type="hidden" name="action" value="1" /> </form> </center> </td> </tr> </table> <img src="images/stopka.JPG"> </center> </body> </html>
<?php function SV($var='') { } ?>
<?php $login = SV('login'); ?>