404.php 2.6 KB

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