X-Git-Url: http://git.euphorik.ch/?p=cl7.git;a=blobdiff_plain;f=php%2Fparticipant.php;fp=php%2Fparticipant.php;h=7e549e12b64eef94441bb659d2d2a83b06ab231f;hp=f7f1acff0ffc9b2e4b6260dfd2cd4cd274bed087;hb=117b0123aca7e5f286289975b8fc56371192fb12;hpb=72508fb3290057e8afd090d06e5763ee8ff68cd7 diff --git a/php/participant.php b/php/participant.php index f7f1acf..7e549e1 100644 --- a/php/participant.php +++ b/php/participant.php @@ -24,12 +24,12 @@ class Participant $this->valide = 0; return; } - + if (is_string($v1) && is_string($v2)) # Aucun des arguments n'est vide alors c'est le pseudo et le password qui ont été transmis $res = mysql_query("SELECT * FROM participants WHERE pseudo = '" . addslashes($v1) . "' AND password = '" . addslashes($v2) . "'"); else # Sinon c'est l'id $res = mysql_query("SELECT * FROM participants WHERE id = " . addslashes($v1)); - + if (mysql_error() || mysql_num_rows($res) == 0) { $this->valide = FALSE;