ok
Direktori : /home/agroviero/www/adm/ |
Current File : /home/agroviero/www/adm/index.php |
<? include('conecta.php'); //------------------------------------------------------------ SESSÃO session_start(); if ($_GET["id"] == "finaliza") { unset($_SESSION['userid']); unset($_SESSION['username']); header("Location: index.php"); } else if(!isset($_SESSION['userid']) && !isset($_SESSION['username'])) { ?> <!DOCTYPE html> <html lang="pt-br"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="shortcut icon" href="../images/imddos_icon.ico"> <title>AGROVIERO - Nutrição Animal</title> <!-- Bootstrap Core CSS --> <link href="css/bootstrap.css" rel="stylesheet"> <!-- Custom CSS --> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> <style> body{ background-color: #333; } </style> </head> <body> <div class="container"> </br> </br> </br> </br> <div class="row"> <div class="col-md-4 col-md-offset-4"> <div class="panel panel-default"> <div class="panel-heading text-center"><br> <h3 class="panel-title">AGROVIERO – NUTRIÇÃO ANIMAL</h3><br> </div> <div class="panel-body"> <form name="login" role="form" method="POST" action="validalogin.php"> <fieldset> <div class="form-group"> <input class="form-control" placeholder="Login" type="name" name="login" autofocus> </div> <div class="form-group"> <input class="form-control" placeholder="Senha" type="password" name="senha"> </div> <div> <? if ($_GET["idlogin"] == "erro") {?> <h6 class="text-center"><font color="#CC3300">Erro ao efetuar o login. Tente novamente!</font></h6><br><?}?> </div> <!-- Change this to a button or input when using this as a form --> <button type="submit" class="btn btn-success btn-block">ENTRAR</button> </fieldset> </form> <?}?> </div> <h5 class="text-center"><a href="../" class="text-center">« voltar para o site</a></h5> </div> </div> </div> </div> </body> <!-- jQuery Version 1.11.1 --> <script src="js/jquery.js"></script> <!-- Bootstrap Core JavaScript --> <script src="js/bootstrap.min.js"></script> </body> </html>