$note_image_V = isset($_POST['note_image_V']) ? Clean::txt_note($_POST['note_image_V']) : ''; $note_image_VV = isset($_POST['note_image_VV']) ? Clean::txt_note($_POST['note_image_VV']) : ''; $note_texte_RR = isset($_POST['note_texte_RR']) ? Clean::txt_note($_POST['note_texte_RR']) : ''; $note_texte_R = isset($_POST['note_texte_R']) ? Clean::txt_note($_POST['note_texte_R']) : ''; $note_texte_V = isset($_POST['note_texte_V']) ? Clean::txt_note($_POST['note_texte_V']) : ''; $note_texte_VV = isset($_POST['note_texte_VV']) ? Clean::txt_note($_POST['note_texte_VV']) : ''; $note_legende_RR = isset($_POST['note_legende_RR']) ? Clean::txt_note($_POST['note_legende_RR']) : ''; $note_legende_R = isset($_POST['note_legende_R']) ? Clean::txt_note($_POST['note_legende_R']) : ''; $note_legende_V = isset($_POST['note_legende_V']) ? Clean::txt_note($_POST['note_legende_V']) : ''; $note_legende_VV = isset($_POST['note_legende_VV']) ? Clean::txt_note($_POST['note_legende_VV']) : ''; $acquis_texte_NA = isset($_POST['acquis_texte_NA']) ? Clean::txt_note($_POST['acquis_texte_NA']) : ''; $acquis_texte_VA = isset($_POST['acquis_texte_VA']) ? Clean::txt_note($_POST['acquis_texte_VA']) : ''; $acquis_texte_A = isset($_POST['acquis_texte_A']) ? Clean::txt_note($_POST['acquis_texte_A']) : ''; $acquis_legende_NA = isset($_POST['acquis_legende_NA']) ? Clean::txt_note($_POST['acquis_legende_NA']) : ''; $acquis_legende_VA = isset($_POST['acquis_legende_VA']) ? Clean::txt_note($_POST['acquis_legende_VA']) : ''; $acquis_legende_A = isset($_POST['acquis_legende_A']) ? Clean::txt_note($_POST['acquis_legende_A']) : ''; $acquis_color_NA = isset($_POST['acquis_color_NA']) ? Clean::texte($_POST['acquis_color_NA']) : ''; $acquis_color_VA = isset($_POST['acquis_color_VA']) ? Clean::texte($_POST['acquis_color_VA']) : ''; $acquis_color_A = isset($_POST['acquis_color_A']) ? Clean::texte($_POST['acquis_color_A']) : ''; $chemin_dossier = CHEMIN_DOSSIER_IMG . 'note' . DS . 'choix' . DS . 'h' . DS; $test_image_RR = preg_match("/^[0-9a-z_-]+\$/i", $note_image_RR) && is_file($chemin_dossier . $note_image_RR . '.gif'); $test_image_R = preg_match("/^[0-9a-z_-]+\$/i", $note_image_R) && is_file($chemin_dossier . $note_image_R . '.gif'); $test_image_V = preg_match("/^[0-9a-z_-]+\$/i", $note_image_V) && is_file($chemin_dossier . $note_image_V . '.gif'); $test_image_VV = preg_match("/^[0-9a-z_-]+\$/i", $note_image_VV) && is_file($chemin_dossier . $note_image_VV . '.gif'); $longueur_NA = mb_strlen($acquis_color_NA); $longueur_VA = mb_strlen($acquis_color_VA); $longueur_A = mb_strlen($acquis_color_A); $test_color_NA = preg_match("/^\\#[0-9a-f]{3,6}\$/i", $acquis_color_NA) && $longueur_NA != 5 && $longueur_NA != 6; $test_color_VA = preg_match("/^\\#[0-9a-f]{3,6}\$/i", $acquis_color_VA) && $longueur_VA != 5 && $longueur_VA != 6; $test_color_A = preg_match("/^\\#[0-9a-f]{3,6}\$/i", $acquis_color_A) && $longueur_A != 5 && $longueur_A != 6; // ////////////////////////////////////////////////////////////////////////////////////////////////////