From ea6bf51e8754b2c5a420a55fc7faf0e308ead875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Sat, 7 May 2011 13:08:02 +0200 Subject: [PATCH 1/3] =?UTF-8?q?=C3=89cran=20de=20connexion=20dans=20le=20j?= =?UTF-8?q?eu.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/org/pticlic/model/Network.java | 12 +- code/serveur/php/jeu.html | 9 ++ code/serveur/php/ressources/backend.inc | 6 +- code/serveur/php/ressources/pticlic.js | 145 ++++++++++++++++-- code/serveur/php/server.php | 49 ++++-- 5 files changed, 180 insertions(+), 41 deletions(-) diff --git a/code/PtiClic/src/org/pticlic/model/Network.java b/code/PtiClic/src/org/pticlic/model/Network.java index edcacae..afe7c29 100644 --- a/code/PtiClic/src/org/pticlic/model/Network.java +++ b/code/PtiClic/src/org/pticlic/model/Network.java @@ -24,14 +24,14 @@ public class Network { public static class Check implements Serializable { private static final long serialVersionUID = 1L; - private boolean login_ok = false; + private boolean loginOk = false; - public boolean isLogin_ok() { - return login_ok; + public boolean isLoginOk() { + return loginOk; } - public void setLogin_ok(boolean login_ok) { - this.login_ok = login_ok; + public void setLoginOk(boolean loginOk) { + this.loginOk = loginOk; } } @@ -97,7 +97,7 @@ public class Network { json = HttpClient.SendHttpPost(urlS); Check check = gson.fromJson(json, Check.class); - res = check.isLogin_ok(); + res = check.isLoginOk(); SharedPreferences.Editor editor = sp.edit(); editor.putBoolean(Constant.SERVER_AUTH, res); diff --git a/code/serveur/php/jeu.html b/code/serveur/php/jeu.html index 147074f..9973fc0 100644 --- a/code/serveur/php/jeu.html +++ b/code/serveur/php/jeu.html @@ -94,6 +94,15 @@ html, body {
+
+
+ + + + + +
+