<?php
/**
* Contains the Forum module for website
*
* PHP versions 5
*
* @category WebApplication
* @package PHP-Controller
* @author Eddie Tejeda <hide@address.com>
*/
class Login{
/**
* Contructor does nothing here
*
*/
function Login(){
}
function authenticate(){
if($_POST["username"] == "admin" && $_POST["password"] == "admin"){
$_SESSION['role'] = "admin";
header("Location: http://users.visudo.com/eddie/PHP-Controller/Administrator/");
}
else{
header("Location: http://users.visudo.com/eddie/PHP-Controller/Administrator/");
}
}
}
?>