<?php
$user = false;
if ((isset($_POST["username"]) AND $_POST["username"]) OR (isset($_GET["username"]) AND $_GET["username"])) {
$username = (isset($_POST["username"]) AND $_POST["username"])? htmlspecialchars($_POST["username"]) : htmlspecialchars($_GET["username"]);
require_once(PATH_MODELS.$page.".php");
if ($user)
require_once(PATH_VIEWS.$page.".php");
else
require_once(PATH_VIEWS."accueil.php");
}