Merge branch 'master' of https://github.com/jsmaniac/2011-m1s2-ter
This commit is contained in:
commit
2d01b08cc7
79
code/serveur/commands.php
Executable file
79
code/serveur/commands.php
Executable file
|
@ -0,0 +1,79 @@
|
|||
<?php
|
||||
require_once("./config/config.php");
|
||||
|
||||
if(!isset($_GET['cmd']) || !isset($_GET['psd']) || !isset($_GET['passwd']))
|
||||
die("La requête est incomplète");
|
||||
|
||||
$cmd = secure($_GET['cmd']);
|
||||
$psd = secure($_GET['psd']);
|
||||
$passwd = md5($_GET['passwd']);
|
||||
|
||||
$req = "SELECT passwd FROM member WHERE pseudo='$psd'";
|
||||
|
||||
$sql = sqlConnect();
|
||||
$resp = mysql_query($req);
|
||||
|
||||
if(mysql_num_rows($res) < 1)
|
||||
die("Utilisateur non enregistré");
|
||||
|
||||
$data = mysql_fetch_array($resp);
|
||||
|
||||
mysql_close($sql);
|
||||
|
||||
if(strcmp($data['passwd'],$passwd) != 0)
|
||||
die("Nom d'utilisateur ou mot de passe incorrect");
|
||||
|
||||
|
||||
// Sinon tout est bon on effectu l'opération correspondant à la commande passée.
|
||||
if($cmd == 0) // "Get partie"
|
||||
{
|
||||
// Requête sql de création de partie.
|
||||
$req = "...";
|
||||
|
||||
$sql = sqlConnect();
|
||||
$resp = mysql_query($req);
|
||||
|
||||
if(mysql_num_rows($resp) == 0)
|
||||
echo mysql_error();
|
||||
else
|
||||
{
|
||||
$sequence = "...";
|
||||
echo $sequence;
|
||||
}
|
||||
|
||||
mysql_close($sql);
|
||||
}
|
||||
else if($cmd == 1) // "Set partie"
|
||||
{
|
||||
// Requête sql d'ajout d'informations (et calcul de résultat).
|
||||
$req = "...";
|
||||
|
||||
$sql = sqlConnect();
|
||||
$resp = mysql_query($req);
|
||||
|
||||
if(mysql_num_rows($resp) == 0)
|
||||
echo mysql_error();
|
||||
else
|
||||
{
|
||||
$sequence = "...";
|
||||
echo $sequence;
|
||||
}
|
||||
|
||||
mysql_close($sql);
|
||||
}
|
||||
else if($cmd == 2)
|
||||
{
|
||||
|
||||
}
|
||||
else if($cmd == 3)
|
||||
{
|
||||
|
||||
}
|
||||
else if($cmd == 4)
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
die("Commande inconnue");
|
||||
|
||||
?>
|
17
code/serveur/config/config.php
Executable file
17
code/serveur/config/config.php
Executable file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
/** fichier de configuration */
|
||||
|
||||
// Général
|
||||
$email_admin = ''; // Adresse e-mail Administrateur.
|
||||
|
||||
// Base de donées.
|
||||
$sql_serveur = 'localhost'; // Serveur de la Base De Donnée (BDD).
|
||||
$sql_login = 'root'; // Login BDD.
|
||||
$sql_pass = ''; // Pass BDD.
|
||||
$sql_bdd = 'ptitclic'; // Nom de la BDD.
|
||||
|
||||
// Quelques fonctions utiles.
|
||||
include("function.php");
|
||||
|
||||
?>
|
32
code/serveur/config/function.php
Executable file
32
code/serveur/config/function.php
Executable file
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
/**Ce fichier définit un certain nombre de fonctions utiles */
|
||||
|
||||
// Connexion à la base de données.
|
||||
function sqlConnect()
|
||||
{
|
||||
global $sql_serveur, $sql_login, $sql_pass, $sql_bdd;
|
||||
//connexion au serveur
|
||||
$linkid = @mysql_connect($sql_serveur,$sql_login,$sql_pass) or die ("Erreur lors de la connection au serveur MySQL !");
|
||||
//selection de la base
|
||||
@mysql_select_db($sql_bdd,$linkid) or die("Impossible de selectionner la base de données\n<br>\nVoici l'erreur renvoyée par le serveur MySQL :\n<br>\n".mysql_error());
|
||||
|
||||
return $linkid;
|
||||
}
|
||||
|
||||
function secure($string)
|
||||
{
|
||||
if(ctype_digit($string))
|
||||
{
|
||||
$string = intval($string);
|
||||
}
|
||||
else
|
||||
{
|
||||
$string = mysql_real_escape_string($string);
|
||||
$string = addcslashes($string, '%_');
|
||||
}
|
||||
|
||||
return $string;
|
||||
}
|
||||
|
||||
?>
|
|
@ -21,3 +21,91 @@
|
|||
year = {2000}
|
||||
}
|
||||
|
||||
%% Georges : Nonvisual Presentation of Graphical User Interfaces: Contrasting Two Approaches
|
||||
%% http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.56.1784
|
||||
@INPROCEEDINGS{Mynatt94nonvisualpresentation,
|
||||
author = {Elizabeth D. Mynatt and Gerhard Weber},
|
||||
title = {Nonvisual Presentation of Graphical User Interfaces: Contrasting Two Approaches},
|
||||
booktitle = {},
|
||||
year = {1994},
|
||||
pages = {166--172},
|
||||
publisher = {ACM Press}
|
||||
}%
|
||||
|
||||
%% Georges : Graphics in overlapping bitmap layers
|
||||
%% http://www.cs.tufts.edu/~nr/cs257/archive/rob-pike/pike-bitmap.pdf
|
||||
@article{Pike:1983:GOB:964967.801165,
|
||||
author = {Pike, Rob},
|
||||
title = {Graphics in overlapping bitmap layers},
|
||||
journal = {SIGGRAPH Comput. Graph.},
|
||||
volume = {17},
|
||||
issue = {3},
|
||||
month = {July},
|
||||
year = {1983},
|
||||
issn = {0097-8930},
|
||||
pages = {331--355},
|
||||
numpages = {25},
|
||||
url = {http://doi.acm.org/10.1145/964967.801165},
|
||||
doi = {http://doi.acm.org/10.1145/964967.801165},
|
||||
acmid = {801165},
|
||||
publisher = {ACM},
|
||||
address = {New York, NY, USA},
|
||||
keywords = {Raster image, bitblt instruction, bitmaps, windows},
|
||||
}
|
||||
|
||||
%% John :
|
||||
%% http://www.lirmm.fr/~schwab/Publications/SL_ECTI_journal.pdf
|
||||
%% TODO John : mettre à jour les informations sur http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.65.7113
|
||||
@article{Schwab_modeling_detection,
|
||||
abstract = {{Lexical functions (LF) model relations between terms in the lexicon. These relations can be knowledge about the world (Napoleon was an emperor) or knowledge about the language (↩destiny ↪ is synonym of ↩fate↪). In this article, we show that LF instanciation in texts is useful both for semantic analysis (for example, resolution of lexical ambiguities or prepositional attachment and synthesis, i.e. natural language generation. We describe the architecture of a Semantic Lexical Base and the way how LFs are modeled, detected and used. More precisely, we show how each LF is modelled using thematic (conceptual vectors) and lexical (materialised relations between database objects) information and how we exploit the results in the base. We also describe how these functions allow the database to be explored continuously rather than in a discrete way.}},
|
||||
author = {Didier Schwab and Mathieu Lafourcade},
|
||||
title = {Modelling, Detection and Exploitation of Lexical Functions for Analysis},
|
||||
journal = {ECTI Journal},
|
||||
volume = {2},
|
||||
issue = {2},
|
||||
issn = {1905-050X},
|
||||
pages = {97--108},
|
||||
numpages = {10},
|
||||
year = {2007}
|
||||
}
|
||||
|
||||
%% John : Making people play for Lexical Acquisition
|
||||
%% http://www.lirmm.fr/~lafourcade/ML-biblio/SNLP07/MLF-snlp2007-v5.doc
|
||||
%% http://www.lirmm.fr/~lafourcade/ML-biblio/SNLP07/Presentation-JDM-SNLP.ppt
|
||||
%% TODO John : l'ajouter sur citeulike / citeseerx
|
||||
@inproceedings{Lafourcade_play_for_lexical_acquisition,
|
||||
abstract = {{Lexical and semantic information are difficult to collect either automatically or manually, and as being instrumental in many (if not all) NLP applications, there is a serious bottleneck for advances in this research field. In this paper, we propose a novel approach by making people play some king of associative word games. Doing so, we can memorize associations where a pair of players agrees. We present the principles of the game and some insights of the data collected so far.}},
|
||||
author = {Mathieu Lafourcade},
|
||||
title = {Making people play for Lexical Acquisition},
|
||||
booktitle = {in Proceedings of the Seventh International Symposium on Natural Language Processing, SNLP},
|
||||
year = {2007},
|
||||
month = {13-15 December}
|
||||
location = {Pattaya, Thailande},
|
||||
numpages = {8}
|
||||
}
|
||||
|
||||
%% John : PtiClic : a game for vocabulary assessment combining JeuxDeMots and LSA
|
||||
%% http://www.cicling.org/2009/RCS-41/289-298.pdf
|
||||
%% TODO John : l'ajouter sur citeulike / citeseerx
|
||||
@inproceedings{Lafourcade_play_for_lexical_acquisition,
|
||||
abstract = {{}},
|
||||
author = {Mathieu Lafourcade, V. Zampa},
|
||||
title = {PtiClic : a game for vocabulary assessment combining JeuxDeMots and LSA},
|
||||
booktitle = {in Proceedings of the Conference on Intelligent text processing and Comptational Linguistics, CICLing},
|
||||
year = {2009},
|
||||
month = {1-7 March}
|
||||
location = {Mexico},
|
||||
numpages = {8}
|
||||
}
|
||||
|
||||
%% Yoann
|
||||
%% http://www.google.fr/url?sa=t&source=web&cd=1&ved=0CBgQFjAA&url=http%3A%2F%2Fhandicap.cnam.fr%2Fservlet%2Fcom.univ.utils.LectureFichierJoint%3FCODE%3D1212497636970%26LANGUE%3D0&rct=j&q=Syst%C3%A8me%20d'affichage%20pour%20ordinateur%20fond%C3%A9%20sur%20un%20proc%C3%A9d%C3%A9%20%22audio-tactile%22%20destin%C3%A9%20%C3%A0%20desutilisateurs%20non-voyants&ei=57E5TY3FLNOC4Ab4s_3YCg&usg=AFQjCNHqFGUeY2UxcJT8cZA9mXDf3DgdTQ&sig2=JPjhJKfozYA0ZPNl0sUVyA
|
||||
@INBOOK{audio_tactile,
|
||||
abstract={{This paper describes a display device for blind people using an audio-tactile process. This device allows to restitute alpha-numeric informations contained on computer video screen. The process is based on sense of touch and hearing. It combines a multicontact sensor used to find information, which is in a memory, and a speech synthesizer to translate it into sound. This display principle combines the advantages of two types of existing solutions. The display system that we have realized uses current and low cost technology.}},
|
||||
chapter={Système d'affichage pour ordinateur fondé sur un procédé "audio-tactile" destiné à des utilisateurs non-voyants}
|
||||
author={Claude Liard}
|
||||
publisher={Springer-Verlag France}
|
||||
title={Nouvelles Technologies et Traitement de l’Information en médecine}
|
||||
year={1991}
|
||||
volume={4}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user