Re: Security Image Weblinks | Titre du sujet : Re: Security Image Weblinks par kraven30 sur 23/07/2007 22:50:37
Pour Smartfaq 1.08
Dans submit.php: Vers la Ligne 43:
if (isset($_POST['post'])) {
$op = 'post';
[color=CC0000]// Hack SecurityImage by Dugris
include_once(XOOPS_ROOT_PATH . "/class/xoopsformloader.php");
if ( defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
redirect_header( 'index.php', 2, _SECURITYIMAGE_ERROR ) ;
exit();
}
// Hack SecurityImage by Dugris[/color]
} elseif (isset($_POST['preview'])) {
$op = 'preview';
Dans include/submit_inc.php: Vers la Ligne 78
$form->addElement($notify_checkbox);
}
[color=CC0000]// Hack SecurityImage by Dugris
if (defined('SECURITYIMAGE_INCLUDED')) {
$security_image = new SecurityImage( _SECURITYIMAGE_GETCODE );
if ($security_image->render()) {
$form->addElement($security_image, true);
}
}
// Hack SecurityImage by Dugris [/color]
$button_tray = new XoopsFormElementTray('', '');
|
|