Fork me on GitHub




« 1 ... 6 7 8 (9) 10 »


Re: Captcha pour differents modules
Xoops accro
Inscrit: 16/08/2005 19:46
De Nanterre
Messages: 2331
Merci pour le Captcha de Birtday,
C'est pas mal aussi le coup des opérations, c'est une bonne révision avant les rentrée scolaire.
Il ne reste plus qu'à trouver celui de wsproject-v1.0.3_SMarr (Nouveau projet et Ajouter une tâche)
Bon samedi

Posté le : 19/07/2008 07:36

eparcyl... tranquille.
Partager Twitter Partagez cette article sur GG+
Re: Security Image Mydownloads 1.5
Xoops accro
Inscrit: 16/08/2005 19:46
De Nanterre
Messages: 2331
Bonsoir à toutes et tous
Pour Mydownloads 1.5


tout est dans le submit.php:
if (!empty($_POST['submit'])) {
[
color=CC0000]// Hack SecurityImage by Dugris
include_once(XOOPS_ROOT_PATH "/class/xoopsformloader.php");
if ( 
defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
     
redirect_header'(script removed)history.go(-1)'2_SECURITYIMAGE_ERROR ) ;
     exit();
}
// Hack SecurityImage by Dugris[/color]
    
$submitter = !empty($xoopsUser) ? $xoopsUser->getVar('uid') : 0;


Ensuite:

$xoopsTpl->assign('lang_description'_MD_DESCRIPTION);
    
    [
color=CC0000]// Hack SecurityImage by Dugris
if (defined('SECURITYIMAGE_INCLUDED')) {
    
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );
    if (
$security_image->render()) { 
    
$sform->addElement($security_imagetrue); 
    } 
}
// Hack SecurityImage by Dugris[/color]

    
$xoopsTpl->assign('lang_submit'_SUBMIT);


et enfin:

$sform->addElement($shot_tray,false);
        
// Submit button
         
[color=CC0000]// Hack SecurityImage by Dugris
if (defined('SECURITYIMAGE_INCLUDED')) {
    
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );
    if (
$security_image->render()) { 
        
$sform->addElement($security_imagetrue); 
    } 
}
// Hack SecurityImage by Dugris[/color]
        
$button_tray = new XoopsFormElementTray('' ,'');


Pour bien faire, il faudrait aussi sécuriser la section "Rapport de fichier brisé", surement le fichier brokenfile.php et/ou mydownloads_brokenfile.html

Bon samedi soir

Posté le : 19/07/2008 21:26

eparcyl... tranquille.
Partager Twitter Partagez cette article sur GG+
Re: Security Image Mydownloads 1.5
Guest_
b'soir,

Merci bien !

@+

Posté le : 19/07/2008 23:19
Partager Twitter Partagez cette article sur GG+
Re: Security Image Weblinks
Xoops accro
Inscrit: 16/08/2005 19:46
De Nanterre
Messages: 2331
NEWBB Version 3.08
newbb/include/forumform.inc.php

$button_tray->addElement($preview_button);
[
b][color=990000]  // 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 [/color][/b]
$button_tray->addElement($submit_button);


post.php
Attention: enlever les espaces du mot "j a v a s c r i p t"

include XOOPS_ROOT_PATH."/header.php";
[
b][color=990000]// 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 [/color][/b]
if ( !empty($_POST['contents_submit']) ) {

viewtopic.php

$forum_form->addElement(new XoopsFormHidden('notify', -1));
[
b][color=990000]    // 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 [/color][/b]
    
$forum_form->addElement(new XoopsFormHidden('contents_submit'1));

Pour la partie "Repport", c'est comme pour la 1.16

Que la force soit avec vous....

Posté le : 25/07/2008 20:46

eparcyl... tranquille.
Partager Twitter Partagez cette article sur GG+
Re: Security Image Weblinks
Newbie
Inscrit: 30/07/2008 14:41
Messages: 8
Hello, voici un hack pour le module News de InstantZero.
Il y a peut être des aberrations dans mon hack ?

News 1.61
SecurityImages pour Proposer un article

Fichier news/include/storyform.inc.php
Vers la ligne 186

Après
$smiley_checkbox = new XoopsFormCheckBox('''nosmiley'$nosmiley);
$smiley_checkbox->addOption(1_DISABLESMILEY);
$option_tray->addElement($smiley_checkbox);
$sform->addElement($option_tray);
//TODO: Approve checkbox + "Move to top" if editing + Edit indicator


Avant
//Submit buttons
$button_tray = new XoopsFormElementTray('' ,'');


Insérer
// Hack SecurityImage by DuGris
if ( defined('SECURITYIMAGE_INCLUDED') ) {
    
$captcha true;
    if (
is_object($xoopsUser) && $xoopsUser->isAdmin($com_modid)) {
        
$captcha false;
    }
    if (
$captcha) {
        
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );
        if (
$security_image->render()) {
            
$sform->addElement($security_imagetrue);
        }
    }
}
// Hack SecurityImage by DuGris




Ensuite, fichier news/submit.php
Vers la ligne 291
Après
include_once XOOPS_ROOT_PATH.'/modules/news/include/storyform.inc.php';
        break;

    case 
'post':


Avant
$nohtml_db = isset($_POST['nohtml']) ? $_POST['nohtml'] : 1;
        if (
is_object($xoopsUser) ) {
            
$uid $xoopsUser->getVar('uid');


Insérer
// Hack SecurityImage by DuGris
        
include_once(XOOPS_ROOT_PATH ."/class/xoopsformloader.php");
        
$captcha true;
        if (
is_object($xoopsUser) && $xoopsUser->isAdmin($com_modid)) {
            
$captcha false;
        }
        if (
$captcha) {
            if ( 
defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
                
redirect_header'j a v a s c r i p t:history.go(-1)' 1_SECURITYIMAGE_ERROR ) ;
            }
        }
        
// Hack SecurityImage by DuGris

Posté le : 30/07/2008 14:59
Partager Twitter Partagez cette article sur GG+
Re: Security Image Weblinks
Xoops accro
Inscrit: 16/08/2005 19:46
De Nanterre
Messages: 2331
Merci cx1max...
Wordbook 1.16 Suite... et fin

Le père Dugris à fait ceci pour SOUMETTRE UNE NOUVELLE ENTREE

Le père Eparcyl92 vous propose maintenant de sécurityimagiser le "DEMANDER UNE DEFINITION."

Le fichier wordbook/include/requestform.php

$rform -> addElement$notify_checkbox );
    } 
[
b][color=CC0000]// Hack SecurityImage by Dugris
if (defined('SECURITYIMAGE_INCLUDED')) {

    
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );

    if (
$security_image->render()) { 

        
$rform->addElement($security_imagetrue); 

    } 

}
// Hack SecurityImage by Dugris [/color][/b]
$submit_button = new XoopsFormButton("""submit"_MD_WB_SUBMIT"submit");


Et enfin, le fichier wordbook/request.php

$adminMessage .= _MD_WB_NOTIFYONPUB;
            }
[
b][color=CC0000]// Hack SecurityImage by Dugris
if (defined('SECURITYIMAGE_INCLUDED')) {

    
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );

    if (
$security_image->render()) { 

        
$rform->addElement($security_imagetrue); 

    } 

}
// Hack SecurityImage by Dugris [/color][/b]
            
$adminMessage .= "n".$HTTP_SERVER_VARS['HTTP_USER_AGENT']."n";

Et plus bas

ATTENTION: ENLEVER LES ESPACES DE (j a v a s c r i p t :)


if ($xoopsModuleConfig['mailtoadmin'] == 1)
        {
[
b][color=CC0000]// 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 [/color][/b] 
        
$messagesent .= sprintf(_MD_WB_SENTCONFIRMMAIL,$address);


Bonne journée à toutes et tous

Posté le : 06/08/2008 11:13

eparcyl... tranquille.
Partager Twitter Partagez cette article sur GG+
Security Image & user.php
Newbie
Inscrit: 30/07/2008 14:41
Messages: 8
Hello

Quelqu'un aurait cherché à ajouter le captcha à user.php pour le login et le retour de mot de passe?

Vu le template system_userform.html, le formulaire n'utilise pas le xoopsform...

Posté le : 08/08/2008 17:52
Partager Twitter Partagez cette article sur GG+
Re: Security Image & user.php
Team FrXoops
Inscrit: 14/05/2004 22:32
Messages: 2554
Bonjour
La classz "securitiimage" utilise la fonction "imageftbbox", qui existe normalement depuis la version de php 4.1.
Hors j'ai une erreur "function inconnue".
J'avais rencontré le même problème avec une autre fonction graphique, qui permet de récupérerles info d'un fichier.
Quelqu'un aurait-il des piste car pour l'instant je n'ai aucune réponse de mon hébergeur.
JJDAI

Posté le : 10/08/2008 14:39

Ne pas perdre patience, même si cela semble impossible, c'est déjà de la patience.
Origami
Conseil des Sages
Sur gitHub
Partager Twitter Partagez cette article sur GG+
Re: Security Image Weblinks
Xoops accro
Inscrit: 16/08/2005 19:46
De Nanterre
Messages: 2331
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

Posté le : 22/08/2008 07:24

eparcyl... tranquille.
Partager Twitter Partagez cette article sur GG+
Re: Security Image Weblinks
Guest_
b'jour,

Bon... j'ai rien fait dans ce topic, mais c'est pas une raison pour ne rien demander

La version Xoops 2.3 intègre le captcha en automatique sur certains formulaires du core (si j'ai bien vu, il y a au moins le formulaire d'enregistrement).

Du coup, dans la liste des hacks récoltés dans ce topic, on peut déjà rayer ceux qui touchent les formulaires du core :

Citation :

- formulaire d'enregistrement
- commentaires
- bloc Infos du site


Restent donc grâce aux énergiques contrib' d'Eparcyl et de Kraven30 notamment ces modules :

Citation :

- News
- TellAFriend
- Formulaire
- Wfdownloads
- Wordbook
- Newbb
- Pages
- Catads
- Weblinks
- Mydownloads
- Mylinks
- X-movie
- Liaise
- Smartsection
- Smartfaq
- xcgal
- myAlbum
- Adresses
- Jobs
- CBB



J'en viens donc à ma question : peut-on désactiver le code Captcha du Framework ? Ou alors personnaliser l'apparence de l'image de sécurité que génère ce script ? Et surtout, peut-on distribuer les permissions comme avec le module Security Images ?

Merci pour vos lumières!

Posté le : 05/01/2009 02:45
Partager Twitter Partagez cette article sur GG+

 Haut   Précédent   Suivant
« 1 ... 6 7 8 (9) 10 »



Vous pouvez voir les sujets.
Vous ne pouvez pas débuter de nouveaux sujets.
Vous ne pouvez pas répondre aux contributions.
Vous ne pouvez pas éditer vos contributions.
Vous ne pouvez pas effacez vos contributions.
Vous ne pouvez pas ajouter de nouveaux sondages.
Vous ne pouvez pas voter en sondage.
Vous ne pouvez pas attacher des fichiers à vos contributions.
Vous ne pouvez pas poster sans approbation.

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

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