Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/12/2009, 07:22
panzers89
 
Fecha de Ingreso: junio-2009
Mensajes: 21
Antigüedad: 14 años, 10 meses
Puntos: 0
Problema con imagenes secure.php

Hola les comento un poco el problema.
bueno yo uso un social engine y despues de que lo instale andaba bien pero hace unos dias me di cuenta que no se veian las imagenes de seguridad
abri la web con Firefox, Opera y IE pero tampoco, este es el codigo del secure.php
Código PHP:
<?php
if(!function_exists('gd_info')) { exit(); }

//session_start();

header("Cache-Control: no-cache"); 
header("Content-type: image/png"); 

chdir('..');
include 
"header.php";

$img_handle = @ImageCreate(6720); 
$back_color = @ImageColorAllocate($img_handle255255255);
$transparent_bg = @ImageColorTransparent($img_handle$back_color);

$count 0;
$code "";
while(
$count 6)
{
  
$count++;
  
$x_axis = -+ ($count 10);
  
$y_axis rand(07);
  
$color1 rand(001150);
  
$color2 rand(001150);
  
$color3 rand(001150);
  
$txt_color[$count] = @ImageColorAllocate($img_handle$color1$color2$color3); 
  
$size rand(3,5);
  
$number rand(0,9);
  
$code .= "$number";
  @
ImageString($img_handle$size$x_axis$y_axis"$number"$txt_color[$count]); 
}

$pixel_color = @ImageColorAllocate($img_handle100100100); 

$_SESSION['code'] = $code;
@
ImagePng($img_handle); 
exit();
?>
a simple vista esta bien, si alguien me puede ayudar se lo voy a agradecer..