 mysql_fetch_array($req);
    if ($data[0] == '0' ){
      return false;
    }else {
      return true ;
    }
  }
}
?&gt;</pre>

<p>et on fait de même avec <em>submit.php</em> (qui permet l'enregistrement des codes)</p>

<pre class="brush: php">&lt;?
class submit
{

  public function __construct()
  {
    mysql_connect(&quot;localhost&quot;, &quot;spip&quot;, &quot;sUp3rl33tp4s5&quot;);
    mysql_select_db(&quot;spip_bd&quot;);
  }

  function save($userID, $sessionID,$score,$encrypted)
  {
    if ($this-