Ver Mensaje Individual
  #6 (permalink)  
Antiguo 10/04/2008, 10:57
Avatar de pateketrueke
pateketrueke
Modernizr
 
Fecha de Ingreso: abril-2008
Ubicación: Mexihco-Tenochtitlan
Mensajes: 26.399
Antigüedad: 16 años, 1 mes
Puntos: 2534
Re: PhpImagen.lib ayuda con mensaje de error

Esta es la funcion que expone la informaciondel error... solo basta que identifiques los colores usados, nose... la letra?? y los cambies a tu antojo.... yo no se de tus gustos

Código PHP:
function error($msg) {
        
$width strlen($msg)*8;
        
$width = ($width 370) ? 370 $width;
        
$url = (strlen($this->url) > 45) ? substr($this->url,0,33)."...".substr($this->url,-10) : $this->url;
        
$this->rw $width;
        
$this->rh 145;
        
$this->source = @imagecreate ($this->rw$this->rh);
        
$background_color imagecolorallocate ($this->source230230230);
        
$text_color_red imagecolorallocate ($this->source255,0,0);
        
$text_color_black imagecolorallocate ($this->source505050);
        
$text_color_green imagecolorallocate ($this->source01500);
        
$text_color_blue imagecolorallocate ($this->source00150);
        
imagestring ($this->source51920"ERROR: LA IMAGEN NO PUDO SER CARGADA"$text_color_red);
        
imagestring ($this->source31650"Hubo un error procesando la imagen:"$text_color_black); 
        
imagestring ($this->source31665$url$text_color_green); 
        
imagestring ($this->source31695$msg$text_color_blue);
        
imagestring ($this->source210125sprintf(base64_decode("UEhQSW1hZ2VuIChjKSVzIC0gQnkgTXlPa3JhbQ=="),date('Y')),$text_color_black);
        
$this->error true;
        return 
true;
    }