PHP Classes

File: web/SSO/modules/authX509/templates/X509error.php

Recommend this page to a friend!
  Classes of william amed   Raptor 2   web/SSO/modules/authX509/templates/X509error.php   Download  
File: web/SSO/modules/authX509/templates/X509error.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 1,332 bytes
 

Contents

Class file image Download
<?php
$this
->data['header'] = $this->t('{authX509:X509error:certificate_header}');

$this->includeAtTemplateBase('includes/header.php');

?>

<?php
if ($this->data['errorcode'] !== NULL) {
?>
<div style="border-left: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; background: #f5f5f5">
        <img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-error.48x48.png" class="float-l" style="margin: 15px " />
        <h2><?php echo $this->t('{login:error_header}'); ?></h2>
        <p><b><?php echo $this->t('{errors:title_' . $this->data['errorcode'] . '}'); ?></b></p>
        <p><?php echo $this->t('{errors:descr_' . $this->data['errorcode'] . '}'); ?></p>
    </div>
<?php
}
?>
<h2 style="break: both"><?php echo $this->t('{authX509:X509error:certificate_header}'); ?></h2>

    <p><?php echo $this->t('{authX509:X509error:certificate_text}'); ?></p>

    <a href="<?php echo htmlspecialchars(SimpleSAML_Utilities::selfURL()); ?>">
        <?php echo $this->t('{login:login_button}'); ?>
</a>

<?php

if(!empty($this->data['links'])) {
    echo
'<ul class="links" style="margin-top: 2em">';
    foreach(
$this->data['links'] AS $l) {
        echo
'<li><a href="' . htmlspecialchars($l['href']) . '">' . htmlspecialchars($this->t($l['text'])) . '</a></li>';
    }
    echo
'</ul>';
}




$this->includeAtTemplateBase('includes/footer.php');
?>