%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/buggydubrovnik.com/prodaja/
Upload File :
Create Path :
Current File : //var/www/html/buggydubrovnik.com/prodaja/auth.php

<?php	

	if (session_id() == "")

		session_start();

			

	if(isset($_GET['logout']) && $_GET['logout']==1){

		$_SESSION = array();

		session_destroy();

		setcookie('regina',' ',time() + (1 * 7));

		

	}	

	

	$rm = 0;

	if($_COOKIE['regina']=='rm1')

	{$rm=1;}

	

	

	

	if (isset($_POST['login'])) {	

		$user=$_POST['user'];

		$pass=$_POST['pass'];

		

		

			

		if(($user=="prodaja")&&($pass=="prodaja")){

			$_SESSION['user']='Prodavac';

 			header( 'Location: start.php' ) ;}

			

			

			

				

		else if(($user=="bug")&&($pass=="buggy")){

			$_SESSION['userx']='Admin';

 			header( 'Location: start.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 name="viewport" content="width=device-width, initial-scale=1.0">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Buggy Safari- Statistika</title>

</head>



        

<body style=" margin:0 auto;background-image:url(slike/backb.jpg); background-size:cover; background-position:fixed; background-repeat:no-repeat; background-position:top;">



<div id="gornjatraka">

</div>

<div>

    <div class="align-center">

        <?php if ($greska==1) echo '<span class="error">Unijeli ste krive korisničke podatke ili je vaša sjednica istekla.</span>'; ?>

        <br/>

        <br/>

        <form method="post" action="auth.php">

            Korisničko ime: <br/><input style="width:300px; text-align:center; height:50px;" name="user"  type="text" /><br/>

            Lozinka:<br/><input style="width:300px; height:50px; text-align:center" name="pass" type="password" /><br/><br/>





            <input type="submit"  class="button" name="login"  value="Prijava"  />



        </form>

    </div>

</div>

</html>


Zerion Mini Shell 1.0