404.php 2.8 KB

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