test
continuous-integration/drone/push Build is failing Details

ServeurDeTest
Noé GARNIER 2 years ago
parent 2763c6b9fc
commit 05ceffca26

@ -470,7 +470,7 @@ class UserController
$idPartie = $_SESSION['idPartie']; $idPartie = $_SESSION['idPartie'];
$lesJoueurs = $model->getPlayersEmail($idPartie); $lesJoueurs = $model->getPlayersEmail($idPartie);
$lesJoueurs = json_encode($lesJoueurs); $lesJoueurs = json_encode($lesJoueurs);
echo ("TEST"); echo ($lesJoueurs);
} }
catch (Exception $e) { catch (Exception $e) {
$error = $e->getMessage(); $error = $e->getMessage();

@ -1,13 +1,13 @@
function dashboard () { function dashboard () {
var xhr = new XMLHttpRequest(); // var xhr = new XMLHttpRequest();
xhr.open('POST', 'http://82.165.180.114/Scripted/index.php?action=getPlayersEmail', true); // xhr.open('POST', 'http://82.165.180.114/Scripted/index.php?action=getPlayersEmail', true);
xhr.responseType = 'text'; // xhr.responseType = 'text';
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); // xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
var playersEmail = xhr.onload = function () { // var playersEmail = xhr.onload = function () {
console.log(xhr.responseText + "DONE"); // console.log(xhr.responseText + "DONE");
return JSON.parse(xhr.responseText); // return JSON.parse(xhr.responseText);
}; // };
xhr.send(null); // xhr.send(null);
var xhr = new XMLHttpRequest(); var xhr = new XMLHttpRequest();
xhr.open('POST', 'http://82.165.180.114/Scripted/index.php?action=getPlayersPseudo', true); xhr.open('POST', 'http://82.165.180.114/Scripted/index.php?action=getPlayersPseudo', true);
xhr.responseType = 'text'; xhr.responseType = 'text';

Loading…
Cancel
Save