Hi!
Captcha scheint jetzt ja neben tip-a-friend auch ins Gästebuch integriert zu sein.
Für meine Anwendungen wäre allerdings Captcha im create-code, also im Registrations-Formular, der sr_feuser_register sicherheitstechnisch die optimal Lösung.
Konnte das bereits jemand realisieren? Die notwendigen Änderungen klingt laut "freeCap" extension ja nicht so aufwendig.
Zitat:
Class inclusion and instantiation
The tx_srfreecap_pi2 class may be used in any Typo3 frond end plugin. Insert statements similar to the following in order to include it and instantiate it your script: PHP-Code: if (t3lib_extMgm::isLoaded('sr_freecap') ) {
require_once(t3lib_extMgm::extPath('sr_freecap').'pi2/class.tx_srfreecap_pi2.php');
$this->freeCap = t3lib_div::makeInstance('tx_srfreecap_pi2');
}
Filling the CAPTCHA subpart marker
Insert statements similar to the following in order to fill the CAPTCHA subpart marker: PHP-Code: if (is_object($this->freeCap)) {
$markerArray = array_merge($markerArray, $this->freeCap->makeCaptcha());
} else {
$subpartArray['###CAPTCHA_INSERT###'] = '';
}
Method makeCaptcha() returns a marker array with filled in values for markers: ###SR_FREECAP_NOTICE###, ###SR_FREECAP_CANT_READ### and ###SR_FREECAP_IMAGE###. Checking the input string against the CAPTCHA string
Insert statements similar to the following in order to validate the string entered by the user in the CAPTCHA input field: PHP-Code: if (is_object($this->freeCap) && !$this->freeCap->checkWord($your-form-data['captcha_response'])) {
do-something about-it
}
Method checkWord($string) returns true if the correct string was entered or false otherwise
|
Kann jemand mir als php-dummy vielleicht erklären, wo und ob ich den Code in die class.tx_srfeuserregister_pi1.php einfügen darf?
Würde mir irgendwie das Wochenende retten ;-)
Vielen, vielen Dank schonmal für Antworten ...
philipp