Fork me on GitHub

Rapport de message :*
 

Re: x-Torrent 1.47

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']) ? 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_imagetrue); 

    } 

}
// 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_imagetrue); 

    } 

}
// Hack SecurityImage by Dugris [/color][/b]
            
$button_tray->addElement(new XoopsFormButton('''submit'_SUBMIT'submit'));


Bonne journée
Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

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