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]   Go Down

Author Topic: Configuration problems with Captcha 3.0  (Read 2619 times)

0 Members and 1 Guest are viewing this topic.

shafty

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Configuration problems with Captcha 3.0
« on: April 29, 2008, 10:10:26 am »

Im having trouble with the configuration in codebase.php.
I want to use captcha only for the registration part, not the login part as it is now.
ivé tried to change the code like they did in the thread beneth, but it does not work.
http://forum.coppermine-gallery.net/index.php/topic,47125.0.html

Logged

shafty

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Configuration problems with Captcha 3.0
« Reply #1 on: April 29, 2008, 11:02:06 am »

SOLVED By removing >>>
 
case 'login.php':
            $valid_groups = explode(',', $CAPTCHA_DISABLE['login']);
            if (!in_array(USER_GROUP, $valid_groups) OR $CAPTCHA_DISABLE['login'] == '') {
                $exper = '(<input type="password".*</td>)';
                if (preg_match($exper, $html)) {
                    $newcpch = '<!-- CAPTCH PLUGIN 3 --><input type="password" class="textinput" name="password" style="width: 100%" tabindex="2" /></td></tr><tr><td class="tableb">' . $lang_plugin_captcha_conf . '</td><td class="tableb" colspan="2"><input type="text" name="confirmCode" id="confirmCode" size="20" class="textinput" style="width=50%" tabindex="3"><img src="captcha.php" align="middle"></td>';
                    $html = preg_replace($exper, $newcpch, $html);
                }
            }
            break;
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.