Re: Captcha pour differents modules | Titre du sujet : Re: Captcha pour differents modules par eparcyl92 sur 19/06/2008 06:22:59
Le Repport de Newbb version 1.16
Après avoir fait les modifications principales sur le site de Dugris. Newbb version 1.16 de Dugris Si vous voullez sécurityimager la section repport de vos forums, vous faites, dans le fichier newbb/report.php ceci:
if ( isset($_POST['submit']) ) {
// Hack SecurityImage by DuGris
include_once(XOOPS_ROOT_PATH . "/class/xoopsformloader.php");
if ( defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
redirect_header( '(script removed)history.go(-1)' , 3, _SECURITYIMAGE_ERROR ) ;
exit();
}
// Hack SecurityImage by DuGris
$report_handler =& xoops_getmodulehandler('report', 'newbb');
Et, plus bas:
$button_tray = new XoopsFormElementTray('');
// Hack SecurityImage by Dugris
if (defined('SECURITYIMAGE_INCLUDED')) {
$security_image = new SecurityImage( _SECURITYIMAGE_GETCODE );
if ($security_image->render()) {
$report_form->addElement($security_image, true);
}
}
// Hack SecurityImage by Dugris
$submit_button = new XoopsFormButton('', 'submit', _SUBMIT, "submit");
Et voila Bonne journée
|
|