Danke @McCavity!
Das klingt gut - aber ich habe nicht SRFREECAP, sondern die Capture-Libriary (capture).
Ich hab' mir 'nen Wolf gesucht: Diese Extension (Plugin/Lib?) hinterläßt im BE keine Spuren. Weder im Constant/Setup-Editor noch in der Constant-Oberfläche. Auch eine Suche im Objekt-Analyser verlief erfolglos.
Die Doku der Extension ist sehr spärlich, Eigenschaften werden erst gar nicht angesprochen.
Ich hab' es mit PHP in der captcha.php versucht:
<?php
/***************************************************************************
*
* Filename : image.php
* Began : 2005/04/04
* Modified :
* Copyright : (c) 2005 xkare.com
* Version : 1.0
* Written by : Mert ÖÐÜT in istanbul / TURKEY
*
* You are encouraged to redistribute and / or modify this program under the terms of
* the GNU General Public License as published by the Free Software Foundation
* (www.fsf.org); any version as from version 2 of the License.
*
***************************************************************************/
session_start();
function strrand($length)
{
$str = "";
while(strlen($str)<$length){
$random=rand(48,122);
#if( ($random>47 && $random<58-) ){
if (ereg('[A-Za-z]',chr($random)))
$str.=chr($random);
#}
}
return $str;
}
# $imgHeight = 17;
# $imgWidth = 47;
$imgHeight = 34;
$imgWidth = 94;
$text = $_SESSION['tx_captcha_string'] = strrand(5);
$img_number = imagecreate($imgWidth,$imgHeight);
$backcolor = imagecolorallocate($img_number,244,244,244);
$textcolor = imagecolorallocate($img_number,0,0,0);
$white = imagecolorallocate($img_number, 0xFF, 0xFF, 0xFF);
imagefill($img_number,0,0,$backcolor);
Imagestring($img_number,5,1,1,$text,$textcolor);
//some obfuscation
for ($i=0; $i<3; $i++) {
$x1 = rand(0, $imgWidth - 1);
$y1 = rand(0, round($imgHeight / 10, 0));
$x2 = rand(0, round($imgWidth / 10, 0));
$y2 = rand(0, $imgHeight - 1);
imageline($img_number, $x1, $y1, $x2, $y2, $white);
$x1 = rand(0, $imgWidth - 1);
$y1 = $imgHeight - rand(1, round($imgHeight / 10, 0));
$x2 = $imgWidth - rand(1, round($imgWidth / 10, 0));
$y2 = rand(0, $imgHeight - 1);
imageline($img_number, $x1, $y1, $x2, $y2, $white);
/* $cx = rand(0, $imgWidth - 50) + 25;
$cy = rand(0, $imgHeight - 50) + 25;
$w = rand(1, 24);
imagearc($img_number, $cx, $cy, $w, $w, 0, 360, $white);
*/ }
header("Content-type: image/png");
imagepng($img_number);
Die Änderungen der Zeilen 36 u.37 haben jedoch lediglich eine Vergrößerung des Bildhintergrundes geführt.
Nun bin ich kein PHP-Guru, aber ich meine förmlich zu riechen, dass man hier die Größe der Ziffern ändern kann??
Bild: feuerwehr-bremen.org/…/captcha.php
In freudiger Erwartung eines kleinen hilfreichen Hinweises 😉