Titre du sujet : Re: x-Torrent 1.47 par eparcyl92 sur 18/06/2008 06:32:58
SECURITYIMAGE DE DuGris Fichier submit.php
if (isset($_POST['submit']) && !empty($_POST['submit']))
{
[b][color=009966]// Hack SecurityImage by DuGris
include_once(XOOPS_ROOT_PATH . "/class/xoopsformloader.php");
if ( defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
redirect_header( '(script removed)history.go(-1)' , 3, _SECURITYIMAGE_ERROR ) ;
exit();
}
// Hack SecurityImage by DuGris [/color][/b]
$notify = !empty($_POST['notify']) ? 1 : 0;
Et plus bas:
$button_tray = new XoopsFormElementTray('', '');
[b][color=009966]
// Hack SecurityImage by Dugris
if (defined('SECURITYIMAGE_INCLUDED')) {
$security_image = new SecurityImage( _SECURITYIMAGE_GETCODE );
if ($security_image->render()) {
$sform->addElement($security_image, true);
}
}
// Hack SecurityImage by Dugris [/color][/b]
$button_tray->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit'));
Fichier review.php:
if (!empty($_POST['submit']))
{
[b][color=009966]
// Hack SecurityImage by DuGris
include_once(XOOPS_ROOT_PATH . "/class/xoopsformloader.php");
if ( defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
redirect_header( '(script removed)history.go(-1)' , 3, _SECURITYIMAGE_ERROR ) ;
exit();
}
// Hack SecurityImage by DuGris [/color][/b]
$uid = !empty($xoopsUser) ? $xoopsUser->getVar('uid') : 0;
et plus bas:
$button_tray = new XoopsFormElementTray('', '');
[b][color=009966]
// Hack SecurityImage by Dugris
if (defined('SECURITYIMAGE_INCLUDED')) {
$security_image = new SecurityImage( _SECURITYIMAGE_GETCODE );
if ($security_image->render()) {
$sform->addElement($security_image, true);
}
}
// Hack SecurityImage by Dugris [/color][/b]
$button_tray->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit'));
Bonne journée
|