403.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?php
  2. session_start();
  3. $http_host = $_SERVER["HTTP_HOST"];
  4. $doc_root = $_SERVER["DOCUMENT_ROOT"];
  5. include $doc_root . "functions.php";
  6. $proto = get_protocol();
  7. $con = start_db();
  8. $server = $proto . $http_host;
  9. $lang = select_language();
  10. $lserver = $server . "/" . $lang;
  11. $cur_section = "error";
  12. $cur_entry = "403";
  13. ?>
  14. <!DOCTYPE html>
  15. <html>
  16. <head>
  17. <meta content='text/html; charset=windows-1252' http-equiv='content-type'/>
  18. <meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1'>
  19. <title>Error - I&ntilde;igo Valentin</title>
  20. <link rel='shortcut icon' href='<?=$lserver?>/img/logo/favicon.ico'>
  21. <!-- CSS files -->
  22. <link rel='stylesheet' type='text/css' href='/css/ui.css'/>
  23. <style>
  24. table#error-code{
  25. margin-top: 5em;
  26. margin-left: 10%;
  27. }
  28. td#error-number{
  29. font-size: 300%;
  30. border-right: 0.063em solid #000000;
  31. padding-right: 1.875em;
  32. padding-left: 1.250em;
  33. }
  34. td#error-tag{
  35. font-size: 110%;
  36. padding-left: 1.750em;
  37. padding-right: 1.250em;
  38. }
  39. div#error-message{
  40. width: 80%;
  41. margin-left: 10%;
  42. }
  43. @media (max-width: 990px){
  44. table#error-code{
  45. width: 90%;
  46. margin-left: auto;
  47. margin-right: auto;
  48. margin-top: 0;
  49. margin-bottom: 0;
  50. }
  51. div#error-message{
  52. width: 90%;
  53. margin-left: auto;
  54. margin-right: auto;
  55. margin-top: 0;
  56. margin-bottom: 0;
  57. }
  58. }
  59. </style>
  60. <meta name="robots" content="noindex follow"/>
  61. </head>
  62. <body>
  63. <?php
  64. include $doc_root . "header.php";
  65. ?>
  66. <div class='section section_no_title' >
  67. <table id='error-code' class='entry'>
  68. <tr>
  69. <td id='error-number'>
  70. 403
  71. </td>
  72. <td id='error-tag'>
  73. ERROR<br/>CODE
  74. </td>
  75. <tr>
  76. </table>
  77. <br/><br/><br/><br/>
  78. <div id='error-message' class='entry'>
  79. <h2>Forbidden</h2>
  80. This means you are trying to view something you are not allowed to, security wise.
  81. <br/><br/>
  82. Try a solution:
  83. <ul>
  84. <li>
  85. <a href='javascript: location.reload();'>Try again.</a>
  86. </li>
  87. <li>
  88. <a href='javascript: history.go(-1);'>Go to the previous page.</a>
  89. </li>
  90. <li>
  91. <a href='<?=$lserver?>/'>Go to the main page</a>
  92. </li>
  93. </ul>
  94. </div> <!-- #error_message -->
  95. </div> <!-- .section -->
  96. <?php
  97. include $doc_root . "footer.php";
  98. stats($con, $cur_section, $cur_entry);
  99. ?>
  100. </body>
  101. </html>