%PDF- %PDF-
Direktori : /var/www/html/buggydubrovnik.com/prodaja/statistika/ |
Current File : /var/www/html/buggydubrovnik.com/prodaja/statistika/auth.php |
<?php if (session_id() == "") session_start(); if(isset($_GET['logout']) && $_GET['logout']==1){ $_SESSION = array(); session_destroy(); } if (isset($_POST['login'])) { $user=$_POST['user']; $pass=$_POST['pass']; if(($user=="admin")&&($pass=="aex2011")){ $_SESSION['user']='Korisnik'; header( 'Location: index.php' ) ;} else if(($user=="tmladinic")&&($pass=="adex2011")){ $_SESSION['user']='Tibor Mladinić'; header( 'Location: index.php' ) ;} else header( 'Location: auth.php?greska=1' ) ; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <?php $greska=$_GET['greska']; ?> <link href="../style.css" rel="stylesheet" type="text/css" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Statistika</title> </head> <body style=" margin:0 auto;"> <div id="gornjatraka"> </div> <div style=" text-align:center; font-family:Arial, Helvetica, sans-serif; font-size:12px; padding-top:150px; margin:0 auto; width:680px; "> <div style="float:left; margin-left:220px; text-align:center"> <?php if ($greska==1) echo '<span style="color:red;">Unijeli ste krive korisničke podatke <br />ili je vaša sjednica istekla. <br /> <br /></span>'; ?> <table align="center"><form method="post" action="auth.php"> <tr><td align="left">Korisničko ime :</td><td> <input name="user" style="width:150px;" type="text" /></td></tr> <tr><td align="left">Lozinka :</td><td> <input name="pass" style="width:150px;" type="password" /></td></tr> <tr><td colspan="2" align="center" height="15px"></td></tr> <tr><td></td><td align="center"><input type="submit" name="login" border="0" style="background-image:url(slike/button.png); height:18px; width:68px; border:none; " value="Prijava" /></td></tr> </form></table> </div> </div> </html>