mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-21 20:09:12 -04:00
@@ -1,6 +1,6 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||
<? $error_id = uniqid("error") ?>
|
||||
<? if (!function_exists("t")) { function t($msg) { return $msg; } } ?>
|
||||
<?php $error_id = uniqid("error") ?>
|
||||
<?php if (!function_exists("t")) { function t($msg) { return $msg; } } ?>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
@@ -149,7 +149,7 @@
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<? try { $user = identity::active_user(); } catch (Exception $e) { } ?>
|
||||
<?php try { $user = identity::active_user(); } catch (Exception $e) { } ?>
|
||||
<div class="big_box" id="framework_error">
|
||||
<div class="crashlogo">
|
||||
:-(
|
||||
@@ -198,35 +198,35 @@
|
||||
</p>
|
||||
|
||||
<div class="source">
|
||||
<? if (Kohana_Exception::$source_output and $source_code = Kohana_Exception::debug_source($file, $line)): ?><code><? foreach ($source_code as $num => $row): ?><span class="line <?= ($num == $line) ? "highlight" : ""?>"><span class="number"><?= $num ?></span><?= htmlspecialchars($row, ENT_NOQUOTES, Kohana::CHARSET) ?></span><? endforeach ?></code>
|
||||
<? endif ?>
|
||||
<?php if (Kohana_Exception::$source_output and $source_code = Kohana_Exception::debug_source($file, $line)): ?><code><?php foreach ($source_code as $num => $row): ?><span class="line <?= ($num == $line) ? "highlight" : ""?>"><span class="number"><?= $num ?></span><?= htmlspecialchars($row, ENT_NOQUOTES, Kohana::CHARSET) ?></span><?php endforeach ?></code>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<? if (Kohana_Exception::$trace_output): ?>
|
||||
<? foreach (Kohana_Exception::trace($trace) as $i => $step): ?>
|
||||
<?php if (Kohana_Exception::$trace_output): ?>
|
||||
<?php foreach (Kohana_Exception::trace($trace) as $i => $step): ?>
|
||||
<li class="snippet">
|
||||
<p>
|
||||
<span class="file">
|
||||
<? if ($step["file"]): $source_id = "$error_id.source.$i" ?>
|
||||
<? if (Kohana_Exception::$source_output and $step["source"]): ?>
|
||||
<?php if ($step["file"]): $source_id = "$error_id.source.$i" ?>
|
||||
<?php if (Kohana_Exception::$source_output and $step["source"]): ?>
|
||||
<a href="#<?= $source_id ?>" onclick="return koggle('<?= $source_id ?>')"><?= Kohana_Exception::debug_path($step["file"])?>[ <?= $step["line"]?> ]</a>
|
||||
<? else: ?>
|
||||
<?php else: ?>
|
||||
<span class="file"><?= Kohana_Exception::debug_path($step["file"])?>[ <?= $step["line"]?> ]</span>
|
||||
<? endif ?>
|
||||
<? else: ?>
|
||||
<?php endif ?>
|
||||
<?php else: ?>
|
||||
{<?= t("PHP internal call")?>}
|
||||
<? endif?>
|
||||
<?php endif?>
|
||||
</span>
|
||||
»
|
||||
<?= $step["function"]?>(<? if ($step["args"]): $args_id = "$error_id.args.$i" ?>
|
||||
<?= $step["function"]?>(<?php if ($step["args"]): $args_id = "$error_id.args.$i" ?>
|
||||
<a href="#<?= $args_id ?>" onclick="return koggle('<?= $args_id ?>')"><?= t("arguments")?></a>
|
||||
<? endif?>)
|
||||
<?php endif?>)
|
||||
</p>
|
||||
<? if (isset($args_id)): ?>
|
||||
<?php if (isset($args_id)): ?>
|
||||
<div id="<?= $args_id ?>" class="args collapsed">
|
||||
<table cellspacing="0">
|
||||
<? foreach ($step["args"] as $name => $arg): ?>
|
||||
<?php foreach ($step["args"] as $name => $arg): ?>
|
||||
<tr>
|
||||
<td class="key">
|
||||
<pre><?= $name?></pre>
|
||||
@@ -235,57 +235,57 @@
|
||||
<pre><?= Kohana_Exception::safe_dump($arg, $name) ?></pre>
|
||||
</td>
|
||||
</tr>
|
||||
<? endforeach?>
|
||||
<?php endforeach?>
|
||||
</table>
|
||||
</div>
|
||||
<? endif?>
|
||||
<? if (Kohana_Exception::$source_output and $step["source"] and isset($source_id)): ?>
|
||||
<pre id="<?= $source_id ?>" class="source collapsed"><code><? foreach ($step["source"] as $num => $row): ?><span class="line <?= ($num == $step["line"]) ? "highlight" : "" ?>"><span class="number"><?= $num ?></span><?= htmlspecialchars($row, ENT_NOQUOTES, Kohana::CHARSET) ?></span><? endforeach ?></code></pre>
|
||||
<? endif?>
|
||||
<?php endif?>
|
||||
<?php if (Kohana_Exception::$source_output and $step["source"] and isset($source_id)): ?>
|
||||
<pre id="<?= $source_id ?>" class="source collapsed"><code><?php foreach ($step["source"] as $num => $row): ?><span class="line <?= ($num == $step["line"]) ? "highlight" : "" ?>"><span class="number"><?= $num ?></span><?= htmlspecialchars($row, ENT_NOQUOTES, Kohana::CHARSET) ?></span><?php endforeach ?></code></pre>
|
||||
<?php endif?>
|
||||
</li>
|
||||
<? unset($args_id, $source_id) ?>
|
||||
<? endforeach?>
|
||||
<?php unset($args_id, $source_id) ?>
|
||||
<?php endforeach?>
|
||||
</ol>
|
||||
<? endif ?>
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
||||
<h2>
|
||||
<a href="#<?= $env_id = $error_id."environment" ?>" onclick="return koggle('<?= $env_id ?>')"><?= t("Environment")?></a>
|
||||
</h2>
|
||||
<div id="<?= $env_id ?>" class="content collapsed">
|
||||
<? $included = get_included_files()?>
|
||||
<?php $included = get_included_files()?>
|
||||
<h3><a href="#<?= $env_id = $error_id."environment_included" ?>" onclick="return koggle('<?= $env_id ?>')"><?= t("Included files")?></a>(<?= count($included)?>)</h3>
|
||||
<div id="<?= $env_id ?>" class="collapsed">
|
||||
<table cellspacing="0">
|
||||
<? foreach ($included as $file): ?>
|
||||
<?php foreach ($included as $file): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<pre><?= Kohana_Exception::debug_path($file)?></pre>
|
||||
</td>
|
||||
</tr>
|
||||
<? endforeach?>
|
||||
<?php endforeach?>
|
||||
</table>
|
||||
</div>
|
||||
<? $included = get_loaded_extensions()?>
|
||||
<?php $included = get_loaded_extensions()?>
|
||||
<h3><a href="#<?= $env_id = $error_id."environment_loaded" ?>" onclick="return koggle('<?= $env_id ?>')"><?= t("Loaded extensions")?></a>(<?= count($included)?>)</h3>
|
||||
<div id="<?= $env_id ?>" class="collapsed">
|
||||
<table cellspacing="0">
|
||||
<? foreach ($included as $file): ?>
|
||||
<?php foreach ($included as $file): ?>
|
||||
<tr>
|
||||
<td>
|
||||
<pre><?= Kohana_Exception::debug_path($file)?></pre>
|
||||
</td>
|
||||
</tr>
|
||||
<? endforeach?>
|
||||
<?php endforeach?>
|
||||
</table>
|
||||
</div>
|
||||
<? foreach (array("_SESSION", "_GET", "_POST", "_FILES", "_COOKIE", "_SERVER") as $var): ?>
|
||||
<? if ( empty($GLOBALS[$var]) OR ! is_array($GLOBALS[$var])) continue ?>
|
||||
<?php foreach (array("_SESSION", "_GET", "_POST", "_FILES", "_COOKIE", "_SERVER") as $var): ?>
|
||||
<?php if ( empty($GLOBALS[$var]) OR ! is_array($GLOBALS[$var])) continue ?>
|
||||
<h3><a href="#<?= $env_id = "$error_id.environment" . strtolower($var) ?>"
|
||||
onclick="return koggle('<?= $env_id ?>')">$<?= $var?></a></h3>
|
||||
<div id="<?= $env_id ?>" class="collapsed">
|
||||
<table cellspacing="0">
|
||||
<? foreach ($GLOBALS[$var] as $key => $value): ?>
|
||||
<?php foreach ($GLOBALS[$var] as $key => $value): ?>
|
||||
<tr>
|
||||
<td class="key">
|
||||
<code>
|
||||
@@ -296,10 +296,10 @@
|
||||
<pre><?= Kohana_Exception::safe_dump($value, $key) ?></pre>
|
||||
</td>
|
||||
</tr>
|
||||
<? endforeach?>
|
||||
<?php endforeach?>
|
||||
</table>
|
||||
</div>
|
||||
<? endforeach?>
|
||||
<?php endforeach?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user