MyXoops Forum

Forum - myXOOPS German Support

0 + 2 = ?  
Geben Sie das Ergebnis der Berechnung ein
Sie haben max. 10 Versuche.
 
* = Erforderlich

Aw:: Wie kann das Captcha aus dem Frameworks von Xoops 2.3 in alte Module eingebaut werden?

Betreff: Aw:: Wie kann das Captcha aus dem Frameworks von Xoops 2.3 in alte Module eingebaut werden?
von alfred am 26.04.2009 12:58:02

Einbau:
$form->addElement(new XoopsFormCaptcha(), true);


Abfrage:
xoops_load("captcha");
$xoopsCaptcha = XoopsCaptcha::getInstance();
if (! 
$xoopsCaptcha->verify() ) {
    
$captcha_error = $xoopsCaptcha->getMessage();
    
// Hier wenns falsch ist , Fehlermeldung siehe oben
}

Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag