error.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * Error page.
  4. *
  5. * Loaded from the {@see Constroller} when an error occurs.
  6. *
  7. * @category Public
  8. */
  9. namespace swdb;
  10. require_once(__DIR__ . "/../application/config.php");
  11. ?>
  12. <!DOCTYPE html>
  13. <html lang='en'>
  14. <head>
  15. <meta content='text/html; charset=windows-1252' http-equiv='content-type'/>
  16. <meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1'>
  17. <title>ERROR <?=http_response_code()?> - SWDB</title>
  18. <link rel='shortcut icon' href='<?=$root?>img/layout/logo/favicon.ico'>
  19. <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>ui.css'/>
  20. <link rel='stylesheet' type='text/css' href='<?=$path["css"]?>error.css'/>
  21. <meta name="robots" content="noindex follow"/>
  22. </head>
  23. <body>
  24. <?php
  25. include __DIR__ . "/../application/inc/header.php";
  26. ?>
  27. <div class='section'>
  28. <h3 class='section_title'>ERROR</h3>
  29. <table id='error_code' class='entry'>
  30. <tr>
  31. <td id='error_number'>
  32. <?=http_response_code()?>
  33. </td>
  34. <td id='error_tag'>
  35. ERROR
  36. <br/>
  37. CODE
  38. </td>
  39. <tr>
  40. </table>
  41. <div id='error_message' class='entry'>
  42. <ul>
  43. <li>
  44. <a href='javascript:location.reload();'>Reload</a>
  45. </li>
  46. <li>
  47. <a href='javascript:history.go(-1);'>Back to previous page</a>
  48. </li>
  49. <li>
  50. <a href='<?=$root?>'>Home Page</a>
  51. </li>
  52. </ul>
  53. </div> <!-- #error_message -->
  54. </div> <!-- .section -->
  55. <?php
  56. include __DIR__ . "/../application/inc/footer.php";
  57. ?>
  58. </body>
  59. </html>