|
1 | 1 | <?php
|
2 | 2 | xhtmlHeaders(__FILE__, translate('Login'));
|
| 3 | +getBodyTopHTML(); |
| 4 | +echo getNavBarHTML(); |
3 | 5 | ?>
|
4 |
| -<body> |
5 |
| -<?php echo getNavBarHTML(); ?> |
6 |
| - <div class="container"> |
| 6 | + <div class="container"> |
7 | 7 | <?php
|
8 | 8 | if ( defined('ZM_OPT_USE_AUTH') and ZM_OPT_USE_AUTH ) {
|
9 | 9 | ?>
|
10 |
| - <form class="center-block" name="loginForm" id="loginForm" method="post" action="?view=login"> |
11 |
| - <input type="hidden" name="action" value="login"/> |
| 10 | + <form class="center-block" name="loginForm" id="loginForm" method="post" action="?view=login"> |
| 11 | + <input type="hidden" name="action" value="login"/> |
12 | 12 | <input type="hidden" name="postLoginQuery" value="<?php echo isset($_SESSION['postLoginQuery']) ? validHtmlStr($_SESSION['postLoginQuery']) : ''; ?>" />
|
13 | 13 |
|
14 |
| - <div id="loginError" class="hidden alarm" role="alert"> |
15 |
| - <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> |
16 |
| - Invalid username or password. |
17 |
| - </div> |
| 14 | + <div id="loginError" class="hidden alarm" role="alert"> |
| 15 | + <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span> |
| 16 | + Invalid username or password. |
| 17 | + </div> |
18 | 18 |
|
19 |
| - <div id="loginform"> |
| 19 | + <div id="loginform"> |
20 | 20 |
|
21 | 21 | <h1><i class="material-icons md-36">account_circle</i> <?php echo validHtmlStr(ZM_WEB_TITLE) . ' ' . translate('Login') ?></h1>
|
22 |
| - |
23 |
| - <label for="inputUsername" class="sr-only"><?php echo translate('Username') ?></label> |
24 |
| - <input type="text" id="inputUsername" name="username" class="form-control" autocapitalize="none" placeholder="Username" required autofocus autocomplete="username"/> |
25 |
| - |
26 |
| - <label for="inputPassword" class="sr-only"><?php echo translate('Password') ?></label> |
27 |
| - <input type="password" id="inputPassword" name="password" class="form-control" placeholder="Password" required autocomplete="current-password"/> |
| 22 | + <label for="inputUsername" class="sr-only"><?php echo translate('Username') ?></label> |
| 23 | + <input type="text" id="inputUsername" name="username" class="form-control" autocapitalize="none" placeholder="Username" required autofocus autocomplete="username"/> |
| 24 | + |
| 25 | + <label for="inputPassword" class="sr-only"><?php echo translate('Password') ?></label> |
| 26 | + <input type="password" id="inputPassword" name="password" class="form-control" placeholder="Password" required autocomplete="current-password"/> |
28 | 27 | <?php
|
29 | 28 | if (
|
30 | 29 | defined('ZM_OPT_USE_GOOG_RECAPTCHA')
|
|
35 | 34 | echo '<div class="g-recaptcha" data-sitekey="'.ZM_OPT_GOOG_RECAPTCHA_SITEKEY.'"></div>
|
36 | 35 | <script src="https://www.google.com/recaptcha/api.js" async defer></script>';
|
37 | 36 | } ?>
|
38 |
| - <button class="btn btn-lg btn-primary btn-block" type="submit"><?php echo translate('Login') ?></button> |
39 |
| - </div> |
40 |
| - </form> |
| 37 | + <button class="btn btn-lg btn-primary btn-block" type="submit"><?php echo translate('Login') ?></button> |
| 38 | + </div> |
| 39 | + </form> |
41 | 40 | <?php
|
42 | 41 | } else {
|
43 | 42 | ?>
|
|
52 | 51 | <?php
|
53 | 52 | } # end if ZM_OPT_AUTH
|
54 | 53 | ?>
|
55 |
| - </div> |
| 54 | + </div> |
56 | 55 | <?php xhtmlFooter() ?>
|
0 commit comments