tion __construct()
  {
    mysql_connect(&quot;localhost&quot;, &quot;spip&quot;, &quot;sUp3rl33tp4s5!&quot;);
    mysql_select_db(&quot;spip_bd&quot;);
  }

  function check($userID, $sessionID, $code, $encrypted)
  {
    // verifie les identifiants
    if ($this-&gt;_docheckuser($userID, $sessionID) == false)
    {
      // FAIL !
      $response[&quot;success&quot;] = false;
      $response[&quot;codeValue&quot;] = '0';
      return $response;
    }

    // Verification de la cle
    $data_encrypted = md