Image Processing error, please help.

Status
Not open for further replies.

SAN_APIIT

New Member
Messages
3
Reaction score
0
Points
0
I installed dolphin 6. when i try to add a user to the system the security image is not displayed. please help me. I'm running PHP intermediate version.

erroryq2.jpg



the code for the security image generation is as following ..
-------------------------------------------------------------------------------------------------

<?php

require_once( '../header.inc.php' ); 'This hold the information about the system
require_once( BX_DIRECTORY_PATH_INC . 'images.inc.php' ); 'image processing file

ob_start();
session_start();
$chars = array("a","b","c","d","e","f","h","i","k","m","n","o","r","s","t","u","v","w","x","z","2","3","4","5","6","7","8","9");
/*
$chars = array("a","A","b","B","c","C","d","D","e","E","f","F","g","G","h","H","i","I","j","J",
"k","K","L","m","M","n","N","o","p","P","q","Q","r","R","s","S","t","T",
"u","U","v","V","w","W","x","X","y","Y","z","Z","2","3","4","5","6","7","8","9");
*/
$textstr = '';
for ($i = 0, $length = 6; $i < $length; $i++) {
$textstr .= $chars[rand(0, count($chars) - 1)];
}
echo($textstr);
$hashtext = md5($textstr);
$_SESSION['strSec'] = $hashtext;

if ( produceSecurityImage( $textstr, $hashtext ) != IMAGE_ERROR_SUCCESS )
{
// output header
header( "Content-Type: image/gif" );

header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
header( "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" );
header( "Cache-Control: no-store, no-cache, must-revalidate" );
header( "Cache-Control: post-check=0, pre-check=0", false );
header( "Pragma: no-cache" );

// output error image
$errorFilename = $dir['profileImage'] . 'simg_error.gif';
$fp = fopen( $errorFilename, 'r' );
$fsize = filesize( $errorFilename );
if( $fp )
{
print fread( $fp, $fsize );
}
fclose( $fp );
}

ob_end_flush();
?>
-------------------------------------------------------------------------------------------------


Please help me.....

(May be some error in the image GD library:dunno:)

Edit:
Any 1 to help me.... Pleaseee some attention .
 
Last edited:
Status
Not open for further replies.
Top