Update Vcs-* headers.
[debian/quickappoint.git] / login.php
1 <?php
2 /*
3 Description:
4         The login page
5 Optional variable:
6         $errormsg ... if this is set it is shown above the login box.
7 */
8
9 require_once(dirname(__FILE__) . '/lib/prepend.php');
10 require_once(dirname(__FILE__) . '/lib/html.php'); // ????
11 ?>
12 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
13
14 <html>
15 <head>
16         <title>QuickAppoint</title>
17         <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
18         <meta name="Author" content="Toastfreeware">
19         <link rel="stylesheet" type="text/css" href="css/default.css">
20         <!-- <link rel="icon" href="icons/icon.png" type="image/png"> -->
21 </head>
22 <body>
23
24 <h1><?php echo htmlspecialchars(_("Welcome to QuickAppoint!")); ?></h1>
25
26 <?php
27         if (isset($_SESSION['errormsg'])) echo html_element('p', array('class'=>'hint'), $_SESSION['errormsg']);
28         unset($_SESSION['errormsg']);
29 ?>
30
31 <p><?php echo htmlspecialchars(_("Please log in:")); ?></p>
32
33 <form method="post" action="cgi-bin/auth.php">
34 <ul>
35         <li><?php echo htmlspecialchars(_("username")); ?>: <input type="text" name="username" size="16" maxlength="16"/></li>
36         <li><?php echo htmlspecialchars(_("password")); ?>: <input type="password" name="password" size="16" maxlength="32"/></li>
37 </ul>
38 <input type="submit" value="<?php echo htmlspecialchars(_("login")); ?>"/>
39 </form>
40
41 </body>
42 </html>