<?php
include("include/session.php");
//echo $session->referrer;
if($session->logged_in){
	header( 'Location: index.php' ) ;
}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
        
<title><?php echo TITLE; ?></title>  
<link rel="stylesheet" type="text/css" href="style.css"/>   
<SCRIPT language="JavaScript">

function browserCheck()
{
   // var browserName=navigator.userAgent;
    //if(browserName.search(/firefox/i)==-1)       //if browser is not firefox, alert user
    //alert("SpotCast requires Firefox to work properly. Please open this site in Mozilla Firefox.");
}

</script>        
</head>
        
<body> 
    <div id="layout">
    <?php require('include/header.php'); ?>
        <div id="panel-left" class="box panel">
                 <br>
                <P class=veryLargeBlue>LOGIN</P> 
                <form action="process.php" method="POST">
                <table>
                <tr>
                <td>Username:   </td>
                <td>
                    <input type="text" title="username" name="user" size="20" align="middle" maxlength="100" value="<?php echo $form->value("user"); ?>">
                    <?php echo $form->error("user"); ?>   
                </td>
                </tr>
                <tr>
                <td>Password: </td>
                <td>
                    <input type="password" title="Password" name="pass" size="20" align="middle" maxlength="20" value="<?php echo $form->value("pass"); ?>">
                    <?php echo $form->error("pass"); ?>    
                </td>
                </tr>
                </table>
                    <input type="hidden" name="sublogin" value="1">
                    <br/><input type="submit" value="Login" style="width:130px">
                </form>
                <br><br>
             <!--  <P class=veryLargeBlue>FORGOT PASSWORD</P>                                                                                                                                  
                <form action="process.php" method="POST">
                Your Username:
                    <input type="text" title="username" name="passuser" maxlength="30" value="<?php echo $form->value("passuser"); ?>">
                    <?php // echo $form->error("passuser"); ?>
                    <input type="hidden" name="subforgot" id="subforgot" value="1"><br/>
                    <br><input type="submit" value="Get New Password" style="width:130px">
                </form>     -->
<?php
           /*     if(isset($_SESSION['forgotpass']))
                {
                   if($_SESSION['forgotpass']==true)
                   {
                       echo "A new password has been emailed to you!";
                   }
                   else
                   {
                        echo "Please contact system administrator to get a new password.";
                   }
                   unset($_SESSION['forgotpass']);
                }     */
?>

        </div> 
      
<SCRIPT language="JavaScript">
 browserCheck();              //Let's check browser version
</script>        
   
        <?php require('include/footer.php'); ?>
        </div>

</body>
</html>
