2025-10-10 08:57:59 +02:00
|
|
|
<?php
|
2025-10-10 10:21:27 +02:00
|
|
|
require_once __DIR__."/../controller/AuthController.php";
|
2025-10-10 08:57:59 +02:00
|
|
|
|
2025-10-10 10:21:27 +02:00
|
|
|
define("BASE_URL","/contribEvo/");
|
2025-10-10 08:57:59 +02:00
|
|
|
|
2025-10-10 10:21:27 +02:00
|
|
|
//index.php?route=maRoute¶m1=truc
|
|
|
|
// => receive get route
|
2025-10-10 08:57:59 +02:00
|
|
|
|
2025-10-10 10:21:27 +02:00
|
|
|
$route = isset($_GET["route"])? $_GET["route"] : null;
|
|
|
|
|
|
|
|
/*
|
|
|
|
if (isset($_GET["route"])) {
|
|
|
|
$route = $_GET["route"]
|
|
|
|
} else {
|
|
|
|
$route = null;
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
if ($route=="helloworld") {
|
|
|
|
$ctr = new AuthController();
|
|
|
|
$ctr->helloWorld();
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($route=="displayConnForm") {
|
|
|
|
$ctr = new AuthController();
|
|
|
|
$ctr->displayConnForm();
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($route=="handleConnForm") {
|
|
|
|
$ctr = new AuthController();
|
|
|
|
$ctr->handleConnForm();
|
|
|
|
exit();
|
|
|
|
}
|