2010-10-06 15:53:49 +00:00
|
|
|
<?php
|
2010-10-07 14:20:22 +00:00
|
|
|
require ("config.php");
|
|
|
|
|
|
2010-10-06 15:53:49 +00:00
|
|
|
session_start();
|
|
|
|
|
//check to see if the user already has an open session
|
|
|
|
|
if (($_SESSION[user_name] != "") && ($_SESSION[password] != ""))
|
|
|
|
|
{
|
|
|
|
|
header("Location:$_SESSION[redirect]");
|
|
|
|
|
exit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//check to see if cookies have been set previously
|
|
|
|
|
if(($lr_user != "") && ($lr_pass != ""))
|
|
|
|
|
{
|
2010-10-07 14:20:22 +00:00
|
|
|
header("Location:$base_dir/redirect.php");
|
2010-10-06 15:53:49 +00:00
|
|
|
exit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//if neither is true, redirect to login
|
2010-10-07 14:20:22 +00:00
|
|
|
header("Location:$base_dir/login.php");
|
2010-10-06 15:53:49 +00:00
|
|
|
?>
|
|
|
|
|
|