Skip to content
Extraits de code Groupes Projets
Valider c1baaee2 rédigé par Yohooo's avatar Yohooo
Parcourir les fichiers

Un peu de ménage et uniquement des cookies comme alternative à id_auteur

parent 4490abcd
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -169,7 +169,12 @@ function formidable_verifier_reponse_formulaire($id_formulaire, $choix_identific
$where_cookie = '';
$where_variable_php = '';
if ($id_auteur) {
$where_id_auteur = 'id_auteur='.$id_auteur;
if ($anonymiser == 'on') {
$id_auteur = formidable_crypter_id_auteur($id_auteur);
$where_id_auteur = 'variable_php="'.$id_auteur.'"';
} else {
$where_id_auteur = 'id_auteur='.$id_auteur;
}
}
if ($cookie) {
$where_cookie = 'cookie='.sql_quote($cookie);
......@@ -187,13 +192,9 @@ function formidable_verifier_reponse_formulaire($id_formulaire, $choix_identific
}
} elseif ($choix_identification == 'id_auteur') {
if ($id_auteur) {
if ($anonymiser == 'on') {
$id_auteur = formidable_crypter_id_auteur($id_auteur);
$where_id_auteur = 'variable_php="'.$id_auteur.'"';
}
$where = array($where_id_auteur);
} else {
$where = array($where_cookie, $where_variable_php);
$where = array($where_cookie);
}
} elseif ($choix_identification == 'variable_php') {
if ($variable_php_identification) {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter