ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
yubikeylogin.php
Go to the documentation of this file.
1<?php
2$this->data['header'] = $this->t('{authYubiKey:yubikey:header}');
3$this->data['autofocus'] = 'otp';
4
5$this->includeAtTemplateBase('includes/header.php');
6
7?>
8
9<?php
10if ($this->data['errorcode'] !== NULL) {
11?>
12 <div style="border-left: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; background: #f5f5f5">
13 <img src="/<?php echo $this->data['baseurlpath']; ?>resources/icons/experience/gtk-dialog-error.48x48.png" class="float-l" style="margin: 15px" alt="" />
14 <h2><?php echo $this->t('{login:error_header}'); ?></h2>
15 <p><b><?php echo $this->t($this->data['errorcodes']['title'][$this->data['errorcode']]); ?></b></p>
16 <p><?php echo $this->t($this->data['errorcodes']['descr'][$this->data['errorcode']]); ?></p>
17 </div>
18<?php
19}
20?>
21
22 <img style="float: right" src="<?php echo($this->data['logo_url']); ?>" alt="" />
23 <img style="clear: right; float: right" src="<?php echo($this->data['devicepic_url']); ?>" alt="YubiKey" />
24
25
26 <h2 style=""><?php echo $this->t('{authYubiKey:yubikey:header}'); ?></h2>
27
28 <form action="?" method="post" name="f">
29
30 <p><?php echo $this->t('{authYubiKey:yubikey:intro}'); ?></p>
31
32 <p><input id="otp" style="border: 1px solid #ccc; background: #eee; padding: .5em; font-size: medium; width: 70%; color: #aaa" type="text" tabindex="2" name="otp" /></p>
33
34
35
36
37<?php
38foreach ($this->data['stateparams'] as $name => $value) {
39 echo('<input type="hidden" name="' . htmlspecialchars($name) . '" value="' . htmlspecialchars($value) . '" />');
40}
41?>
42
43 </form>
44
45<?php
46
47$this->includeAtTemplateBase('includes/footer.php');
An exception for terminatinating execution or to throw for unit testing.
input
Definition: langcheck.php:166
$this data['header']
Definition: yubikeylogin.php:2