16
10x DuGris for this great XOOPS eddition
For using it with weblinks module try this one:
open submit.php round line 73, look for:
// add preview mode
if (($op == 'post')||($op == 'ignore'))
{
add after it:
// Tzvook // Hack 4 SecurityImage by DuGris
include_once(XOOPS_ROOT_PATH . "/class/xoopsformloader.php");
if ( defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
redirect_header( 'j-a-v-a-script:history.go(-1)', 2, _SECURITYIMAGE_ERROR ) ;
exit();
}
// Tzvook // Hack SecurityImage by DuGris
(replace "j-a-v-a-script" with "javascript" ... since it is sanitizing my code now...)open include/submit_form.php and look for
// button
$tray_button = new XoopsFormElementTray( '' );
Add
before it :
// Tzvook 4 SecurityImage
$tray_button = new XoopsFormElementTray( '' );
// Hack SecurityImage by DuGris
if ( defined('SECURITYIMAGE_INCLUDED') ) {
$security_image = new SecurityImage( _SECURITYIMAGE_GETCODE );
if ($security_image->render()) {
$tray_button->addElement($security_image, true);
}
}
// Tzvook // Hack SecurityImage by DuGris
$builder->add_element( $tray_button );
Enjoy !!