This commit is contained in:
Bertrand BRUN 2011-02-12 16:23:58 +01:00
parent e4827ce828
commit b183001bb5
5 changed files with 3 additions and 23 deletions

View File

@ -33,7 +33,7 @@ public class Score extends Activity implements OnClickListener{
setContentView(R.layout.score);
SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);
String serverURL = sp.getString(Constant.SERVER_URL, "http://dumbs.fr/~bbrun/pticlic.json"); // TODO : Mettre comme valeur par defaut l'adresse reel du serveur
String serverURL = sp.getString(Constant.SERVER_URL, "http://dumbs.fr/~bbrun/pticlic/pticlic.php"); // TODO : Mettre comme valeur par defaut l'adresse reel du serveur
String id = sp.getString(Constant.USER_ID, "joueur");
String passwd = sp.getString(Constant.USER_PASSWD, "");
Mode mode = null;

View File

@ -46,7 +46,6 @@ import android.widget.TextView;
*/
public class BaseGame extends Activity implements OnClickListener {
// TODO : mettre la poubelle comme categorie -1
private int currentWord = 0;
private TextView currentWordTextView;
private TextView wordRemaining;

View File

@ -26,8 +26,6 @@ import com.google.gson.stream.JsonReader;
* puisse insérer la contribution de l'utilisateur, mais aussi pouvoir calculer le score de celui-ci.
*/
public class Network {
// TODO : Penser a gere les erreurs renvoyer par le serveur.
public enum Action {
GET_GAMES(0),

View File

@ -1,17 +0,0 @@
#!/bin/sh
# cat dump.url
# Aller à cette adresse, et télécharger le dernier dump
echo "Étape 1/3 : Téléchargement"
latest="$(wget 'http://www.lirmm.fr/~lafourcade/JDM-LEXICALNET-FR/?C=M;O=D' -O- | grep '\-LEXICALNET\-JEUXDEMOTS\-FR\-\(NOHTML\)\?\.txt' | head -n 1 | sed -e 's/^.*<a href="\([0-9]*-LEXICALNET-JEUXDEMOTS-FR-\(NOHTML\)\?\.txt\)">.*$/\1/')"
wget 'http://www.lirmm.fr/~lafourcade/JDM-LEXICALNET-FR/'"$latest"
echo "Étape 2/3 : Conversion vers sql"
./dump2sqlite.sh "$latest" > sql
echo "Étape 3/3 : Insertion dans la bdd"
mv php/db php/db.old
pv sql | sqlite3 php/db
sudo chgrp -R www-data php || sudo chgrp -R www php
chmod 664 php/db

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# TODO : sed -E sur certaines machines, sed -r sur d'autres.
@ -22,7 +22,7 @@ create table game_cloud(gid, num, difficulty, eid_word, totalWeight, probaR1, pr
create table played_game(pgid integer primary key autoincrement, gid, login, timestamp);
create table played_game_cloud(pgid, gid, type, num, relation, weight, score);
insert into user(login, mail, hash_passwd, score) values('foo', 'foo@isp.com', '$(echo -n 'bar' | md5sum | cut -d ' ' -f 1)', 0);
insert into user(login, mail, hash_passwd, score) values('foo', 'foo@isp.com', '$(echo -n 'bar' | md5 | cut -d ' ' -f 1)', 0);
create index i_relation_start on relation(start);
create index i_relation_end on relation(end);