DuGris
Xoops Planète
SecurityImage : SecurityImage avec le module TellAFriend version 1.03
Posté par DuGris le 30/06/2007 20:00:00

TellAFriendUtilisation de la class SecurityImage avec le module
TellAFriend version 1.03



Modification à apporter dans le fichier index.php

Ajouter les lignes en rouge, comme indiqué ci-dessous

if( ! empty($_POST['submit']) ) { // Ligne 46
 // Hack SecurityImage by DuGris
include_once(XOOPS_ROOT_PATH . "/class/xoopsformloader.php");
if ( defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
redirect_header( 'javascript:history.go(-1)', 2, _SECURITYIMAGE_ERROR ) ;
exit();
}
// Hack SecurityImage by DuGris

...
...
...
}
$contact_form->addElement($subject_text); // Ligne 189

if( $xoopsModuleConfig['can_bodyedit'] ) {
$contact_form->addElement($comment_textarea, true);
} else {
$contact_form->addElement($body_label);
$contact_form->addElement($body_hidden);
}

// Hack SecurityImage by DuGris
if ( defined('SECURITYIMAGE_INCLUDED')  ) {
$security_image = new SecurityImage( _SECURITYIMAGE_GETCODE );
if ($security_image->render()) {
$contact_form->addElement($security_image, true);
}
}
// Hack SecurityImage by DuGris

$contact_form->addElement($ticket_hidden);
$contact_form->addElement($submit_button);
$contact_form->assign($xoopsTpl);
Créer un fichier PDF à partir de cet article Format imprimable Envoyer cet article à un ami  
Afux sur Facebook
Facebook
Dugris Xoops Planète
Profil Facebook de Laurent Jen
Faire un don
_DMB_SELECTAMT


Voulez-vous que votre nom soit cité avec votre don ?
Oui - Citez- moi comme un généreux donateur.
Non - Listez mon don anonymement


Archives
Recherche


Qui est en ligne
Formulaires : 1
Partenaires : 1
Documentation : 3
Téléchargements : 1

Membre(s): 0
Invité(s): 7

Plus ...
Visiteurs
140873 A ce jour
669802 Pages vues