Fork me on GitHub

Rapport de message :*
 

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
Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

87 Personne(s) en ligne (72 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 87 | Plus ...