Première MAJ

Nottoyage code PHP,
Relocalisation des repertoires,
MVC amélioré sans PHP
Modification des liens JQuery, Bootstrap
This commit is contained in:
Christian Cunat-Brulé
2018-07-28 18:55:49 +02:00
commit 29ef88376e
154 changed files with 4318 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
<?php
if (isset($_GET["table"]) && isset($_GET["email"]) && isset($_GET["mdp"])) {
$selectAllWhere = $unController->selectAllWhere($_GET["table"], "email = '".$_GET["email"]."' AND mdp = '".$_GET["mdp"]."'");
$result = json_encode(array($_GET["table"] => $selectAllWhere), JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT);
print($result);
} else if (isset($_GET["table"])) {
$selectAll = $unController->selectAll($_GET["table"]);
$result = json_encode(array($_GET["table"] => $selectAll), JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT);
print($result);
} else {
echo "error";
}
?>