Newer
Older
Andreas Åkre Solberg
committed
<?php
Andreas Åkre Solberg
committed
$this->data['header'] = $this->t('error_header');
Andreas Åkre Solberg
committed
$this->data['icon'] = 'bomb_l.png';
Andreas Åkre Solberg
committed
$this->includeAtTemplateBase('includes/header.php');
?>
Andreas Åkre Solberg
committed
<h2><?php
Andreas Åkre Solberg
committed
echo $this->t('title_' . $this->data['errorcode']);
Andreas Åkre Solberg
committed
?></h2>
<?php
$descr = $this->t('descr_' . $this->data['errorcode'], $this->data['parameters']);
if($descr) {
echo htmlspecialchars($descr);
}
?>
<?php
/* Print out the track id if it exists. */
if(array_key_exists('trackid', $this->data)) {
?>
<div class="trackidtext">
Andreas Åkre Solberg
committed
<?php echo $this->t('report_trackid'); ?>
<span class="trackid"><?php echo $this->data['trackid']; ?></span>
<?php
}
?>
<?php
/* Print out exception only if the exception is available. */
if (array_key_exists('showerrors', $this->data) && $this->data['showerrors']) {
Andreas Åkre Solberg
committed
<h2><?php echo $this->t('debuginfo_header'); ?></h2>
<p><?php echo $this->t('debuginfo_text'); ?></p>
<div style="border: 1px solid #eee; padding: 1em; font-size: x-small">
Andreas Åkre Solberg
committed
<p style="margin: 1px"><?php echo htmlentities($this->data['exceptionmsg']); ?></p>
<pre style=" padding: 1em; font-family: monospace; "><?php echo htmlentities($this->data['exceptiontrace']); ?>
</pre>
<?php
}
?>
Andreas Åkre Solberg
committed
<?php
/* Add error report submit section if we have a valid technical contact. 'errorreportaddress' will only be set if
* the technical contact email address has been set.
*/
Andreas Åkre Solberg
committed
if (!empty($this->data['errorreportaddress'])) {
?>
Andreas Åkre Solberg
committed
<h2><?php echo $this->t('report_header'); ?></h2>
<form action="<?php echo htmlspecialchars($this->data['errorreportaddress']); ?>" method="post">
Andreas Åkre Solberg
committed
Andreas Åkre Solberg
committed
<p><?php echo $this->t('report_text'); ?></p>
<p><?php echo $this->t('report_email'); ?> <input type="text" size="25" name="email" value="<?php echo($this->data['email']); ?>" />
Andreas Åkre Solberg
committed
<textarea style="width: 300px; height: 100px" name="text"><?php echo $this->t('report_explain'); ?></textarea>
</p><p>
<input type="hidden" name="version" value="<?php echo htmlspecialchars($this->data['version']); ?>" />
<input type="hidden" name="trackid" value="<?php echo htmlspecialchars($this->data['trackid']); ?>" />
<input type="hidden" name="exceptionmsg" value="<?php echo htmlspecialchars($this->data['exceptionmsg']); ?>" />
<input type="hidden" name="exceptiontrace" value="<?php echo htmlspecialchars($this->data['exceptiontrace']); ?>" />
<input type="hidden" name="errorcode" value="<?php echo htmlspecialchars($this->data['errorcode']); ?>" />
<input type="hidden" name="parameters" value="<?php echo htmlspecialchars(var_export($this->data['parameters'], TRUE)); ?>" />
<input type="hidden" name="url" value="<?php echo htmlspecialchars($this->data['url']); ?>" />
Andreas Åkre Solberg
committed
<input type="submit" name="send" value="<?php echo $this->t('report_submit'); ?>" />
</p>
</form>
Andreas Åkre Solberg
committed
<?php
}
?>
Andreas Åkre Solberg
committed
<h2 style="clear: both"><?php echo $this->t('howto_header'); ?></h2>
<p><?php echo $this->t('howto_text'); ?></p>
Andreas Åkre Solberg
committed
<?php $this->includeAtTemplateBase('includes/footer.php'); ?>