Fork me on GitHub

Rapport de message :*
 

Class Security image de Duris Pour le Module Addresses 1.7 de Shine

Titre du sujet : Class Security image de Duris Pour le Module Addresses 1.7 de Shine
par Guitariste sur 28/05/2008 00:06:12

Security image Pour le Module Addresses 1.7 de Shine

- Après Avoir installer La Class Sécurity image selon ce tuto
- Editez /templates/addresses_submit.htm en ajoutant ce qui est en rouge :

Citation :

<input type="checkbox" name="notify" value="1"><{$lang_notify}></input>
<{/if}>
</td>
</tr>
<!-- Hack SecurityImage by Dugris&Kraven30-->
<tr>
<td class="head"><{$lang_securityimage}></td>
<td class="even"><{$input_securityimage}></td>
</tr>
<!-- Hack SecurityImage by Dugris&Kraven30-->

</table>
<br />
<div style="text-align: center;"><input type="submit" name="submit" class="button" value="<{$lang_submit}>" />&nbsp;<input type="button" value="<{$lang_cancel}>" onclick="javascript:history.go(-1)" /></div>


- Puis éditez le fichier submit.php en ajoutant ce qui est en rouge :
Citation :


//End Catz edit

if (!empty($HTTP_POST_VARS['submit'])) {

//Hack SecurityImage by Dugris&Kraven30
include_once(XOOPS_ROOT_PATH . "/class/xoopsformloader.php");
if ( defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
redirect_header( 'submit.php' , 1, _SECURITYIMAGE_ERROR ) ;
}
//Hack SecurityImage by Dugris&Kraven30

$submitter = !empty($xoopsUser) ? $xoopsUser->getVar('uid') : 0;


- Puis toujours sur submit.php ajoutez ces lignes en rouge :

Citation :

$xoopsOption['template_main'] = 'pagesjaunes_submit.html';
include XOOPS_ROOT_PATH."/header.php";
ob_start();
xoopsCodeTarea("message",37,8);
$xoopsTpl->assign('xoops_codes', ob_get_contents());
ob_end_clean();
//Hack SecurityImage by Dugris&Kraven30
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&Kraven30

ob_start();
xoopsSmilies("message");
$xoopsTpl->assign('xoops_smilies', ob_get_contents());


Cia
Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

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