index.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. $http_host = $_SERVER['HTTP_HOST'];
  3. include("functions.php");
  4. $con = startdb();
  5. if (checkSession($con)){
  6. header("Location: /main.php");
  7. exit (-1);
  8. }
  9. else{?>
  10. <html>
  11. <head>
  12. <meta content="text/html; charset=windows-1252" http-equiv="content-type"/>
  13. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1">
  14. <title>Gasteizko Margolariak - Administracion</title>
  15. <!-- CSS files -->
  16. <link rel="stylesheet" type="text/css" href="/css/ui.css"/>
  17. <link rel="stylesheet" type="text/css" href="/css/index.css"/>
  18. <!-- CSS for mobile version -->
  19. <link rel="stylesheet" type="text/css" media="(max-width : 990px)" href="/css/m/ui.css"/>
  20. <link rel="stylesheet" type="text/css" media="(max-width : 990px)" href="/css/m/index.css"/>
  21. </head>
  22. <body>
  23. <div class='section'>
  24. <h3 class='section_title'>Credenciales</h3>
  25. <div class='entry'>
  26. <form method='post' action='/login.php'>
  27. <table>
  28. <tr>
  29. <td>Usuario:</td>
  30. <td><input name="user" type="text"/></td>
  31. </tr>
  32. <tr>
  33. <td>Contrasena:</td>
  34. <td><input name="pass" type="password"/></td>
  35. </tr>
  36. <tr>
  37. <td></td><td><input type="submit" value="Entrar"/></td>
  38. </tr>
  39. </table>
  40. </form>
  41. </div>
  42. </div>
  43. </body>
  44. </html>
  45. <?php } ?>