Exemple #1
0
<?php

require_once dirname(__FILE__) . "/common/HTMLview.php";
require_once dirname(__FILE__) . "/src/controller/LoginController.php";
session_start();
// Making the session contain info of what browser started the session, to prevent hijacking of session.
if (!isset($_SESSION["httpAgent"])) {
    $_SESSION["httpAgent"] = $_SERVER["HTTP_USER_AGENT"];
}
$view = new HTMLView();
$ctrl = new \controller\LoginController();
$htmlBody = $ctrl->checkActions();
$view->echoHTML($htmlBody);