KumbiaPHP beta2-dev
Framework PHP en español
|
00001 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 00002 <html xmlns="http://www.w3.org/1999/xhtml"> 00003 <head> 00004 <meta http-equiv='Content-type' content='text/html; charset=UTF-8' /> 00005 <title>KumbiaPHP web & app Framework</title> 00006 <link rel="stylesheet" href="<?php echo PUBLIC_PATH ?>css/style.css" /> 00007 <link rel="stylesheet" href="<?php echo PUBLIC_PATH ?>css/bienvenida.css" /> 00008 <link rel="stylesheet" href="<?php echo PUBLIC_PATH ?>css/exception.css" /> 00009 </head> 00010 <body> 00011 <div class="exception"> 00012 <?php echo $content ?> 00013 <div class="exception_information"> 00014 <h2>Rastro</h2> 00015 <?php 00016 //var_dump($e->getTrace()); 00017 foreach ($e->getTrace() as $trace): ?> 00018 <?php if (isset ( $trace ['file'] ) && !(strpos ( $trace ['file'], APP_PATH) ===false) && !(strpos ( $trace ['file'], 'index.php'))): ?> 00019 <p><strong><?php echo htmlspecialchars($trace['file'], ENT_NOQUOTES, 'UTF-8') . "(" . $trace ['line'] . ")" ?></strong></p> 00020 <p>La excepción se ha generado en el archivo <span class="italic"><?php echo $trace['file'] ?></span> en la línea: <span class="italic"><?php echo $trace['line'] ?></span>:</p> 00021 00022 <ul class="exception_trace"> 00023 <?php 00024 $lines = file ( $trace ['file'] ); 00025 $start = ($trace ['line'] - 4) < 0 ? 0 : $trace ['line'] - 4; 00026 $end = ($trace ['line'] + 2) > count ( $lines ) - 1 ? count ( $lines ) - 1 : $trace ['line'] + 2; 00027 ?> 00028 00029 <?php for($i = $start; $i <= $end; $i ++): ?> 00030 <li <?php if ($i == $trace ['line'] - 1): ?> class="exception_highlight" <?php endif; ?>"> 00031 <strong><?php echo ($i + 1) ?></strong> <?php echo htmlspecialchars($lines [$i], ENT_NOQUOTES, 'UTF-8') ?> 00032 00033 </li> 00034 <?php endfor; ?> 00035 </ul> 00036 00037 <br /> 00038 <?php endif; ?> 00039 <?php endforeach; ?> 00040 00041 <table><thead><tr> 00042 <th>#</th><th>Fichero (línea)</th><th>Función</th> 00043 </tr></thead> 00044 <tbody> 00045 <?php $lines = explode("\n",$e->getTraceAsString()); 00046 $files = get_included_files(); 00047 foreach ($lines as $line){ 00048 $line = explode(" ",$line);?> 00049 <tr><td><?php echo $line[0] ?></td><td><?php echo $line[1] ?></td><td><?php if(isset($line[2])) echo $line[2] ?></td></tr> 00050 <?php } ?> 00051 </tbody> 00052 </table> 00053 </div> 00054 00055 <div class="exception_information"> 00056 <h2>Información Adicional</h2> 00057 <strong>En producción:</strong> <?php echo PRODUCTION ? 'Sí' : 'No' ?><br /> 00058 <strong>Ubicación actual:</strong> <?php echo $route ?><br /> 00059 <strong>Librerías:</strong> <?php //echo $boot['modules']['libs'] ?><br /> 00060 <strong>Server: </strong> <?php echo $_SERVER['SERVER_SOFTWARE'] ?><br /> 00061 <strong>IP Server: </strong> <?php echo $_SERVER['SERVER_ADDR'] ?><br /> 00062 <strong>IP Visitante: </strong> <?php echo $_SERVER['REMOTE_ADDR'] ?><br /> 00063 </div> 00064 00065 <table><thead><tr> 00066 <th><h3><?php echo round((microtime(1)-START_TIME),4),' seg.'?></h3>Tiempo</th><th><h3><?php echo number_format(memory_get_usage() / 1048576, 2),' MB';?></h3>Memoria Usada</th><th><h3><?php echo count($files) ?> ficheros</h3>Includes</th> 00067 </tr> 00068 <tr> 00069 <th><h3><?php echo ini_get('max_execution_time'),' seg.'?></h3>Tiempo Máximo PHP</th><th><h3><?php echo ini_get('memory_limit');?></h3>Memoria PHP</th><th><h3><?php echo PHP_VERSION?></h3>Versión PHP</th> 00070 </tr> 00071 </thead> 00072 </table> 00073 <?php //var_dump($files); ?> 00074 00075 </div> 00076 <?php include APP_PATH.'views/_shared/partials/kumbia/footer.phtml'?> 00077 </body> 00078 </html>