403.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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><?=text($con, "ERROR_TITLE", $lang);?> - <?=text($con, "USER_NAME", $lang);?></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. <!-- CSS files -->
  24. <style>
  25. <?php
  26. include $doc_root . "css/ui.css";
  27. include $doc_root . "css/error.css";
  28. ?>
  29. </style>
  30. <!-- CSS for mobile version -->
  31. <style media="(max-width : 990px)">
  32. <?php
  33. include $doc_root . "css/m/ui.css";
  34. include $doc_root . "css/m/error.css";
  35. ?>
  36. </style>
  37. <meta name="robots" content="noindex follow"/>
  38. </head>
  39. <body>
  40. <?php
  41. include $doc_root . "header.php";
  42. ?>
  43. <div class='section section_no_title' >
  44. <table id='error-code' class='entry'>
  45. <tr>
  46. <td id='error-number'>
  47. 403
  48. </td>
  49. <td id='error-tag'>
  50. <?=text($con, "ERROR_DISPLAY", $lang);?>
  51. </td>
  52. <tr>
  53. </table>
  54. <br/><br/><br/><br/>
  55. <div id='error-message' class='entry'>
  56. <h2><?=text($con, "ERROR_403", $lang);?></h2>
  57. <?=text($con, "ERROR_403_DESC", $lang);?>
  58. <br/><br/>
  59. <?=text($con, "ERROR_TRY", $lang);?>
  60. <ul>
  61. <li>
  62. <a href='javascript: location.reload();'><?=text($con, "ERROR_SOLUTION_0", $lang);?></a>
  63. </li>
  64. <li>
  65. <a href='javascript: history.go(-1);'><?=text($con, "ERROR_SOLUTION_1", $lang);?></a>
  66. </li>
  67. <li>
  68. <a href='<?=$lserver?>/'><?=text($con, "ERROR_SOLUTION_2", $lang);?></a>
  69. </li>
  70. </ul>
  71. </div> <!-- #error_message -->
  72. </div> <!-- .section -->
  73. <?php
  74. include $doc_root . "footer.php";
  75. stats($con, $cur_section, $cur_entry);
  76. ?>
  77. </body>
  78. </html>