DuGris
Xoops Planète
SecurityImage : SecurityImage avec le module Smartpartner version 1.2
Posté par DuGris le 04/07/2008 10:00:00

SmartPartnerUtilisation de la class SecurityImage avec le module
Smartpartner version 1.2



Modification à apporter dans le fichier join.php

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

case "submitPartner" :
// SecurityImage by DuGris
include_once(XOOPS_ROOT_PATH . '/class/xoopsformloader.php');
if ( defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
$redirect = XOOPS_URL . '/modules/' . $smartModule->getVar('dirname') . '/join.php';
redirect_header( $redirect , 5, _SECURITYIMAGE_ERROR ) ;
}
// Hack SecurityImage by DuGris

...
...
...
case "form" :
...
...
...
// ADRESS
$adress_text = new XoopsFormTextArea(_CO_SPARTNER_ADRESS, 'adress', '', 4, 60);
$adress_text->setDescription(_CO_SPARTNER_ADRESS_DSC);
$form->addElement($adress_text, false);

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


// NOTIFY ON PUBLISH
...

 

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
WF-Downloads : 1
Documentation : 4
Téléchargements : 1

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

Plus ...
Visiteurs
140871 A ce jour
669766 Pages vues