error.php 1.9 KB

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