Re: Security Image Weblinks | Titre du sujet : Re: Security Image Weblinks par kraven30 sur 03/09/2007 20:21:18
Pour MyAlbum-P 2.9
Dans submit.php: Vers la Ligne 90:
if( ! empty( $_POST['submit'] ) ) {
[color=CC0000]// 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)', 2, _SECURITYIMAGE_ERROR ) ;
exit();
}
// Hack SecurityImage by Dugris[/color]
// Ticket Check
if ( ! $xoopsGTicket->check() ) {
redirect_header(XOOPS_URL.'/',3,$xoopsGTicket->getErrors());
Vers la Ligne 366:
$form->addElement( $cat_select ) ;
$form->setRequired( $cat_select ) ;
$form->addElement( $file_form ) ;
if( $myalbum_canrotate ) $form->addElement( $rotate_radio ) ;
[color=CC0000]// Hack SecurityImage by Dugris
if (defined('SECURITYIMAGE_INCLUDED')) {
$security_image = new SecurityImage( _SECURITYIMAGE_GETCODE );
if ($security_image->render()) {
$form->addElement($security_image, true);
}
}
// Hack SecurityImage by Dugris[/color]
$form->addElement( $preview_hidden ) ;
$form->addElement( $counter_hidden ) ;
Chez moi ça marche mais verifie comme meme Burning
++
|
|