/
login.tpl.php
73 lines (71 loc) · 2.75 KB
/
login.tpl.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
include_once(INCLUDE_DIR.'staff/login.header.php');
$info = ($_POST && $errors)?Format::htmlchars($_POST):array();
?>
<div id="background-compat"></div>
<div id="loginBox">
<div class="tape"></div>
<div id="blur">
<div id="background"></div>
</div>
<h1 id="logo"><a href="index.php">
<span class="valign-helper"></span>
<img src="logo.php?login" alt="osTicket :: <?php echo __('Staff Control Panel');?>" />
</a></h1>
<h3><?php echo Format::htmlchars($msg); ?></h3>
<div class="banner"><small><?php echo ($content) ? Format::display($content->getLocalBody()) : ''; ?></small></div>
<form action="login.php" method="post">
<?php csrf_token(); ?>
<input type="hidden" name="do" value="scplogin">
<fieldset>
<input type="text" name="userid" id="name" value="<?php
echo $info['userid']; ?>" placeholder="<?php echo __('Email or Username'); ?>"
autofocus autocorrect="off" autocapitalize="off">
<input type="password" name="passwd" id="pass" placeholder="<?php echo __('Password'); ?>" autocorrect="off" autocapitalize="off">
<?php if ($show_reset && $cfg->allowPasswordReset()) { ?>
<h3 style="display:inline"><a href="pwreset.php"><?php echo __('Forgot my password'); ?></a></h3>
<?php } ?>
<button class="submit button pull-right" type="submit" name="submit"><i class="icon-signin"></i>
<?php echo __('Log In'); ?>
</button>
</fieldset>
</form>
<?php
$ext_bks = array();
foreach (StaffAuthenticationBackend::allRegistered() as $bk)
if ($bk instanceof ExternalAuthentication)
$ext_bks[] = $bk;
if (count($ext_bks)) { ?>
<div class="or">
<hr/>
</div><?php
foreach ($ext_bks as $bk) { ?>
<div class="external-auth"><?php $bk->renderExternalLink(); ?></div><?php
}
} ?>
<div id="company">
<div class="content">
<?php echo __('Copyright'); ?> © <?php echo Format::htmlchars($ost->company) ?: date('Y'); ?>
</div>
</div>
</div>
<div id="poweredBy"><?php echo __('Powered by'); ?>
<a href="http://www.osticket.com" target="_blank">
<img alt="osTicket" src="images/osticket-grey.png" class="osticket-logo">
</a>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
if (undefined === window.getComputedStyle(document.documentElement).backgroundBlendMode) {
document.getElementById('background-compat').style.display = 'block';
document.getElementById('loginBox').style.backgroundColor = 'white';
}
});
</script>
<!--[if IE]>
<style>
#loginBox:after { background-color: white !important; }
</style>
<![endif]-->
</body>
</html>