Meh, thought it would be easier for users.3Di wrote:thx, lol you used add before there..
Leaving for Ireland, be my guest also the credits are not necessary.I'll change it later on today if not you and pls put there your credits u know.

Meh, thought it would be easier for users.3Di wrote:thx, lol you used add before there..
Leaving for Ireland, be my guest also the credits are not necessary.I'll change it later on today if not you and pls put there your credits u know.
I changed the FIND to include also the comment.RMcGirr83 wrote:Meh, thought it would be easier for users.
## 2009-02-17 - Version 0.3.0 beta
## - we now use the generateCaptchaTextRandom to generate characters "a-z/A-Z/1-9 (no zero, no 'o', no 'O')" though)
## - common language file modded to fit the above change
## - better FIND in ucp_register.php
## - added language file also for future implementations
## - packaged as MODX 1.2.2
Code: Select all
<?php
class captcha
{
function execute($code, $seed)
{
$image = generateCaptcha($code);
header('Content-type: image/png');
header('Cache-Control: no-cache, no-store');
header("Expires: Thu, 01 Jan 1970 00:00:00 GMT");
imagepng($image);
imagedestroy($image);
}
/* The rest of my code that actually creates the image...*/
}
?>
Would you mind to post a screenshot of the issue?madguy wrote:After I install the MOD and try to register, after I agree to the terms I get a JPEG image with the URL of registration page! I think that the reason is in these headers in ucp_register.php...
Code: Select all
Enter the code exactly as it appears. All letters are case "sensitive", there are (no zero, no o, no O).
sbd1965 wrote:I don't know if your preference is to fix the code to make it truly case-sensitive or to change the description to say that it is case insensitive.
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
if (empty($confirm_row['code']) || strcasecmp($confirm_row['code'], $confirm_code) !== 0)
#
#-----[ REPLACE WITH ]---------------------------------------------
#
//--- MOD: 3DCaptcha Olympus ------------------------------
// if (empty($confirm_row['code']) || strcasecmp($confirm_row['code'], $confirm_code) !== 0)
if (empty($confirm_row['code']) || strcmp($confirm_row['code'], $confirm_code) !== 0)
//--- MOD: 3DCaptcha Olympus ------------------------------
#
#-----[ OPEN ]------------------------------------------
#
includes/ucp/ucp_register.php
#
#-----[ FIND ]------------------------------------------
#
if (strcasecmp($row['code'], $data['confirm_code']) === 0)
#
#-----[ REPLACE WITH ]---------------------------------------------
#
//--- MOD: 3DCaptcha Olympus ------------------------------
// if (strcasecmp($row['code'], $data['confirm_code']) === 0)
if (strcmp($row['code'], $data['confirm_code']) === 0)
//--- MOD: 3DCaptcha Olympus ------------------------------
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM
http://img3.imageshack.us/img3/8122/screenshotjd4.png3Di wrote:Would you mind to post a screenshot of the issue?madguy wrote:After I install the MOD and try to register, after I agree to the terms I get a JPEG image with the URL of registration page! I think that the reason is in these headers in ucp_register.php...
I see, hmm. Please post here: http://gold.io3di.com/pastebin.php your includes/ucp/ucp_register.php file as PHP highlight, thank you.madguy wrote:http://img3.imageshack.us/img3/8122/screenshotjd4.png3Di wrote:Would you mind to post a screenshot of the issue?madguy wrote:After I install the MOD and try to register, after I agree to the terms I get a JPEG image with the URL of registration page! I think that the reason is in these headers in ucp_register.php...
http://gold.io3di.com/pastebin.php?mode=view&s=23Di wrote:I see, hmm. Please post here: http://gold.io3di.com/pastebin.php your includes/ucp/ucp_register.php file as PHP highlight, thank you.
phpinfo() has been disabled for security reasons.Do you have GD library enabled in your php.ini? Have a look with the phpinfo facility provided by your phpBB3 ACP, thanks.
Okay, anyway here's the Vanilla phpBB3.0.4 file I modded: http://gold.io3di.com/pastebin.php?mode=view&s=3madguy wrote:http://gold.io3di.com/pastebin.php?mode=view&s=23Di wrote:I see, hmm. Please post here: http://gold.io3di.com/pastebin.php your includes/ucp/ucp_register.php file as PHP highlight, thank you.phpinfo() has been disabled for security reasons.Do you have GD library enabled in your php.ini? Have a look with the phpinfo facility provided by your phpBB3 ACP, thanks.Waiting for hosting staff to reply...
Nope, it didn't fix the bug.3Di wrote:Okay, anyway here's the Vanilla phpBB3.0.4 file I modded: http://gold.io3di.com/pastebin.php?mode=view&s=3
there was a small error and I fixed there the latest bug as per the above posts, use this instead and let me know, please.