index.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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>Ajustes - 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/settings.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/settings.css"/>
  23. <!-- Script files -->
  24. <script type="text/javascript" src="/script/ui.js"></script>
  25. <script type="text/javascript">
  26. function saveSetting(name, value){
  27. // TODO: Call guardar.php
  28. }
  29. </script>
  30. </head>
  31. <body>
  32. <?php include('../toolbar.php'); ?>
  33. <div id='content'>
  34. <div class='section'>
  35. <h3 class='section_title'>Ajustes</h3>
  36. <div class='entry'>
  37. Permitir que los visitantes comenten anonimamente...
  38. <br/>&nbsp;&nbsp;&nbsp;&nbsp;
  39. <label><input type="checkbox" name="comment_blog" value="value">... en el blog</label>
  40. <br/>&nbsp;&nbsp;&nbsp;&nbsp;
  41. <label><input type="checkbox" name="comment_activities" value="value">... en las actividades</label>
  42. <br/>&nbsp;&nbsp;&nbsp;&nbsp;
  43. <label><input type="checkbox" name="comment_gallery" value="value">... en la galer&iacute;a</label>
  44. <br/><br/>
  45. <label>
  46. <input type="checkbox" name="upload_gallery" value="value">
  47. Permitir que los usuarios contribuyan a los albums con sus fotos (puede restringirse por album)
  48. </label>
  49. <label>
  50. <input type="checkbox" name="festivals" value="value">
  51. Usar disseño para fiestas de Vitoria.
  52. </label>
  53. </div>
  54. </div>
  55. </div>
  56. </body>
  57. </html>
  58. <?php } ?>