404.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?php
  2. $http_host = $_SERVER['HTTP_HOST'];
  3. include("../functions.php");
  4. $con = startdb();
  5. $proto = getProtocol();
  6. //Language
  7. $lang = selectLanguage();
  8. include("../lang/lang_" . $lang . ".php");
  9. $cur_section = $lng['section_home'];
  10. ?>
  11. <!DOCTYPE html>
  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><?php echo $lng['error_title'] ?> - Gasteizko Margolariak</title>
  17. <link rel="shortcut icon" href="<?php echo "$proto$http_host/img/logo/favicon.ico";?>">
  18. <!-- CSS files -->
  19. <style>
  20. <?php
  21. include("../css/ui.css");
  22. include("../css/error.css");
  23. ?>
  24. </style>
  25. <!-- CSS for mobile version -->
  26. <style media="(max-width : 990px)">
  27. <?php
  28. include("../css/m/ui.css");
  29. include("../css/m/error.css");
  30. ?>
  31. </style>
  32. <!-- Script files -->
  33. <script type="text/javascript">
  34. <?php
  35. include("../script/ui.js");
  36. ?>
  37. </script>
  38. <style>
  39. div#error-code{
  40. display: inline-block;
  41. margin-top: 2em;
  42. margin-left: 10%;
  43. }
  44. td#error-number{
  45. font-size: 300%;
  46. border-right: 0.063em solid #000000;
  47. padding-right: 1.875em;
  48. padding-left: 1.250em;
  49. }
  50. td#error-tag{
  51. font-size: 110%;
  52. padding-left: 1.750em;
  53. padding-right: 1.250em;
  54. }
  55. div#error-message{
  56. width: 80%;
  57. margin-left: 10%;
  58. }
  59. @media (max-width: 990px){
  60. div#error-code{
  61. width: 90%;
  62. margin-left: auto;
  63. margin-right: auto;
  64. margin-top: 0;
  65. margin-bottom: 0;
  66. }
  67. div#error-message{
  68. width: 90%;
  69. margin-left: auto;
  70. margin-right: auto;
  71. margin-top: 0;
  72. margin-bottom: 0;
  73. }
  74. }
  75. </style>
  76. <meta name="robots" content="noindex follow"/>
  77. </head>
  78. <body>
  79. <?php include("../header.php");?>
  80. <div class="section" id="error-code">
  81. <table id="error-code" class="section">
  82. <tr>
  83. <td id="error-number">
  84. 404
  85. </td>
  86. <td id="error-tag">
  87. <?php echo "$lng[error_error]<br/>$lng[error_code]\n"; ?>
  88. </td>
  89. <tr>
  90. </table>
  91. </div>
  92. <br/><br/><br/><br/>
  93. <div id="error-message" class="section">
  94. <h2><?php echo $lng['error_404_title']; ?></h2>
  95. <div class="entry">
  96. <?php echo $lng['error_404_description']; ?>
  97. <br/><br/>
  98. <?php echo $lng['error_404_solution']; ?>
  99. <ul>
  100. <li>
  101. <a href="javascript: history.go(-1);"><?php echo $lng['error_404_solution_0']; ?></a>
  102. </li>
  103. <li>
  104. <a href="<?php echo "$proto$http_host/";?>"><?php echo $lng['error_404_solution_1']; ?></a>
  105. </li>
  106. <li>
  107. <a target='_blank' href="https://www.youtube.com/results?search_query=cats"><?php echo $lng['error_404_solution_2']; ?></a>
  108. </li>
  109. </ul>
  110. </div>
  111. </div>
  112. <?php
  113. include("../footer.php");
  114. stats(-1, $ad_static, "error", "404");
  115. ?>
  116. </body>
  117. </html>