12 lines
310 B
PHP
12 lines
310 B
PHP
<?php
|
|
|
|
$user = false;
|
|
if (isset($_POST["username"]) AND $_POST["username"]) {
|
|
$username = htmlspecialchars($_POST["username"]);
|
|
require_once(PATH_MODELS.$page.".php");
|
|
if ($user)
|
|
require_once(PATH_VIEWS.$page.".php");
|
|
else
|
|
require_once(PATH_VIEWS."accueil.php");
|
|
}
|
|
|