source: spip-zone/_plugins_/_stable_/ecard/envoi_ecard.html @ 5548

Last change on this file since 5548 was 5548, checked in by fil@…, 14 years ago

rangement des plugins celbataires : comarquage/1_9_0/ console/1_9_0/ csv_import/1_9_0/ desactiver_cache/1_9_0/ desactiver_flash/1_9_0/ dewplayer/1_9_0/ ecard/1_9_1/ marqueur_stats/1_9_0/ modeles_liste/1_9_1/ orientation/1_9_0/ phpmyvisites/1_9_0/ pim_agenda/1_9_0/ profil_etendu/1_9_1/ push/1_9_0/ recherche_etendue/1_9_0/ sitemap/1_9_0/ smallcaps/1_9_0/ spip-lettres/1_9_0/ squelette_profil/1_9_0/ squelettes_par_mots_cle/1_9_0/ squelettes_update/1_9_0/ switcher/1_9_0/ timeline/1_9_0/ toutmulti/1_9_0/ tri_auteurs/1_9_0/ tri_mots/1_9_0/ version_texte/1_9_0/ widget_calendar/1_9_0/

File size: 1.1 KB
Line 
1<?php
2
3$renvoyer_image = false;
4
5
6if ($mel_confirm == 'oui' AND ($id_reponse = intval($id_reponse))
7                && (isset($id_article)) && ($id_article = intval($id_article)) ) {
8        $query = "SELECT * FROM spip_reponses WHERE id_reponse=$id_reponse";
9        $result = spip_query($query);
10        if ($row = spip_fetch_array($result)) {
11                $id_form = $row['id_form'];
12                // D'abord verifier que l'URL est legitime, donc que la demande a bien
13                // ete generee par SPIP
14                if (verifier_action_auteur("forms confirme reponse $id_reponse", $hash)) {
15                        include_spip('ecard_filtres');
16                        generer_mail_ecard_formulaire($id_form, $id_reponse, $id_article);
17                }
18        }
19        $renvoyer_image = true;
20}
21
22if ($renvoyer_image) {
23        $image = "47494638396118001800800000ffffff00000021f90401000000002c0000000018001800000216848fa9cbed0fa39cb4da8bb3debcfb0f86e248965301003b";
24        $image = pack("H*", $image);
25        $size = strlen($image);
26       
27        Header("Content-Type: image/gif");
28        Header("Content-Length: ".$size);
29        Header("Cache-Control: no-cache,no-store");
30        Header("Pragma: no-cache");
31        Header("Connection: close");
32       
33        echo $image;
34}
35
36
37?>
Note: See TracBrowser for help on using the repository browser.