source: spip-zone/_plugins_/rspip_code_mail/rspip2_code_mail/trunk/rspipcm_decode_email.php @ 99410

Last change on this file since 99410 was 99410, checked in by robert.sebille@…, 3 years ago

Correction affichage captcha

File size: 1.8 KB
Line 
1<?php
2
3/*  Copyright 2010  Robert Sebille  (email : robert -AT- sebille -DOT- be)
4
5    This program is free software; you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation; either version 2 of the License, or
8    (at your option) any later version.
9
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14
15    You should have received a copy of the GNU General Public License
16    along with this program; if not, write to the Free Software
17    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18*/
19
20
21function rspipcm_ecris_entete($flux) {
22
23//   $flux .= '<script type="text/javascript" src="../plugins/rspip_code_mail/rspipcm_code_email_prive.js"></script>';
24
25   // Recup des langues
26   $entrez_resultat_addition = _T('rspipcm:entrez_resultat_addition');
27   $erreur_entrez_resultat_addition = _T('rspipcm:erreur_entrez_resultat_addition');
28
29?>
30
31<script type="text/javascript">
32    var entrez_resultat_addition = '<?php echo $entrez_resultat_addition; ?>';
33    var erreur_entrez_resultat_addition = '<?php echo $erreur_entrez_resultat_addition; ?>';
34</script>
35
36<?php
37
38   $rspipcm_chemin_css = find_in_path ('css/noscript.css');
39   $rspipcm_chemin_js = find_in_path ('lib/rspipcm_decode_autres_fonctions.js');
40
41$flux .= <<<EOD
42
43<!-- feuille de style pour l'encodage sans javascript -->
44<link rel='stylesheet' type='text/css' href='$rspipcm_chemin_css' />
45<!-- Decodeur et captcha du plugin Codeur d adresse email - debut -->
46<script type='text/javascript' src='$rspipcm_chemin_js'></script>
47EOD;
48
49   return $flux;
50
51}
52
53?>
Note: See TracBrowser for help on using the repository browser.