login.php (889B)
1 <?php
2
3 function show_login_form(string $target) {
4
5 ?>
6
7 <form action="/" target="_self" method="post">
8 <label for="user"><?php echo $GLOBALS["i18n_user"]; ?></label>
9 <input id="user" name="user" type="text">
10 <label for="pass"><?php echo $GLOBALS["i18n_pass"]; ?></label>
11 <input id="pass" name="pass" type="password">
12 <input
13 id="action"
14 name="action"
15 type="hidden"
16 value="<?php echo $target; ?>"
17 >
18 <label for="cookie"><?php echo $GLOBALS["i18n_cookie"]; ?></label>
19 <select id="cookie" name="cookie">
20 <option value="0">
21 <?php echo $GLOBALS["i18n_cookie_session"]; ?>
22 </option>
23 <option value="30">
24 <?php echo $GLOBALS["i18n_cookie_long"]; ?>
25 </option>
26 </select>
27 <input type="submit" value="<?php echo $GLOBALS["i18n_login"]; ?>">
28 </form>
29
30 <?php
31
32 } // function
33
34 ?>
35