Advertisement
ArcaniSGK507

Untitled

Mar 16th, 2025
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.09 KB | None | 0 0
  1. <?php
  2.  
  3. declare(strict_types=1);
  4.  
  5. /**
  6.  * @var string $source
  7.  * @var array $errorArray
  8.  */
  9.  
  10. ?>
  11.  
  12. <!DOCTYPE html>
  13. <html lang="en">
  14.  
  15. <head>
  16.     <meta charset="utf-8">
  17.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  18.     <title><?php
  19.         echo $errorArray['class']; ?> | Error Control Software</title>
  20.     <style>
  21.  
  22.         @import url(/assets/css/firacode/fira_code.css);
  23.  
  24.         body {
  25.             font-family: "Roboto", arial, sans-serif;
  26.         }
  27.  
  28.         code {
  29.  
  30.             font-family: 'Fira Code', monospace;
  31.         }
  32.  
  33.         #errorTable {
  34.             margin: 40px auto 0;
  35.             display: table;
  36.             width: 1000px;
  37.             min-width: 1000px;
  38.             min-height: 600px;
  39.             border-collapse: collapse;
  40.         }
  41.  
  42.         td, th {
  43.             padding: 0.4em;
  44.             border: #ddd 1px solid;
  45.         }
  46.  
  47.         .col1 {
  48.             font-weight: 700;
  49.             width: 16%;
  50.             text-align: right;
  51.         }
  52.  
  53.         .col2 {
  54.             width: 84%;
  55.             text-align: left;
  56.         }
  57.  
  58.         .head {
  59.             height: 40px;
  60.             font-size: 24px;
  61.             background-color: #d23d24;
  62.             color: white;
  63.         }
  64.  
  65.         .footer {
  66.             height: 40px;
  67.             font-size: 24px;
  68.             background-color: #365D95;
  69.             color: white;
  70.             margin: unset;
  71.         }
  72.  
  73.         .top {
  74.             vertical-align: top;
  75.         }
  76.  
  77.         a {
  78.             text-decoration: none;
  79.             color: white;
  80.         }
  81.  
  82.         .row-1 {
  83.             height: 30px;
  84.             font-size: 18px;
  85.         }
  86.  
  87.         .container-track {
  88.             font-family: 'Fira Code', monospace;
  89.             font-size: 12px;
  90.             min-height: 30px;
  91.             height: 150px;
  92.             max-height: 150px;
  93.             overflow-x: auto;
  94.             overflow-y: auto;
  95.         }
  96.  
  97.         .container-code {
  98.             min-height: 30px;
  99.             height: 275px;
  100.             max-height: 275px;
  101.         }
  102.  
  103.         code {
  104.             display: block;
  105.             height: 100%;
  106.             font-size: 12px;
  107.             overflow-x: auto;
  108.             overflow-y: auto;
  109.         }
  110.  
  111.     </style>
  112. </head>
  113.  
  114. <body>
  115. <div style="display: flex; align-items: center; height: 100%">
  116.     <table id="errorTable">
  117.         <tr>
  118.             <th colspan="2" class="head"><?php
  119.                 echo $errorArray['class']; ?></th>
  120.         </tr>
  121.         <tr class="row-1">
  122.             <td class="col1">Description:</td>
  123.             <td class="col2"><?php
  124.                 echo $errorArray['description']; ?></td>
  125.         </tr>
  126.         <tr class="row-1">
  127.             <td class="col1">File:</td>
  128.             <td class="col2"><?php
  129.                 echo $errorArray['file'] ?></td>
  130.         </tr>
  131.         <tr class="row-1">
  132.             <td></td>
  133.             <td>
  134.                 <b>Line: </b><?php
  135.                 echo $errorArray['line']; ?>
  136.                 <b>Level: </b><?php
  137.                 echo $errorArray['type']; ?>
  138.                 <b>Time: </b><?php
  139.                 echo $errorArray['micro_time']; ?>
  140.             </td>
  141.         </tr>
  142.         <tr class="row-3">
  143.             <td class="col1 top">BackTrace Log:</td>
  144.             <td class="col2">
  145.                 <div class="container-track"><?php
  146.                     echo $errorArray['trace_msg']; ?></div>
  147.             </td>
  148.         </tr>
  149.         <tr class="row-3">
  150.             <td class="col1 top">Related Code View</td>
  151.             <td class="col2 container-code"><?php
  152.                 echo $source; ?></td>
  153.         </tr>
  154.         <tr>
  155.             <th colspan="2" class="footer">Please try to <a href="#" id="return">Go Back</a></th>
  156.         </tr>
  157.     </table>
  158. </div>
  159.  
  160. <script type="text/javascript">
  161.     document.addEventListener("DOMContentLoaded", function () {
  162.         function refresh() {
  163.             document.location.href = "/";
  164.         }
  165.  
  166.         document.getElementById("return").addEventListener("click", function () {
  167.             refresh();
  168.         });
  169.     });
  170. </script>
  171. </body>
  172.  
  173. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement