Zum Inhalt springen

Vorstellung wt_calculating_captcha: Neue captcha Extension

Erstellt am 10. Januar 2009 · 11 Antworten · letzte Antwort am 6. März 2009

Tags: Sicherheit, Info

einpraegsam.​net ·

Aufgabe:
Weitere captcha Erweiterung, die den User etwas Kopfrechnen abverlangt und in anderen Erweiterungen easy eingebunden werden kann. Powermail 1.4.6 unterstützt calculating captcha bereits.

Umsetzung:
wt_calculating_captcha bringt ein Captcha Bild mit einer kleinen Rechenaufgabe. Das richtige Ergebnis bringt einen weiter.
Das kann per Typoscript eingestellt werden:
- Schriftart
- Schriftfarbe
- Schriftgröße
- Abstand
- Winkel
- Hintergrundbild
- Rechenoperatoren

Sinn:
Wie bereits bekannt sind captcha kein wirkliches Hindernis für Spammer - aber vielleicht hält es ein paar Monate 😃

Beispiel:
Bild: design-and-style.de/…/captcha.png
Selbstverständlich kann das Bild besser erkennbar gemacht werden, ist jedoch absichtlich so eingestellt

Link:
http://typo3.org/extensions/repository/

just2b ·

also das is ja wirklich unlesbar, hast keine besseren beispiele?

ich mit meinen gut lesbaren 4 zahlen komm eignetlich gut durch, immer wieder überraschend im grunde

georg

einpraegsam.​net ·

Update: wt_calculating_captcha 0.1.2 kann jetzt auch mit der Standard Kontaktformular Erweiterung genutzt werden (Weitere Infos im entsprechenden Handbuch)

underdog ·

Hallo,

ich habe deine Extension lt. Anleitung beim Standardformular installiert, erhalte aber leider folgende Fehlermeldung

Warning: imagecreatefrompng(/.../typo3conf/ext/wt_calculating_captcha/files/img/bg.png) [function.imagecreatefrompng]: failed to open stream: No such file or directory in /.../blog/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php on line 69

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /.../blog/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php on line 70

Warning: imagettftext() expects parameter 1 to be resource, boolean given in /.../blog/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php on line 80

Warning: imagepng(): supplied argument is not a valid Image resource in /.../blog/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php on line 81

Warning: imagedestroy(): supplied argument is not a valid Image resource in /.../blog/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php on line 82

Warning: Cannot modify header information - headers already sent by (output started at /.../blog/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php:69) in /.../blog/typo3/typo3/sysext/cms/tslib/class.tslib_fe.php on line 3226

Ich vermute mal das liegt an irgend einer Grafikeinstellung.
Hoffe du kannst mir hier weiterhelfen

danke im voraus
Gruß
underdog

just2b ·

IMO Bug in der Extension, weil der absolute Pfad hardcodeded ist, was zu Problemen führt wenn man in einem Unterverzeichnis arbeitet

lg georg

einpraegsam.​net ·

???

var $captchaimage = 'EXT:wt_calculating_captcha/captcha.png'; // Path to captcha image
...
imagepng($this->img, t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT').'/'.$GLOBALS['TSFE']->tmpl->getFileName($this->captchaimage)); // save image file
einpraegsam.​net ·

@underdog: Aber genau hier wäre eine Debugausgabe interessant bei dir - ca. Zeile 80:

t3lib_div::debug(t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT').'/'.$GLOBALS['TSFE']->tmpl->getFileName($this->captchaimage));

Grüße

micky1708 ·

Hallo,
genau vor diesem Problem mit dem Pfad sitze ich gerade.

<b>Warning</b>:  imagecreatefrompng(/home/www/web105/html/typo3conf/ext/wt_calculating_captcha/files/img/bg.png) [<a href='function.imagecreatefrompng'>function.imagecreatefrompng</a>]: failed to open stream: No such file or directory in <b>/home/www/web105/html/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php</b> on line <b>69</b><br />
<br />
<b>Warning</b>:  imagecolorallocate(): supplied argument is not a valid Image resource in <b>/home/www/web105/html/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php</b> on line <b>70</b><br />

<br />
<b>Warning</b>:  imagettftext() expects parameter 1 to be resource, boolean given in <b>/home/www/web105/html/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php</b> on line <b>80</b><br />
<br />
<b>Warning</b>:  imagepng(): supplied argument is not a valid Image resource in <b>/home/www/web105/html/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php</b> on line <b>81</b><br />
<br />

<b>Warning</b>:  imagedestroy(): supplied argument is not a valid Image resource in <b>/home/www/web105/html/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php</b> on line <b>82</b><br />
<br />
<b>Warning</b>:  Cannot modify header information - headers already sent by (output started at /home/www/web105/html/typo3/typo3conf/ext/wt_calculating_captcha/class.tx_wtcalculatingcaptcha.php:69) in <b>/home/www/web105/html/typo3/typo3/sysext/cms/tslib/class.tslib_fe.php</b> on line <b>3226</b><br />

Ich arbeite in einem Unterverzeicnis. Wo kann ich den korrekten Pfad eingeben?
Oder gibt es eine alternative Extension (Captcha mit Rechenaufgabe)?

Für schnelle Hilfe dankt
Micky