Re: Security Image Weblinks | Titre du sujet : Re: Security Image Weblinks par eparcyl92 sur 07/09/2007 02:33:45
Bonjour, Cela fonctionne chez vous? Pas moi... domage, tout le reste est ok. A+
Citation : kraven30 a écrit: Pour Xmovie 2.56
Dans submit.php: Vers la Ligne 52:
if (!empty($_POST['submit'])) {
[color=CC0000]// Hack SecurityImage by 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 Kraven30[/color]
$submitter = !empty($xoopsUser) ? $xoopsUser->getVar('uid') : 0;
Vers la Ligne 351:
$xoopsTpl->assign('lang_cancel', _CANCEL);
[color=CC0000]// Hack SecurityImage by 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 Kraven30[/color]
$xoopsTpl->assign( array( "xoops_module_header" => "<link rel="stylesheet" type="text/css" media="all" href="".XOOPS_URL."/modules/x_movie/index.css" />" . $xoopsTpl->get_template_vars( "xoops_module_header" ) , "xoops_pagetitle" => _MI_X_MOVIE_SMNAME1 ) ) ;
Dans x_movie_submit.html: Vers la Ligne 261:
<{/if}> </td>
</tr>
[color=CC0000]<!-- Hack SecurityImage by Kraven30-->
<tr>
<td class="head"><{$lang_securityimage}></td>
<td class="even"><{$input_securityimage}></td>
</tr>
<!-- Hack SecurityImage by Kraven30-->[/color]
</table>
|
|