index.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. ?>
  11. <html>
  12. <head>
  13. <meta content="text/html; charset=windows-1252" http-equiv="content-type"/>
  14. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1">
  15. <title>Gasteizko Margolariak - Administracion</title>
  16. <!-- CSS files -->
  17. <link rel="stylesheet" type="text/css" href="/css/ui.css"/>
  18. <link rel="stylesheet" type="text/css" href="/css/index.css"/>
  19. <!-- CSS for mobile version -->
  20. <link rel="stylesheet" type="text/css" media="(max-width : 990px)" href="/css/m/ui.css"/>
  21. <link rel="stylesheet" type="text/css" media="(max-width : 990px)" href="/css/m/index.css"/>
  22. </head>
  23. <body>
  24. <div class='section'>
  25. <h3 class='section_title'>Credenciales</h3>
  26. <div class='entry'>
  27. <form method='post' action='/login.php'>
  28. <table>
  29. <tr>
  30. <td>Usuario:</td>
  31. <td><input name="user" type="text"/></td>
  32. </tr>
  33. <tr>
  34. <td>Contrase&ntilde;a:</td>
  35. <td><input name="pass" type="password"/></td>
  36. </tr>
  37. <tr>
  38. <td></td><td><input type="submit" value="Entrar"/></td>
  39. </tr>
  40. </table>
  41. </form>
  42. </div>
  43. </div>
  44. </body>
  45. </html>
  46. <?php
  47. }
  48. ?>