diff --git a/sallesQuery.php b/api/salles.php similarity index 96% rename from sallesQuery.php rename to api/salles.php index e3e44b1..8ab2dfd 100644 --- a/sallesQuery.php +++ b/api/salles.php @@ -30,7 +30,7 @@ if(isset($_GET["salle"])) { $locataires = array(); - $stmt = $conn->prepare("SELECT personne FROM locataire WHERE salle=?"); + $stmt = $conn->prepare("SELECT personne FROM locataires WHERE salle=?"); $stmt->execute([$idSalle]); $resP = $stmt->fetchAll(); diff --git a/viewer.html b/index.html similarity index 95% rename from viewer.html rename to index.html index 7cec1f6..1731332 100644 --- a/viewer.html +++ b/index.html @@ -71,7 +71,7 @@ window.clearTimeout(document.wnsTimeout); document.wnsTimeout = window.setTimeout(putWaitNetworkScreen, 400); - httpGetAsync("https://perso.ens-lyon.fr/samy.avrillon/sallesQuery.php?salle="+e.target.id.substring("path-salle-".length),function (s,errcode){ + httpGetAsync("https://perso.ens-lyon.fr/samy.avrillon/api/salles.php?salle="+e.target.id.substring("path-salle-".length),function (s,errcode){ window.clearTimeout(document.wnsTimeout); try{ if(s=="404"){ @@ -105,7 +105,7 @@