Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * @var \App\View\AppView $this * @var string $message */ use Cake\Core\Config..
Decoded Output download
<?php
/**
* @var \App\View\AppView $this
* @var string $message
*/
use Cake\Core\Configure;
use Cake\Error\Debugger;
$this->layout = 'error';
$this->assign('pageClass', 'error-500');
$this->assign('title', __('Error'));
?>
<div class="grid">
<div class="row">
<h2><?= __d('cake', 'An Internal Error Has Occurred') ?></h2>
<p class="error">
<?= h($message) ?>
</p>
</div>
<?php if (Configure::read('debug')): ?>
<div class="row" style="max-width:960px;padding:1em;margin-bottom:2em;background:#efefef;font-family: monospace;">
<?php if (!empty($error->queryString)) : ?>
<p class="notice">
<strong>SQL Query: </strong>
<pre><?= h($error->queryString) ?></pre>
</p>
<?php endif; ?>
<?php if (!empty($error->params)) : ?>
<strong>SQL Query Params: </strong>
<?php Debugger::dump($error->params) ?>
<?php endif; ?>
<?php if ($error instanceof Error) : ?>
<strong>Error in: </strong>
<pre>
<?= sprintf('%s, line %s', str_replace(ROOT, 'ROOT', $error->getFile()), $error->getLine()) ?>
<?php endif; ?>
<?php
echo $this->element('auto_table_warning');
if (extension_loaded('xdebug')): xdebug_print_function_stack(); endif;
?>
</pre>
<?php endif; ?>
</div>
</div>
Did this file decode correctly?
Original Code
<?php
/**
* @var \App\View\AppView $this
* @var string $message
*/
use Cake\Core\Configure;
use Cake\Error\Debugger;
$this->layout = 'error';
$this->assign('pageClass', 'error-500');
$this->assign('title', __('Error'));
?>
<div class="grid">
<div class="row">
<h2><?= __d('cake', 'An Internal Error Has Occurred') ?></h2>
<p class="error">
<?= h($message) ?>
</p>
</div>
<?php if (Configure::read('debug')): ?>
<div class="row" style="max-width:960px;padding:1em;margin-bottom:2em;background:#efefef;font-family: monospace;">
<?php if (!empty($error->queryString)) : ?>
<p class="notice">
<strong>SQL Query: </strong>
<pre><?= h($error->queryString) ?></pre>
</p>
<?php endif; ?>
<?php if (!empty($error->params)) : ?>
<strong>SQL Query Params: </strong>
<?php Debugger::dump($error->params) ?>
<?php endif; ?>
<?php if ($error instanceof Error) : ?>
<strong>Error in: </strong>
<pre>
<?= sprintf('%s, line %s', str_replace(ROOT, 'ROOT', $error->getFile()), $error->getLine()) ?>
<?php endif; ?>
<?php
echo $this->element('auto_table_warning');
if (extension_loaded('xdebug')): xdebug_print_function_stack(); endif;
?>
</pre>
<?php endif; ?>
</div>
</div>
Function Calls
None |
Stats
MD5 | 8b9a52964f7753d4962002a94c68c40a |
Eval Count | 0 |
Decode Time | 81 ms |