MyXoops Forum

Forum - myXOOPS German Support

8 - 4 = ?  
Geben Sie das Ergebnis der Berechnung ein
Sie haben max. 10 Versuche.
 
* = Erforderlich

XOOPS_TOKEN_REQUEST?

Betreff: XOOPS_TOKEN_REQUEST?
von frankblack am 28.10.2009 23:02:38

Wie verwende ich den richtig? So etwa?
$fileform->addElement(new XoopsFormHidden('XOOPS_TOKEN_REQUEST'$GLOBALS['xoopsSecurity']->createToken()));


und dann dort wo es ankommen soll:
if (!$GLOBALS['xoopsSecurity']->check()) {
redirect_header('index.php'2implode('<br />'$GLOBALS['xoopsSecurity']->getErrors()));
exit();
}


Wenn dies soweit richtig sein sollte, wäre es auch möglich, dass check() auch einen $_POST-Inhalt prüfen könnte?

Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag
Modulentwicklung New Xoops Xcreate Module 0 5326 26.11.2025 15:22
efkan Gehe zum letzten Beitrag
Modulentwicklung XOOPS Custom Field Module 1 1813 24.11.2025 11:21
Goffy Gehe zum letzten Beitrag