]>
Commit | Line | Data |
---|---|---|
46a1969d AD |
1 | <? |
2 | session_start(); | |
3 | ||
4 | require_once "version.php"; | |
5 | require_once "config.php"; | |
c8437f35 | 6 | require_once "functions.php"; |
46a1969d | 7 | |
c8437f35 AD |
8 | $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME); |
9 | ||
10 | $login = $_POST["login"]; | |
11 | $password = $_POST["password"]; | |
12 | ||
13 | if ($login && $password) { | |
14 | if (authenticate_user($link, $login, $password)) { | |
15 | header("Location: tt-rss.php"); | |
16 | } | |
17 | } | |
46a1969d AD |
18 | |
19 | ?> | |
20 | <html> | |
21 | <head> | |
22 | <title>Tiny Tiny RSS : Login</title> | |
23 | <link rel="stylesheet" type="text/css" href="tt-rss.css"> | |
24 | <!--[if gte IE 5.5000]> | |
25 | <script type="text/javascript" src="pngfix.js"></script> | |
26 | <![endif]--> | |
27 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
28 | </head> | |
29 | ||
30 | <body> | |
31 | ||
c8437f35 AD |
32 | <form action="login.php" method="POST"> |
33 | ||
46a1969d AD |
34 | <table width='100%' height='100%' class="loginForm"> |
35 | ||
36 | <tr><td align='center' valign='middle'> | |
37 | ||
38 | <table class="innerLoginForm"> | |
39 | ||
40 | <tr><td valign="middle" align="center" colspan="2"> | |
41 | <img src="images/ttrss_logo.png" alt="logo"> | |
42 | </td></tr> | |
43 | ||
44 | <tr><td align="right">Login:</td> | |
45 | <td><input name="login"></td></tr> | |
46 | <tr><td align="right">Password:</td> | |
47 | <td><input type="password" name="password"></td></tr> | |
c8437f35 AD |
48 | |
49 | <tr><td colspan="2" align="center"> | |
50 | <input type="submit" class="button" value="Login"> | |
51 | </td></tr> | |
46a1969d AD |
52 | |
53 | </table></td></tr> | |
54 | </table> | |
55 | ||
c8437f35 AD |
56 | </form> |
57 | ||
58 | <? db_close($link); ?> | |
59 | ||
46a1969d AD |
60 | </body> |
61 | </html> |