index.php 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. $server = get_protocol() . $_SERVER['HTTP_HOST'];
  3. $default_host = substr($http_host, 0, strpos($http_host, ':'));
  4. include("../functions.php");
  5. $con = startdb();
  6. if (!checkSession($con)){
  7. header("Location: /index.php");
  8. exit (-1);
  9. }
  10. else{
  11. ?>
  12. <html>
  13. <head>
  14. <meta content="text/html; charset=windows-1252" http-equiv="content-type"/>
  15. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1">
  16. <title>Gasteizko Margolariak - Administracion</title>
  17. <!-- CSS files -->
  18. <link rel="stylesheet" type="text/css" href="/css/ui.css"/>
  19. <link rel="stylesheet" type="text/css" href="/css/main.css"/>
  20. <!-- CSS for mobile version -->
  21. <link rel="stylesheet" type="text/css" media="(max-width : 990px)" href="/css/m/ui.css"/>
  22. <link rel="stylesheet" type="text/css" media="(max-width : 990px)" href="/css/m/main.css"/>
  23. <!-- Script files -->
  24. <script type="text/javascript" src="/script/ui.js"></script>
  25. </head>
  26. <body>
  27. <?php include('../toolbar.php'); ?>
  28. <div id='content'>
  29. </div>
  30. </body>
  31. </html>
  32. <?php } ?>