Forums Sign Up Reply Search Statistics
Fast Template GraFX Software Solutions - Forum / Fast Template /

SIMG security images how to

 
Author rr1024
Forums Member
#1 Posted: 13 Jan 2008 03:00:25
Reply 
ob_start();
session_start();

$textstr = '';

$textstr = rndCharGen( 8, 'Int' );
$hashtext = md5( $textstr );

$_SESSION['strSec'] = $hashtext;

IF ( produceSecurityImage( $textstr, $hashtext ) != IMAGE_ERROR_SUCCESS ) {
header( "Content-Type: image/gif" ); # Output Header
$errorFilename =SCRIPT_DIR . 'simg/images/simg_error.gif'; #output error image
//fclose( $errorFilename );
$fp = fopen( $errorFilename, 'r' );
$fsize = filesize( $errorFilename );
IF ( $fp ) {
ECHO fread( $fp, $fsize );
}
fclose( $fp );
}

ob_end_flush();
The above code I uses on my existing scripts but when I try it with fast template of course the image does not show up where it suppose to....I would like to convert it to use fast template or do you have an SIMG system that works?
Author rr1024
Forums Member
#2 Posted: 23 Jan 2008 04:42:31
Reply 
never mind I got it working just find it was my error in the script
Author software
Admin
#3 Posted: 23 Jan 2008 11:16:56
Reply 
:-) it is happening ...
 
Your Reply

» Username  » Password 
Only registered users are allowed to post here. Please enter your login/password details upon posting a message, or sign up first.