5($sessionID);

    if ($data_encrypted != $encrypted) {
      $response[&quot;success&quot;] = false;
      $response[&quot;codeValue&quot;] = '0';
      return $response;
    }

    // Verifie le code promotionnel (deja utilise?)
    $sqluser = 'SELECT tps,id_auteur FROM code WHERE code = &quot;'.$code.'&quot;';
    $requser = mysql_query($sqluser) or die('Erreur SQL !&lt;br /&gt;'.$sqluser.'&lt;br /&gt;'.mysql_error());
    $responseuser = mysql_fetch_array($requser);
    if ($responseuser[1] != '0' &amp