1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
PHP_TP3/controllers/c_hello.php
2020-10-16 09:55:16 +02:00

11 lines
452 B
PHP

<?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");
}