mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-11-01 19:54:16 +01:00
This exception should be fired when the OS restricts the web user from executing certain actions. Also the template for errors has been modified so it displays the action and the target that was prevented. refs #4092
33 lines
993 B
PHTML
Executable File
33 lines
993 B
PHTML
Executable File
<div class="alert alert-error fullpage_infobox">
|
|
|
|
<h1>An error occurred</h1>
|
|
<p>
|
|
<?php echo $this->message ?>
|
|
</p>
|
|
|
|
<?php if (isset($this->exception)): ?>
|
|
<div style="text-align:left;">
|
|
<h3>Exception information:</h3>
|
|
|
|
<p>
|
|
<b>Message:</b> <?php echo $this->exception->getMessage() ?>
|
|
<?php if (isset($this->exception->action)): ?>
|
|
<br/><b>Action</b>: <?= $this->exception->action; ?>
|
|
<?php endif ?>
|
|
<?php if (isset($this->exception->action)): ?>
|
|
<br/><b>Target</b>: <?= $this->exception->target; ?>
|
|
<?php endif ?>
|
|
|
|
</p>
|
|
|
|
<h3>Stack trace:</h3>
|
|
<pre style="font-family: monospace"><?php echo $this->exception->getTraceAsString() ?>
|
|
</pre>
|
|
|
|
<h3>Request Parameters:</h3>
|
|
<pre><?php echo var_export(\Zend_Controller_Front::getInstance()->getParams(), true) ?>
|
|
</pre>
|
|
</div>
|
|
<?php endif ?>
|
|
</div>
|