You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.8 KiB

3 years ago
  1. <?php
  2. if(C('LAYOUT_ON')) {
  3. echo '{__NOLAYOUT__}';
  4. }
  5. ?>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  7. <html xmlns="http://www.w3.org/1999/xhtml"><head>
  8. <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  9. <title>系统发生错误</title>
  10. <style type="text/css">
  11. *{ padding: 0; margin: 0; }
  12. html{ overflow-y: scroll; }
  13. body{ background: #fff; font-family: '微软雅黑'; color: #333; font-size: 16px; }
  14. img{ border: 0; }
  15. .error{ padding: 24px 48px; }
  16. .face{ font-size: 100px; font-weight: normal; line-height: 120px; margin-bottom: 12px; }
  17. h1{ font-size: 32px; line-height: 48px; }
  18. .error .content{ padding-top: 10px}
  19. .error .info{ margin-bottom: 12px; }
  20. .error .info .title{ margin-bottom: 3px; }
  21. .error .info .title h3{ color: #000; font-weight: 700; font-size: 16px; }
  22. .error .info .text{ line-height: 24px; }
  23. .copyright{ padding: 12px 48px; color: #999; }
  24. .copyright a{ color: #000; text-decoration: none; }
  25. </style>
  26. </head>
  27. <body>
  28. <div class="error">
  29. <p class="face">:(</p>
  30. <h1><?php echo strip_tags($e['message']);?></h1>
  31. <div class="content">
  32. <?php if(isset($e['file'])) {?>
  33. <div class="info">
  34. <div class="title">
  35. <h3>错误位置</h3>
  36. </div>
  37. <div class="text">
  38. <p>FILE: <?php echo $e['file'] ;?> &#12288;LINE: <?php echo $e['line'];?></p>
  39. </div>
  40. </div>
  41. <?php }?>
  42. <?php if(isset($e['trace'])) {?>
  43. <div class="info">
  44. <div class="title">
  45. <h3>TRACE</h3>
  46. </div>
  47. <div class="text">
  48. <p><?php echo nl2br($e['trace']);?></p>
  49. </div>
  50. </div>
  51. <?php }?>
  52. </div>
  53. </div>
  54. <div class="copyright">
  55. <p><a title="官方网站" href="http://www.thinkphp.cn">ThinkPHP</a><sup><?php echo THINK_VERSION ?></sup> { Fast & Simple OOP PHP Framework } -- [ WE CAN DO IT JUST THINK ]</p>
  56. </div>
  57. </body>
  58. </html>