I too have followed the instructions for this mod and get the error message:
Error including libraries: Missing right curly or square bracket at /home/basshook/public_html/links/cgi-bin/admin/db_utils.pl line 627, at end of linesyntax error at /home/basshook/public_html/links/cgi-bin/admin/db_utils.pl line 627, at EOFCompilation failed in require at add.cgi line 31.Make sure they exist, permissions are set properly, and paths are set correctly
I noticed when I copy/paste the code into db_utils.pl using PSPad it doesn't look the same as your post. I tried word wrapping but that didn't look any better. Would this be the cause?
sub create_captcha_form { #----------------------------------------------------------- # Create the form for add.cgi securityrequire "admin/captcha/captcha.pl"; $crypt = &generateCode(6); if ($crypt){ $i_width = $captcha_length*$captcha_width; $output = qq|<img src="$captcha_webfolder/$crypt.png" width="$i_width" height="$captcha_height" border="0"><br> <input type="hidden" name="crypt" value="$crypt"> Enter the characters you see in the image: <input type="text" name="code" value=""><br> Note: the numbers zero (0) and one (1) do not appear in the image. Refresh/reload this page for a new image. If you are uncertain of a character, take your best guess.|; return $output; } else{ &site_html_add_failure("Code not generated (file error)! Check to be sure that the script is properly configured.") and return; } }
Nootkan
Error including libraries: Missing right curly or square bracket at /home/basshook/public_html/links/cgi-bin/admin/db_utils.pl line 627, at end of linesyntax error at /home/basshook/public_html/links/cgi-bin/admin/db_utils.pl line 627, at EOFCompilation failed in require at add.cgi line 31.Make sure they exist, permissions are set properly, and paths are set correctly
I noticed when I copy/paste the code into db_utils.pl using PSPad it doesn't look the same as your post. I tried word wrapping but that didn't look any better. Would this be the cause?
sub create_captcha_form { #----------------------------------------------------------- # Create the form for add.cgi securityrequire "admin/captcha/captcha.pl"; $crypt = &generateCode(6); if ($crypt){ $i_width = $captcha_length*$captcha_width; $output = qq|<img src="$captcha_webfolder/$crypt.png" width="$i_width" height="$captcha_height" border="0"><br> <input type="hidden" name="crypt" value="$crypt"> Enter the characters you see in the image: <input type="text" name="code" value=""><br> Note: the numbers zero (0) and one (1) do not appear in the image. Refresh/reload this page for a new image. If you are uncertain of a character, take your best guess.|; return $output; } else{ &site_html_add_failure("Code not generated (file error)! Check to be sure that the script is properly configured.") and return; } }
Nootkan