index.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. <div class='entry'>
  25. <form method='post' action='/login.php'>
  26. <table>
  27. <tr>
  28. <td>Usuario:</td>
  29. <td><input name="user" type="text"/></td>
  30. </tr>
  31. <tr>
  32. <td>Contrasena:</td>
  33. <td><input name="pass" type="password"/></td>
  34. </tr>
  35. <tr>
  36. <td></td><td><input type="submit" value="Entrar"/></td>
  37. </tr>
  38. </table>
  39. </form>
  40. </div>
  41. </div>
  42. </body>
  43. </html>
  44. <?php } ?>