Voici l'erreur :


Fatal error: Cannot redeclare dsp_crypt() (previously declared in /mnt/165/sda/f/1/snec.acnantes/plugins/envoiami/class/crypt/cryptographp.fct.php:19) in /mnt/165/sda/f/1/snec.acnantes/plugins/envoiami/class/crypt/cryptographp.fct.php on line 19

Et voici le fichier concerné :


<?php

// -----------------------------------------------
// Cryptographp v1.4
// (c) 2006-2007 Sylvain BRISON
//
// www.cryptographp.com
// [EMAIL PROTECTED]
//
// Licence CeCILL modifiée
// => Voir fichier Licence_CeCILL_V2-fr.txt)
// -----------------------------------------------

 if(session_id() == "") session_start();

 $_SESSION['cryptdir']= dirname($cryptinstall);


 function dsp_crypt($cfg=0,$reload=1) {
 // Affiche le cryptogramme
echo "<table><tr><td><img id='cryptogram' src='".$_SESSION['cryptdir']."/cryptographp.php?cfg=".$cfg."&".SID."'></td>"; if ($reload) echo "<td><a title='".($reload==1?'':$reload)."' style=\"cursor:pointer\" onclick=\"javascript:document.images.cryptogram.src='".$_SESSION['cryptdir']."/cryptographp.php?cfg=".$cfg."&".SID."&'+Math.round(Math.random(0)*1000)+1\"><img src=\"".$_SESSION['cryptdir']."/images/reload.png\"></a></td>";
 echo "</tr></table>";
 }


 function chk_crypt($code) {
 // Vérifie si le code est correct
 include ($_SESSION['configfile']);
 $code = addslashes ($code);
$code = str_replace(' ','',$code); // supprime les espaces saisis par erreur.
 $code = ($difuplow?$code:strtoupper($code));
 switch (strtoupper($cryptsecure)) {
        case "MD5"  : $code = md5($code); break;
        case "SHA1" : $code = sha1($code); break;
        }
 if ($_SESSION['cryptcode'] and ($_SESSION['cryptcode'] == $code))
    {
    unset($_SESSION['cryptreload']);
    if ($cryptoneuse) unset($_SESSION['cryptcode']);
    return true;
    }
    else {
         $_SESSION['cryptreload']= true;
         return false;
         }
 }

?>




Ramsess a écrit :
snif snif

personne n'a répondu à ma question ...

:o(

Il manque juste un tout petit truc.

Cette méchante image n'apparait pas et pourquoi donc ?

Ramsess a écrit :
Bonjour

J'ai installé le plugin envoyé l'article aux amies : http://www.spip-contrib.net/Envoyer-l-article-aux-amiEs

Tout semble OK sauf que l'image ne s'affiche pas !

Je l'ai installé sur un site de test :

http://snec.acantes.free.fr

J'ai beau chercher je ne comprends pas que l'image du captcha ne s'affiche pas !

Faut il envoyer le code de mes fichiers ?



_______________________________________________
liste spip
[email protected] - désabonnement : [EMAIL PROTECTED]

Infos et archives : http://listes.rezo.net/mailman/listinfo/spip

Documentation de SPIP : http://www.spip.net/

irc://irc.freenode.net/spip ou 
http://embed.mibbit.com/?server=irc.freenode.net&channel=%23spip

Reply via email to