Fork me on GitHub

Rapport de message :*
 

Re: Intégrer securityimage dans cbb3.0.5

Titre du sujet : Re: Intégrer securityimage dans cbb3.0.5
par machenzy sur 09/01/2008 01:56:18

Salut,
Juste pour faire le point sur cette implémentation de SecurityImage qui fonctionne impeccablement bien de mon côté.

Modification à apporter dans le fichier : newbb/include/forumform.inc.php
Pour ma part, j'ai trouvé judicieux de l'ajouter après la ligne n°95
// Hack SecurityImage by DuGris
    
include_once XOOPS_ROOT_PATH."/class/xoopsform/securityimage.php";
    if ( 
defined('SECURITYIMAGE_INCLUDED') ) {
        
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );
        if (
$security_image->render()) {
            
$forum_form->addElement($security_imagetrue);
        }
    }
    
// Hack SecurityImage by DuGris


Modification à apporter dans le fichier : post.php
Le mot "javascr." sans les espaces bien sûr...
Après la ligne n°78
// Hack SecurityImage by DuGris
include_once(XOOPS_ROOT_PATH "/class/xoopsformloader.php");
if ( 
defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
    
redirect_header'j a v a s c r i p t:history.go(-1)'2_SECURITYIMAGE_ERROR ) ;
    exit();
}
// Hack SecurityImage by DuGris


Modification à apporter dans le fichier : viewtopic.php
Après la ligne n°606
// Hack SecurityImage by DuGris
    
if ( defined('SECURITYIMAGE_INCLUDED') ) {
        
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );
        if (
$security_image->render()) {
            
$forum_form->addElement($security_imagetrue);
        }
    }
    
// Hack SecurityImage by DuGris


Bonne sécurité
@+
Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

7 Personne(s) en ligne (3 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 7 | Plus ...