changes to captchasrv for running in MS Windows

Discussion re sg development. You don't have to be a developer.

changes to captchasrv for running in MS Windows

Postby josh » Thu Aug 30, 2007 12:55 pm

(I'm copying this over from the source forge support area):



Running captchasrv on Windows:

(a) You must have perl installed.
(b) One little modification is required in captchasrv.pl:

On line 312 where the commandstring for executing
convert is builded, change
the ' to " for the command-option arguments:
change ' to " for the argument of the fill option
change ' to " for the argument of the draw option

(Don't forget to escape with backslashes.)

From:

$cmdstr = ConvertExec . " -fill '#" . FillColor . "' " .
" -affine " . MagFactor . "," . InclFactor . "," .
SlantFactor . "," .
MagFactor . ",0,0" .
" -font " . FontFn . " -draw 'text 1,10 $quizword' " .
" -blur " . BlurFactor . " $TmpFn -";

To:

$cmdstr = ConvertExec . " -fill \"#" . FillColor . "\" " .
" -affine " . MagFactor . "," . InclFactor . "," .
SlantFactor . "," .
MagFactor . ",0,0" .
" -font " . FontFn . " -draw \"text 1,10 $quizword\" "
.
" -blur " . BlurFactor . " $TmpFn -";


I don't know if this breaks unix compatibility, maybe
someone can test it.


Greetings
Christoph
josh
 
Posts: 1371
Joined: Fri Aug 29, 2003 2:28 pm

Postby SysKoll » Thu Aug 30, 2007 2:44 pm

Doesn't seem to break Unix compatibility. The quoting is changed from single to double quote, which is OK.
-- SysKoll
SysKoll
 
Posts: 893
Joined: Thu Aug 28, 2003 9:24 pm


Return to Developers

Who is online

Users browsing this forum: No registered users and 12 guests

cron