You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.3 KiB
PHP
62 lines
1.3 KiB
PHP
<?
|
|
session_start();
|
|
|
|
require_once "version.php";
|
|
require_once "config.php";
|
|
require_once "functions.php";
|
|
|
|
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
|
|
|
|
$login = $_POST["login"];
|
|
$password = $_POST["password"];
|
|
|
|
if ($login && $password) {
|
|
if (authenticate_user($link, $login, $password)) {
|
|
header("Location: tt-rss.php");
|
|
}
|
|
}
|
|
|
|
?>
|
|
<html>
|
|
<head>
|
|
<title>Tiny Tiny RSS : Login</title>
|
|
<link rel="stylesheet" type="text/css" href="tt-rss.css">
|
|
<!--[if gte IE 5.5000]>
|
|
<script type="text/javascript" src="pngfix.js"></script>
|
|
<![endif]-->
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<form action="login.php" method="POST">
|
|
|
|
<table width='100%' height='100%' class="loginForm">
|
|
|
|
<tr><td align='center' valign='middle'>
|
|
|
|
<table class="innerLoginForm">
|
|
|
|
<tr><td valign="middle" align="center" colspan="2">
|
|
<img src="images/ttrss_logo.png" alt="logo">
|
|
</td></tr>
|
|
|
|
<tr><td align="right">Login:</td>
|
|
<td><input name="login"></td></tr>
|
|
<tr><td align="right">Password:</td>
|
|
<td><input type="password" name="password"></td></tr>
|
|
|
|
<tr><td colspan="2" align="center">
|
|
<input type="submit" class="button" value="Login">
|
|
</td></tr>
|
|
|
|
</table></td></tr>
|
|
</table>
|
|
|
|
</form>
|
|
|
|
<? db_close($link); ?>
|
|
|
|
</body>
|
|
</html>
|