1
eparcyl92
WF-Links 1.06 RC 2 et Securityimage
  • 2008/8/23 15:26

  • eparcyl92

  • Just popping in

  • Posts: 30

  • Since: 2008/7/6 8


Good morning,
I'm trying to integrate the captcha of securityimage of Dugris in this super module.
The'm able to save a portion of the code in the file "submit.php
Quote:

$sform -> addElement( new XoopsFormHidden( 'approve', 0 ) );
}
$sform -> addElement( $option_tray );
// Hack SecurityImage by DuGris
if ( defined('SECURITYIMAGE_INCLUDED') ) {
$security_image = new SecurityImage( _SECURITYIMAGE_GETCODE );
if ($security_image->render()) {
$sform->addElement($security_image, true);
}
}
// Hack SecurityImage by DuGris [b][color=990000]

$button_tray = new XoopsFormElementTray( '', '' );
$button_tray -> addElement( new XoopsFormButton( '', 'submit', _SUBMIT, 'submit' ) );


But I do not see or I can put this second part of the code.

SecurityImage de DuGris

Do you have a small idea to give me?

Thank you and good night
eparcyl tranquil !!!

2
McDonald
Re: WF-Links 1.06 RC 2 et Securityimage
  • 2008/8/23 16:00

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


You probably have to insert the 2nd part at the beginning of the file submit.php after
include XOOPS_ROOT_PATH '/class/xoopsformloader.php';

3
eparcyl92
Re: WF-Links 1.06 RC 2 et Securityimage
  • 2008/8/23 17:00

  • eparcyl92

  • Just popping in

  • Posts: 30

  • Since: 2008/7/6 8


YES !! Thank you mcdonald

(remove espace j a v a s c r i p t)
Quote:

include XOOPS_ROOT_PATH . '/header.php';
include XOOPS_ROOT_PATH . '/class/xoopsformloader.php';

// Hack SecurityImage by DuGris
include_once(XOOPS_ROOT_PATH . "/class/xoopsformloader.php");
if ( defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
redirect_header( 'j a v a s c r i p t:history.go(-1)', 2, _SECURITYIMAGE_ERROR ) ;
exit();
}
// Hack SecurityImage by DuGris

$mytree = new XoopsTree( $xoopsDB -> prefix( 'wflinks_cat' ), 'cid', 'pid' );
global $wfmyts, $xoopsModuleConfig;


Thank you and good night
eparcyl tranquil !!!

Login

Who's Online

241 user(s) are online (119 user(s) are browsing Support Forums)


Members: 0


Guests: 241


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits