]>
git.wh0rd.org - tt-rss.git/blob - login.php
4 require_once "version.php";
5 require_once "config.php";
6 require_once "functions.php";
8 $link = db_connect(DB_HOST
, DB_USER
, DB_PASS
, DB_NAME
);
10 $login = $_POST["login"];
11 $password = $_POST["password"];
13 if ($login && $password) {
14 if (authenticate_user($link, $login, $password)) {
15 header("Location: tt-rss.php");
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
>
27 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
32 <form action
="login.php" method
="POST">
34 <table width
='100%' height
='100%' class="loginForm">
36 <tr
><td align
='center' valign
='middle'>
38 <table
class="innerLoginForm">
40 <tr
><td valign
="middle" align
="center" colspan
="2">
41 <img src
="images/ttrss_logo.png" alt
="logo">
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
>
49 <tr
><td colspan
="2" align
="center">
50 <input type
="submit" class="button" value
="Login">
58 <?
db_close($link); ?
>