<?
/* filename: login_check.php
* project: movie database
* author: lex alexander, christian koerner
* originally coded: 17.05.2003
* last modified: 23.06.2003
* version V0.1
* usage: checks if data for login is correct
*/
include("../inc/conn_data.inc");
include("../language/$lang.inc");
include("../inc/functions.inc");
// password gets encryptetd
$pass=md5($_POST['pass']);
$uname=$_POST['uname'];
// cokkie is set
if(authorise($uname, $pass)== false)
{
xhtmlTitle(LOGIN_TITLE,WAIT_ERR,"login.php");
?>
<div class = "full-message"><?=LOGIN_FAIL;?></div>
<?
}
else
{
xhtmlTitle(PMDB,WAIT_SUC,"../index.php");
?>
<div class = "full-message"><?=LOGIN_SUC;?></div>
<?
}