Fork me on GitHub

Rapport de message :*
 

Re: Security Image Weblinks

Titre du sujet : Re: Security Image Weblinks
par eparcyl92 sur 22/08/2008 07:24:25

Citation :

PinMaster a écrit:
Rajoute : liaise en 1.26

Les fichiers à modifier sont :
-> index.php : ajout à la ligne 77 (juste après le "else") du code suivant
// 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


-> include/form_render.php : ajout à la ligne 61 (après la ligne $form_output->addElement(new XoopsFormHidden('form_id', $form->getVar('form_id')));)du code suivant
// Hack SecurityImage by DuGris
if (is_object($xoopsUser)) {
    if ( 
defined('SECURITYIMAGE_INCLUDED') && 'system' != $xoopsModule->getVar('dirname') && !$xoopsUser->isAdmin($com_modid) ) {
        
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );
        if (
$security_image->render()) {
            
$form_output->addElement($security_imagetrue);
        }
    }
} else {
    if ( 
defined('SECURITYIMAGE_INCLUDED') ) {
        
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );
        if (
$security_image->render()) {
            
$form_output->addElement($security_imagetrue);
        }
    }
}
// Hack SecurityImage by DuGris


Et au pire, j'avais fait un pack à une époque avec juste les fichiers modifiés : Securityimage_pack.zip

Voilou


Bonjour,
Cette série de codes est inopérante, les courriers partent même si l'on compose un mauvais code

Une soluce???

j'ai fait cette version, mais pareil...

-> index.php : ajout à la ligne 77 (juste après le "else") du code suivant (enlève les espaces à "j a v a s c r i p t"

// 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


-> include/form_render.php : ajout à la ligne 61 (après la ligne $form_output->addElement(new XoopsFormHidden('form_id', $form->getVar('form_id')));)du code suivant
// Hack SecurityImage by DuGris
if (defined('SECURITYIMAGE_INCLUDED')) {
     
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );
     if (
$security_image->render()) {
          
$form_output->addElement($security_imagetrue);
     }
}
// Hack SecurityImage by DuGris


A plus



OUAIS!!! cela fonctionne à présent, la modif est bonne et le problême est résolu-tionner

Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

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