2007-01-02 04:41:22 +03:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* This file is part of FEED ON FEEDS - http://feedonfeeds.com/
|
|
|
|
*
|
|
|
|
* login.php - username / password entry
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (C) 2004-2007 Stephen Minutillo
|
|
|
|
* steve@minutillo.com - http://minutillo.com/steve/
|
|
|
|
*
|
|
|
|
* Distributed under the GPL - see LICENSE
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
ob_start();
|
|
|
|
|
|
|
|
$fof_no_login = true;
|
|
|
|
|
|
|
|
include_once("fof-main.php");
|
2007-06-29 07:19:23 +04:00
|
|
|
|
|
|
|
fof_set_content_type();
|
2007-01-02 04:41:22 +03:00
|
|
|
|
|
|
|
if(isset($_POST["user_name"]) && isset($_POST["user_password"]))
|
|
|
|
{
|
2007-06-06 07:34:15 +04:00
|
|
|
if(fof_authenticate($_POST['user_name'], md5($_POST['user_password'] . $_POST['user_name'])))
|
2007-01-02 04:41:22 +03:00
|
|
|
{
|
|
|
|
Header("Location: .");
|
2007-06-10 11:06:59 +04:00
|
|
|
exit();
|
2007-01-02 04:41:22 +03:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$failed = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
2011-05-24 06:04:04 +04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
2007-01-02 04:41:22 +03:00
|
|
|
|
|
|
|
<head>
|
|
|
|
<title>Feed on Feeds - Log on</title>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
body
|
|
|
|
{
|
2007-06-23 10:16:29 +04:00
|
|
|
font-family: georgia;
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
div
|
|
|
|
{
|
|
|
|
background: #eee;
|
|
|
|
border: 1px solid black;
|
|
|
|
width: 20em;
|
|
|
|
margin: 5em auto;
|
|
|
|
padding: 1.5em;
|
2007-01-02 04:41:22 +03:00
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2007-06-23 10:16:29 +04:00
|
|
|
<div>
|
2007-01-02 04:41:22 +03:00
|
|
|
<form action="login.php" method="POST" style="display: inline">
|
|
|
|
<center><a href="http://feedonfeeds.com/" style="font-size: 20px; font-family: georgia;">Feed on Feeds</a></center><br>
|
|
|
|
User name:<br><input type=string name=user_name style='font-size: 16px'><br><br>
|
|
|
|
Password:<br><input type=password name=user_password style='font-size: 16px'><br><br>
|
|
|
|
<input type=submit value="Log on!" style='font-size: 16px; float: right;'><br>
|
|
|
|
<?php if($failed) echo "<br><center><font color=red><b>Incorrect user name or password</b></font></center>"; ?>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|