Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: 1 ... 5 6 7 8 [9] 10   Go Down

Author Topic: [PLUGIN] CAPTCHA (anti-spam sur commentaires)  (Read 120949 times)

0 Members and 1 Guest are viewing this topic.

Xhino

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 30
Re: [PLUGIN] CAPTCHA (anti-spam sur commentaires)
« Reply #160 on: September 04, 2008, 04:10:31 pm »

4/ Ouvrez db_input.php

cherchez :
Code: [Select]
    case 'comment':
        if (!(USER_CAN_POST_COMMENTS)) cpg_die(ERROR, $lang_errors['perm_denied'], __FILE__, __LINE__);
ajoutez :
Code: [Select]
        require("include/captcha.class.php");
        if (!PhpCaptcha::Validate($_POST['confirmCode'])) {
          cpg_die(ERROR, "Confirmation code didn't matched", __FILE__, __LINE__);
        }

j'ai pas compris la, on le remplace le code ou bien en l'ajoute ci-dessus ?
Logged

Xhino

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 30
Re: [PLUGIN] CAPTCHA (anti-spam sur commentaires)
« Reply #161 on: September 04, 2008, 04:24:01 pm »

moi j'ai ca dans mon theme.php

Code: [Select]
<?php
define
('THEME_HAS_RATING_GRAPHICS'1);

$template_sys_menu_spacer ='<img src="themes/siteground8/images/line.gif" width="9" height="11" border="0" alt="" />';


function 
theme_display_film_strip(&$thumb_list$nbThumb$album_name$aid$cat$pos$sort_options$mode 'thumb')
{
    global 
$CONFIG$THEME_DIR;
    global 
$template_film_strip$lang_film_strip;

    static 
$template '';
    static 
$thumb_cell '';
    static 
$empty_cell '';
    static 
$spacer '';

    if ((!
$template)) {
        
$template $template_film_strip;
        
$thumb_cell template_extract_block($template'thumb_cell');
        
$empty_cell template_extract_block($template'empty_cell');
    }

    
$cat_link is_numeric($aid) ? '' '&amp;cat=' $cat;

    
$thumbcols $CONFIG['thumbcols'];
    
$cell_width ceil(100 $CONFIG['max_film_strip_items']) . '%';

    
$i 0;
    
$thumb_strip '';
    foreach(
$thumb_list as $thumb) {

        
$new_size 65;
        
preg_match('/(?<=width=")[0-9]*/',$thumb['image'],$matches,PREG_OFFSET_CAPTURE);
        
$srcWidth=$matches[0][0];
        
preg_match('/(?<=height=")[0-9]*/',$thumb['image'],$matches,PREG_OFFSET_CAPTURE);
        
$srcHeight=$matches[0][0];
        
$ratio max($srcWidth$srcHeight) / $new_size;
        
$ratio max($ratio1.0);
        
$destWidth = (int)($srcWidth $ratio);
        
$destHeight = (int)($srcHeight $ratio);
        
$thumb['image']=preg_replace('/width="[^"]*"/','width="'.$destWidth.'"',$thumb['image']);
        
$thumb['image']=preg_replace('/height="[^"]*"/','height="'.$destHeight.'"',$thumb['image']);
        
$i++;
        if (
$mode == 'thumb') {
            
$params = array('{CELL_WIDTH}' => $cell_width,
                
'{LINK_TGT}' => "displayimage.php?album=$aid$cat_link&amp;pos={$thumb['pos']}",
                
'{THUMB}' => $thumb['image'],
                
'{CAPTION}' => $thumb['caption'],
                
'{ADMIN_MENU}' => ''
                
);
        } else {
            
$params = array('{CELL_WIDTH}' => $cell_width,
                
'{LINK_TGT}' => "index.php?cat={$thumb['cat']}",
                
'{THUMB}' => $thumb['image'],
                
'{CAPTION}' => '',
                
'{ADMIN_MENU}' => ''
                
);
        }
        
$thumb_strip .= template_eval($thumb_cell$params);
    }

    if (
defined('THEME_HAS_FILM_STRIP_GRAPHICS')) {
        
$tile1 $THEME_DIR 'images/tile1.gif';
        
$tile2 $THEME_DIR 'images/tile2.gif';
    } elseif (
defined('THEME_HAS_FILM_STRIP_GRAPHIC')) {
        
$tile1=$tile2=$THEME_DIR 'images/tile.gif';
    } else {
        
$tile1=$tile2'images/tile.gif';
    }

    
$params = array('{THUMB_STRIP}' => $thumb_strip,
        
'{COLS}' => $i,
        
'{TILE1}' => $tile1,
        
'{TILE2}' => $tile2,
        );

    
ob_start();
    
starttable($CONFIG['picture_table_width']);
    echo 
template_eval($template$params);
    
endtable();
    
$film_strip ob_get_contents();
    
ob_end_clean();

    return 
$film_strip;
}
?>


je peut le faire comment ?

merci beaucoup.
Logged

François Keller

  • Moderator
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: [PLUGIN] CAPTCHA (anti-spam sur commentaires)
« Reply #162 on: September 04, 2008, 05:17:42 pm »

Vous faites référence au Mod initial qui est maintenant sous forme de plugin (sur le premier message en haut et en grand il y a
Code: [Select]
NOUVEAU : CAPTCHA Plugin ! Plus nécessaire de modifier le code  Grin
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

thekidfry

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 87
Re: [PLUGIN] CAPTCHA (anti-spam sur commentaires)
« Reply #163 on: October 01, 2008, 11:49:34 am »

moi j'ai instaler le plug in et rien ne ce passe

utlisateur :coppermine pass: coppermine

Logged

thekidfry

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 87
Re: [PLUGIN] CAPTCHA (anti-spam sur commentaires)
« Reply #164 on: October 01, 2008, 11:49:55 am »

ops voila le lien de ma galery : http://benabar.olympe-network.com/photos/
Logged

François Keller

  • Moderator
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: [PLUGIN] CAPTCHA (anti-spam sur commentaires)
« Reply #165 on: October 01, 2008, 12:01:08 pm »

merci d'ouvrir un nouveau post pour traiter de ce sujet
P.S. (est ce que tu utilise d'autres plugins ?)
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

thekidfry

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 87
Re: [PLUGIN] CAPTCHA (anti-spam sur commentaires)
« Reply #166 on: October 01, 2008, 12:01:36 pm »

online stat
Logged

titis14

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: [PLUGIN] CAPTCHA (anti-spam sur commentaires)
« Reply #167 on: November 07, 2008, 10:47:44 pm »

Bonjour
Aprés avoir installé le plugin et bien pour moi l'image du code ne s'affiche pas.
J'ai mis le fichier captcha.php à la racine du dossier de ma galerie installé le module par l'interface.
Ajouté le dossier fonts mon hébergeur à bien Freetype.

http://galerie.rcpirate.fr

Merci pour votre aide.
Logged

titis14

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: [PLUGIN] CAPTCHA (anti-spam sur commentaires)
« Reply #168 on: November 07, 2008, 10:51:58 pm »

Aprés désintallation et réinstallation du plugin tout est OK
Logged

informate

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 109
Re: [PLUGIN] CAPTCHA (anti-spam sur commentaires)
« Reply #169 on: March 05, 2009, 05:12:40 pm »

Salut, j'ai un problème avec le plugin Captcha, l'image n'apparait pas, pourquoi ?
Logged

Pascal YAP

  • Moderator
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Re: [PLUGIN] CAPTCHA (anti-spam sur commentaires)
« Reply #170 on: March 05, 2009, 05:30:24 pm »

Assurez-vous que votre serveur propose FreeType comme indiqué dans le premier post. (voir votre phpinfo.php)
Logged

informate

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 109
Re: [PLUGIN] CAPTCHA (anti-spam sur commentaires)
« Reply #171 on: March 05, 2009, 05:33:55 pm »

FreeType Support    enabled
FreeType Linkage    with freetype

C'est ok pourtant !
Logged

Pascal YAP

  • Moderator
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Re: [PLUGIN] CAPTCHA (anti-spam sur commentaires)
« Reply #172 on: March 05, 2009, 05:46:41 pm »

Essayez la version CAPTCHA 3.0 si ce n'est déjà fait.

captcha.php est à la racine de votre Galerie ?
Logged

informate

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 109
Re: [PLUGIN] CAPTCHA (anti-spam sur commentaires)
« Reply #173 on: March 05, 2009, 06:19:31 pm »

J'ai réinstallé, j'ai cette fois ci bien mis captcha.php à la racine car j'avais oublié mais toujours pareille !
Du coup je peux plus me logger là, car il demande aussi la confirmation pour se logger :S
Logged

informate

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 109
Re: [PLUGIN] CAPTCHA (anti-spam sur commentaires) >> PAS D'IMAGE
« Reply #174 on: March 06, 2009, 12:51:24 am »

Nan c'est bon j'ai trouvé un moyen de me logger en renomment ^^ bref...

Bon pour mon GD c'est OK:
Quote
GD Support    enabled
GD Version    bundled (2.0.28 compatible)
FreeType Support    enabled
FreeType Linkage    with freetype
GIF Read Support    enabled
GIF Create Support    enabled
JPG Support    enabled
PNG Support    enabled
WBMP Support    enabled
XBM Support    enabled

J'ai trouver des dizaines de personnes dans le topic captcha en anglais aillant le même problème, mais j'ai pas trouver comment le résoudre   :-\
http://forum.coppermine-gallery.net/index.php/topic,36319.0.html

-J'ai testé via captcha.php (ou non) sous IE, FF, Opera, Safari iphone,  et rien apparait !!!!
-Loggé ou pas, ça change pas  :(
-Sans les www, ou juste avec, rien non plus !!!
-En désactivant tout mes plugins, toujours rien  :'(
Logged

François Keller

  • Moderator
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: [PLUGIN] CAPTCHA (anti-spam sur commentaires)
« Reply #175 on: March 06, 2009, 07:10:02 am »

et c'est bien captcha 3.0 que vous utilisez ?
si oui, essayez les versions précédentes pour voir
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

informate

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 109
Re: [PLUGIN] CAPTCHA (anti-spam sur commentaires)
« Reply #176 on: March 06, 2009, 03:57:50 pm »

Alors en effet ça fonctionne avec la 2.0, j'ai réessayé avec la 3.0 mais toujours rien  :-\ cette version merde !
Logged

informate

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 109
Re: [PLUGIN] CAPTCHA (anti-spam sur commentaires)
« Reply #177 on: March 06, 2009, 04:35:46 pm »

Et c'est normale qu'avec la 2 il n'y a pas de table dans le BDD, et qu'avec la 3 ça en créé une ?
Logged

François Keller

  • Moderator
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: [PLUGIN] CAPTCHA (anti-spam sur commentaires)
« Reply #178 on: March 06, 2009, 04:59:43 pm »

oui c'est normal, le changement de la version 3 est justement la mise ne place d'une table dans la base de donnée
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

informate

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 109
Re: [PLUGIN] CAPTCHA (anti-spam sur commentaires)
« Reply #179 on: March 06, 2009, 05:05:29 pm »

Donc c'est quoi le problème avec la 3.0 ?
Logged
Pages: 1 ... 5 6 7 8 [9] 10   Go Up
 

Page created in 0.051 seconds with 20 queries.