Pour XCGAL 2.03Dans upload.php:Vers la Ligne 145:
$xoopsTpl->assign('lang_notify', "_MD_NOTIFYAPPROVE");
$xoopsTpl->assign('lang_description', _MD_UPL_DESCRIPTION);
[color=CC0000]// Hack SecurityImage by Dugris
include_once(XOOPS_ROOT_PATH . "/class/xoopsformloader.php");
if ( defined('SECURITYIMAGE_INCLUDED') ) {
$security_image = new SecurityImage( _SECURITYIMAGE_GETCODE );
if ( $security_image->render() ) {
$xoopsTpl->assign('lang_securityimage', _SECURITYIMAGE_CODE);
$xoopsTpl->assign('input_securityimage' , $security_image->render() );
}
}
// Hack SecurityImage by Dugris[/color]
$xoopsTpl->assign('lang_submit', _SUBMIT);
$xoopsTpl->assign('lang_cancel', _CANCEL);
Dans db_imput.phpVers la Ligne 80:
// Picture upload
//
case 'picture':
if (!USER_CAN_UPLOAD_PICTURES) redirect_header('index.php',2,_MD_PERM_DENIED);
[color=CC0000]// Hack SecurityImage by Dugris
include_once(XOOPS_ROOT_PATH . "/class/xoopsformloader.php");
if ( defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
redirect_header( 'index.php' , 1, _SECURITYIMAGE_ERROR ) ;
}
// Hack SecurityImage by Dugris[/color]
$album = (int)$_POST['album'];
$title = $myts->makeTboxData4Save($_POST['title']);
Dans xcgal_upload.html:Vers la Ligne 85:
<input type="text" size="50" name="user4" maxlength="255" value="" class="textinput" /> </td>
</tr>
<{/if}>
[color=CC0000]<!-- Hack SecurityImage by Dugris-->
<tr>
<td class="head"><{$lang_securityimage}></td>
<td class="even"><{$input_securityimage}></td>
</tr>
<!-- Hack SecurityImage by Dugris-->[/color]
<tr>
<td colspan="2" align="center" class="foot">