DuGris
Xoops Planète
SecurityImage : SecurityImage avec le module News version 1.54
Posted by DuGris on 2006/3/7 0:20:00
SecurityImage

NewsUtilisation de la class SecurityImage avec le module
News version 1.54



Modification à apporter dans le fichier include/storyform.inc.php

Ajouter les lignes en rouge, comme indiqué ci-dessous

...
...
$sform->addElement($option_tray); // Ligne 183
// 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
//TODO: Approve checkbox + "Move to top" if editing + Edit indicator
//Submit buttons
$button_tray = new XoopsFormElementTray('' ,'');
...
...
 

Modification à apporter dans le fichier submit.php

Ajouter les lignes en rouge, comme indiqué ci-dessous

	...
...
case 'post': // Ligne 291
// Hack SecurityImage by DuGris
include_once(XOOPS_ROOT_PATH . "/class/xoopsformloader.php");
if ( defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
redirect_header( 'javascript:history.go(-1)', 2, _SECURITYIMAGE_ERROR ) ;
exit();
}
// Hack SecurityImage by DuGris
...
...
...
 
Create a PDF from the article Printer Friendly Page Send this Story to a Friend  
Afux sur Facebook
Facebook
Dugris Xoops Planète
Profil Facebook de Laurent Jen
Faire un don
Please select an amount to donate


Do you want your username revealed with your donation?
Yes - List me as a Generous Donor
No - List my donation as from an Anonymous Donor


Archives
Recherche


Who's Online
WF-Downloads : 4
Partners : 3
Xoops Websites : 1
Documentation : 1
Downloads : 3

Members: 0
Guests: 6

more...
Visiteurs
136118 visitors who came on this website
649233 Total Pages