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 ... 30 31 32 33 [34] 35 36 37 38 ... 41   Go Down

Author Topic: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard  (Read 751009 times)

0 Members and 1 Guest are viewing this topic.

Leonidas

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
    • Professional Foto-Studio
Re: Captcha (Visual Confirmation) for adding comments
« Reply #660 on: November 15, 2008, 08:08:56 am »

italian translation added (just a few words... but some love reading his native language!) :)
The Russian added translation (only a few words..., but there is some love, reading his native language!)
Logged
I left from paradise!?...

Leonidas

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
    • Professional Foto-Studio
Re: Captcha (Visual Confirmation) for adding comments
« Reply #661 on: November 15, 2008, 08:55:22 am »

Because of Captcha the pattern (theme) of gallery parts. It basically concerns where "Input" (enter a name of the user and the password for an input) in gallery and "Registration"
Logged
I left from paradise!?...

rashid

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard
« Reply #662 on: November 21, 2008, 11:06:22 pm »

I can`t see the image, always it seems broken in IE and nothing in firefox!!

I reinstall it twice and nothign, I make a fresh install of copermine and install /configure /etc and nothing.

I have all necesary GD2 with freetype support

There is the output of the debug php for the admin account:

Code: [Select]
USER:
------------------
Array
(
    [ID] => 1fb0dba66de749d403ba7740817e7c74
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => rashid
    [groups] => Array
        (
            [0] => 1
        )

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg_filetypes; (0s)
    [1] => select * from cpg_plugins order by priority asc; (0s)
    [2] => delete from `pzdotcom_copp1`.cpg_sessions where time<1227300592 and remember=0; (0s)
    [3] => delete from `pzdotcom_copp1`.cpg_sessions where time<1226094592; (0s)
    [4] => select user_id from `pzdotcom_copp1`.cpg_sessions where session_id = '9611e16e1f373e6d64c1653a053df19a' (0s)
    [5] => select user_id as id, user_password as password from `pzdotcom_copp1`.cpg_users where user_id=1 (0s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `pzdotcom_copp1`.cpg_users AS u INNER JOIN `pzdotcom_copp1`.cpg_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `pzdotcom_copp1`.cpg_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
    [8] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0s)
    [10] => update `pzdotcom_copp1`.cpg_sessions set time='1227304192' where session_id = '9611e16e1f373e6d64c1653a053df19a' (0s)
    [11] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 1 (0s)
    [12] => DELETE FROM cpg_banned WHERE expiry < '2008-11-21 21:49:52' (0s)
    [13] => SELECT * FROM cpg_banned WHERE (ip_addr='201.237.139.74' OR ip_addr='201.237.139.74' OR user_id=1) AND brute_force=0 (0s)
    [14] => UPDATE cpg_config SET value = '0' WHERE name = 'debug_mode' (0s)
    [15] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
    [gallery_name] => copermine
    [gallery_description] => cope
    [gallery_admin_email] => info@gallerywebs.com
    [ecards_more_pic_target] => http://perezzeledon.com/copermine/
    [home_target] => index.php
    [enable_zipdownload] => 1
    [time_offset] => 0
    [enable_help] => 2
    [clickable_keyword_search] => 1
    [enable_plugins] => 1
    [ban_private_ip] => 0
    [browse_batch_add] => 1
    [lang] => english
    [language_fallback] => 1
    [charset] => utf-8
    [language_list] => 0
    [language_flags] => 0
    [language_reset] => 1
    [theme] => classic
    [theme_list] => 0
    [theme_reset] => 1
    [display_faq] => 0
    [custom_lnk_name] =>
    [custom_lnk_url] =>
    [show_bbcode_help] => 1
    [vanity_block] => 1
    [custom_header_path] =>
    [custom_footer_path] =>
    [main_table_width] => 100%
    [subcat_level] => 2
    [albums_per_page] => 12
    [album_list_cols] => 2
    [alb_list_thumb_size] => 50
    [main_page_layout] => breadcrumb/catlist/alblist/random,2/lastup,2
    [first_level] => 1
    [categories_alpha_sort] => 0
    [link_pic_count] => 0
    [thumbcols] => 4
    [thumbrows] => 3
    [max_tabs] => 12
    [caption_in_thumbview] => 1
    [views_in_thumbview] => 1
    [display_comment_count] => 0
    [display_uploader] => 0
    [display_filename] => 0
    [default_sort_order] => na
    [min_votes_for_rating] => 1
    [picture_table_width] => 600
    [display_pic_info] => 0
    [max_img_desc_length] => 512
    [max_com_wlength] => 38
    [display_film_strip] => 1
    [display_film_strip_filename] => 0
    [max_film_strip_items] => 5
    [slideshow_interval] => 5000
    [filter_bad_words] => 0
    [enable_smilies] => 1
    [disable_comment_flood_protect] => 0
    [max_com_lines] => 10
    [max_com_size] => 512
    [email_comment_notification] => 0
    [comments_sort_descending] => 0
    [comments_anon_pfx] => Guest_
    [jpeg_qual] => 80
    [thumb_width] => 100
    [thumb_use] => any
    [make_intermediate] => 1
    [picture_width] => 400
    [max_upl_size] => 1024
    [max_upl_width_height] => 2048
    [auto_resize] => 0
    [allow_private_albums] => 1
    [show_private] => 0
    [forbiden_fname_char] => $/\\:*?"'<>|` &
    [allowed_img_types] => ALL
    [allowed_mov_types] => ALL
    [media_autostart] => 1
    [allowed_snd_types] => mp3/midi/mid/wma/wav/ogg
    [allowed_doc_types] => doc/txt/rtf/pdf/xls/pps/ppt/zip/gz/mdb
    [thumb_method] => im
    [impath] => /usr/bin/
    [im_options] => -antialias
    [read_exif_data] => 0
    [read_iptc_data] => 0
    [fullpath] => albums/
    [userpics] => userpics/
    [normal_pfx] => normal_
    [thumb_pfx] => thumb_
    [default_dir_mode] => 0777
    [default_file_mode] => 0666
    [allow_user_registration] => 0
    [allow_unlogged_access] => 1
    [reg_requires_valid_email] => 1
    [reg_notify_admin_email] => 0
    [admin_activation] => 0
    [allow_duplicate_emails_addr] => 0
    [upl_notify_admin_email] => 0
    [allow_memberlist] => 0
    [allow_email_change] => 0
    [users_can_edit_pics] => 0
    [login_threshold] => 5
    [login_expiry] => 10
    [report_post] => 0
    [user_profile1_name] => Location
    [user_profile2_name] => Interests
    [user_profile3_name] => Website
    [user_profile4_name] => Occupation
    [user_profile5_name] =>
    [user_profile6_name] => Biography
    [user_field1_name] =>
    [user_field2_name] =>
    [user_field3_name] =>
    [user_field4_name] =>
    [cookie_name] => coppermine
    [cookie_path] => /
    [smtp_host] =>
    [smtp_username] => **********
    [smtp_password] => ******
    [log_mode] => 0
    [log_ecards] => 1
    [vote_details] => 0
    [hit_details] => 0
    [debug_mode] => 0
    [debug_notice] => 0
    [offline] => 0
    [update_config] => Save new configuration
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.8 - OK
------------------
mySQL version: 4.1.22-standard
------------------
Coppermine version: 1.4.19(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support: 1

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.22
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.1.2
Linked Version 1.2.1.2
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | proc_open | proc_open
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 32M | 32M
post_max_size | 8M | 8M
==========================
Page generated in 0.08 seconds - 16 queries in 0 seconds - Album set : ; Meta set: ;

Edit:Added code tag around debug info.
« Last Edit: December 05, 2008, 10:31:40 am by Sami »
Logged

Ludo

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 706
    • E+GiElle
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard
« Reply #663 on: November 22, 2008, 10:19:47 am »

This is http://perezzeledon.com/copermine/captcha.php output:  ::)

Code: [Select]
Warning: main(include/captcha.class.php) [function.main]: failed to open stream: No such file or directory in /home/pzdotcom/public_html/copermine/captcha.php on line 20

Warning: main(include/captcha.class.php) [function.main]: failed to open stream: No such file or directory in /home/pzdotcom/public_html/copermine/captcha.php on line 20

Warning: main(include/captcha.class.php) [function.main]: failed to open stream: No such file or directory in /home/pzdotcom/public_html/copermine/captcha.php on line 20

Fatal error: main() [function.require]: Failed opening required 'include/captcha.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/pzdotcom/public_html/copermine/captcha.php on line 20

Place all files where they are supposed to be placed...
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard
« Reply #664 on: November 22, 2008, 11:02:35 am »

You are using 1.7.1 version which has a bug and outdated
Please try 3.0 and let us know if you have any problem
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Leonidas

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 5
    • Professional Foto-Studio
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard
« Reply #665 on: November 23, 2008, 01:14:37 am »

You are using 1.7.1 version which has a bug and outdated
Please try 3.0 and let us know if you have any problem
And what there about addition of Russian and displacement schedules after installation Captcha?
Logged
I left from paradise!?...

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard
« Reply #666 on: November 23, 2008, 06:20:47 am »

Thank you for Russian translation , I'll put it to next package
and about your placement issue , it could be your custom theme problem , I don't see any problem with classic theme on my test bed
Logged
‍I don't answer to PM with support question
Please post your issue to related board

salvo

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard
« Reply #667 on: December 02, 2008, 03:38:35 pm »

Great script seems to be working for me on 1.4.9, not getting any spam registrations any more.  I did have a few questions though.


1. Can I have this set just for the registration page. (I did see it can be adjusted for groups)  If not can you incorporate this for the next release
2. How can I adjust the width, not of the image, I see where I can do that in the files, but the field in which the image is placed on the confirm line, it moves out of alignment with the other fields. I've played around with a few files and values but no go.  I've tried to search the forums for it but can't seem to figure it out.

Thank you in advance for any and all responses.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard
« Reply #668 on: December 02, 2008, 11:24:45 pm »

Great script seems to be working for me on 1.4.9,
Yikes! That version is ancient! Upgrade!

1. Can I have this set just for the registration page. (I did see it can be adjusted for groups)  If not can you incorporate this for the next release
Will be a feature in cpg1.5.x

2. How can I adjust the width, not of the image, I see where I can do that in the files, but the field in which the image is placed on the confirm line, it moves out of alignment with the other fields. I've played around with a few files and values but no go. 
Start a thread of your own, describing your question (and only that one question, as we have a "one question per thread" policy that you agreed to when signing up) together with a link to your gallery.
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard
« Reply #669 on: December 03, 2008, 03:17:30 am »

1. Can I have this set just for the registration page. (I did see it can be adjusted for groups)  If not can you incorporate this for the next release
Yes you can set it just for registration page
Edit {gallery-root}/plugins/captcha/codebase.php
around line #173 you'll see $CAPTCHA_DISABLE array , there you can set who should not see the captcha in which page , as you want captcha to show only on registration page you should change that array to this:
Code: [Select]
    $CAPTCHA_DISABLE = array('login' => 'Administrators,Registered,Guests',
        'register' => 'Administrators,Registered',
        'comment' => 'Administrators,Registered,Guests',
        'report' => 'Administrators,Registered,Guests',
        'ecard' => 'Administrators,Registered,Guests',
        );
Logged
‍I don't answer to PM with support question
Please post your issue to related board

salvo

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard
« Reply #670 on: December 03, 2008, 03:15:17 pm »

Joachim,  When i said it worked for me on 1.4.9 I meant that I was using 1.4.19 of coppermine, which is hte latest and greatest. 


Samie, thank you this worked for me.

Also when I was talking about "How can I adjust the width, not of the image, I see where I can do that in the files, but the field in which the image is placed on the confirm line, it moves out of alignment with the other fields. I've played around with a few files and values but no go.  I've tried to search the forums for it but can't seem to figure it out. "  I meant that of the image Capthcya places on the confirm line, we should be able to adjust this now.  I don't think we have to wait for a coppermine update for this ?  I mean i see other websites that are able to change the width depending on how wide they their website.  I just can't seem how to fix it.  I'll do some more looking into the files.  I apologize for my original post and will be more specific the next time.  Thank you all for the reponses.
Logged

salvo

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard
« Reply #671 on: December 03, 2008, 04:50:30 pm »

Ok guys, I looked further into the code here, it seems that when they wrote this they wanted to seperate the actualy input field and the capthca image into two sep fields in the table.  But they either didn't put a markup for the captcha image code into the second col for that field or they just forgot to change the colspan to 1.  Either way if you guys want to fix it if you haven't already figured it out do the following.

Edit {gallery-root}/plugins/captcha/codebase.php

At or about line # 86 
Find the following Code

Code: [Select]
<!-- CAPTCH PLUGIN 3 --><tr><td class="tableb" height="25" width="40%">' . $lang_plugin_captcha_conf . '</td><td class="tableb_compact" colspan="2">
Change the colspan to 1

Code: [Select]
<!-- CAPTCH PLUGIN 3 --><tr><td class="tableb" height="25" width="40%">' . $lang_plugin_captcha_conf . '</td><td class="tableb_compact" colspan="1">

I hope this helps, I know it helped me :)


-Salvo
Logged

onuzu

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard
« Reply #672 on: December 22, 2008, 04:33:19 am »

Hi All,

I've read through the posts on this topic and tried out quite a few suggestions but nothing worked for me. I get broken image with cross, no matter what I try.

It can be seen at http://lurrenzinc.com/photos/login.php?referer=index.php

When I tried to look up http://lurrenzinc.com/photos/plugins/captcha/captcha.php


I got this message;


Warning: require(plugins/captcha/lang/english.php) [function.require]: failed to open stream: No such file or directory in /home/lurrenzi/public_html/photos/plugins/captcha/include/init.inc.php on line 26

Warning: require(plugins/captcha/lang/english.php) [function.require]: failed to open stream: No such file or directory in /home/lurrenzi/public_html/photos/plugins/captcha/include/init.inc.php on line 26

Fatal error: require() [function.require]: Failed opening required 'plugins/captcha/lang/english.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/lurrenzi/public_html/photos/plugins/captcha/include/init.inc.php on line 26


I hope to get help soon.

Thanks.
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard
« Reply #673 on: December 22, 2008, 07:03:22 am »

Check if you have the requirement:
GD 2.x (2.0.28 or later is recommended) with Freetype support
ignore thoese warnings and fatal error , you shouldn't run captcha.php from plugins directory , you need to run it from gallery root
http://lurrenzinc.com/photos/captcha.php
do not forget to enable debug for us.
Logged
‍I don't answer to PM with support question
Please post your issue to related board

onuzu

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard
« Reply #674 on: December 23, 2008, 06:29:54 am »

Hi Sami,

Thanks for a quick reply. I've checked and my host met all the requirements. But please how can I run it from from gallery root, anywhere I can get the instructions?
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard
« Reply #675 on: December 23, 2008, 07:06:51 am »

When I say run it from gallery root I mean this:
http://lurrenzinc.com/photos/captcha.php

captcha.php is meant to run/call from gallery root and you shouldn't call it from plugin directory .
there is not any instruction it should works if you meet the requirement.
I see you uninstall the plugin , this way we can't help you
please install it and also enable debug and then let us know to check your gallery
Logged
‍I don't answer to PM with support question
Please post your issue to related board

onuzu

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard
« Reply #676 on: December 23, 2008, 07:12:47 am »

I have reinstalled capcha a enabled debug.

Thanks
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard
« Reply #677 on: December 23, 2008, 07:22:45 am »

Please disable rcmenu plugin,
that plugin is not compatible with captcha and it will break it.
Logged
‍I don't answer to PM with support question
Please post your issue to related board

onuzu

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard
« Reply #678 on: December 23, 2008, 07:26:28 am »

I have disabled rcmenu
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Captcha (Visual Confirmation) for comments/registration/reporting/login/ecard
« Reply #679 on: December 23, 2008, 07:32:54 am »

login as an administrator and post the debug info you get , please make sure to remove any password before post it
Logged
‍I don't answer to PM with support question
Please post your issue to related board
Pages: 1 ... 30 31 32 33 [34] 35 36 37 38 ... 41   Go Up
 

Page created in 0.025 seconds with 20 queries.