<?php require("../lib/main.php");
if(isset($_POST['username'])){
User_Auth::login($_POST['username'], $_POST['password']);
}
if(User_Session::exists()){
echo(Template_Subsystem::parse_file("html/user/error/alreadyAuth", NULL, NULL));
} else {
echo(Template_Subsystem::parse_file("html/user/login", NULL, NULL));
}
// Control the output
$vars = array(
"title"=>"Login",
"content"=>$__system_output_manager__->get_text()
);
$__system_output_manager__->clean();
echo(Template_Subsystem::parse_file("html/page/article", $vars));
$vars = array(
"title"=>"See Also",
"content"=>Template_Subsystem::parse_file("html/page/extra/projectdetails")
);
echo(Template_Subsystem::parse_file("html/page/extra",$vars));
?>