Re: Class Security image de Duris Pour le Module Addresses 1.7 de Shine | Titre du sujet : Re: Class Security image de Duris Pour le Module Addresses 1.7 de Shine par eparcyl92 sur 28/05/2008 05:58:21
Bonjour, Pour pousser le bouchon plus loin encore... toujours pour ADDRESSE.
modlink.php
if (!empty($HTTP_POST_VARS['submit'])){
[b][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][/b]
$eh = new ErrorHandler; //ErrorHandler object
et puis
$xoopsTpl->assign('lang_description', _MD_DESCRIPTIONC);
[b][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][/b]
$xoopsTpl->assign('lang_sendrequest', _MD_SENDREQUEST);
le fichier addresses_modlink.html
<textarea name=description cols=45 rows=7><{$link.description}></textarea>
</td>
</tr>
[b][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][/b]
<tr>
Bonne journée
|
|