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:
le="color: #000000"><?php // add preview mode if (($op == 'post')||($op == 'ignore')) {
add after it:
le="color: #000000"><?php // 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
le="color: #000000"><?php // button $tray_button = new XoopsFormElementTray( '' );
Add
before it :
le="color: #000000"><?php // 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 !!