123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <style type="text/css">
- .system_error {
- border:1px solid #990000;
- padding:10px 20px;
- margin:10px;
- font: 13px/1.4em verdana;
- background: #fff;
- }
- code.source {
- white-space: pre;
- background: #fff;
- padding: 1em;
- display: block;
- margin: 1em 0;
- border: 1px solid #bedbeb;
- }
- .system_error .box {
- margin: 1em 0;
- background: #ebf2fa;
- padding: 10px;
- border: 1px solid #bedbeb;
- }
- .code.source em { background: #ffc; }
- </style>
- <div class="system_error">
- <b style="color: #990000">Error</b>
- <p><?php echo $error; ?></p>
- <?php //print dump(debug_backtrace()); ?>
- <?php
- if($backtrace = \Micro\Error::backtrace(1))
- {
- foreach($backtrace as $id => $line)
- {
- print '<div class="box">';
- //Skip the first element
- if( $id !== 0 )
- {
- // If this is a class include the class name
- print '<b>Called by '. (isset($line['class']) ? $line['class']. $line['type'] : '');
- print $line['function']. '()</b>';
- }
- // Print file, line, and source
- print ' in '. $line['file']. ' ['. $line['line']. ']';
- print '<code class="source">'. $line['source']. '</code>';
- if(isset($line['args']))
- {
- print '<b>Function Arguments</b>';
- print dump($line['args']);
- }
- print '</div>';
- }
- }
- elseif(isset($file, $line))
- {
- print '<p><b>'. $file. '</b> ('. $line. ')</p>';
- }
- ?>
- </div>
|