][Schlumpf][
17.11.07, 21:42
Hallo Leute habe da ein kleines Problem. Ich habe mal ein neues Gästebuch Installiert. Was soweit ales wunderbar Funktioniert ausser eines nicht. Wenn man im GB einen Eintrag machen möchte. Wird mir die Grafik des Security Code nicht angezeigt.
GD ist aber soweit installiert
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
Wenn ich die Seite aufrufe um einen Eintrag ins GB zu machen tauchen in meinen Logsdiese 2 Zeilen auf
gd-png error: setjmp returns error condition
gd-png: fatal libpng error: zlib error
Habe nun schon viel gegoogelt aber nicht wircklich was brauchbares finden können. Das System selber ist up to date. Weiß da evtl einer von euch rat ?
Hier mal das Script selber was die grafik anzeigen soll evtl hilft es einen
<?php
/*
+--------------------------------------------------------------------------
| Gbook MX v4.5.0
| ========================================
| (c) 2004 - 2006 Victor Simental
| Web: http://www.gbookmx.com
| ========================================
| > Wrapper script
| > Script written by Victor Simental
| > Date started: 03th November 2003
| ========================================
+--------------------------------------------------------------------------
| This program is free software. You can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation; either version 2 of the License.
| http://www.gbookmx.com/license/gpl-license.html
+---------------------------------------------------------------------------
*/
if(empty($_GET['ihash']))
{
header("location: gbook.php");
exit();
}
else
{
require_once("includes/encript.php");
$rand = htmlspecialchars(base64_decode(encrypt($_GET['ihash'],1)));
if(function_exists('imagettftext'))
$image = imagecreatefrompng("images/code.png");
else
$image = imagecreatefrompng("images/codeb.png");
$numero = rand(1,6);//Ramdomize colors
//Change The font name
$font = "images/CITID___.TTF";
switch ($numero)
{
case 1:
$azul = imagecolorallocate($image,255,0,0);
break;
case 2:
$azul = imagecolorallocate($image,0,0,255);
break;
case 3:
$azul = imagecolorallocate($image,153,0,0);
break;
case 4:
$azul = imagecolorallocate($image,0,0,0);
break;
case 5:
$azul = imagecolorallocate($image,18,78,72);
break;
case 6:
$azul = imagecolorallocate($image,78,90,144);
break;
}
if(function_exists('imagettftext'))
$text_color = imagettftext($image,25, 15, 14, 53,$azul, $font,$rand);
else
ImageString ($image, 10, 12, 8, $rand, $azul);
Header("Content-type: image/png");
imagepng($image, '', 100);
ImageDestroy($image);
}
?>
GD ist aber soweit installiert
GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
Wenn ich die Seite aufrufe um einen Eintrag ins GB zu machen tauchen in meinen Logsdiese 2 Zeilen auf
gd-png error: setjmp returns error condition
gd-png: fatal libpng error: zlib error
Habe nun schon viel gegoogelt aber nicht wircklich was brauchbares finden können. Das System selber ist up to date. Weiß da evtl einer von euch rat ?
Hier mal das Script selber was die grafik anzeigen soll evtl hilft es einen
<?php
/*
+--------------------------------------------------------------------------
| Gbook MX v4.5.0
| ========================================
| (c) 2004 - 2006 Victor Simental
| Web: http://www.gbookmx.com
| ========================================
| > Wrapper script
| > Script written by Victor Simental
| > Date started: 03th November 2003
| ========================================
+--------------------------------------------------------------------------
| This program is free software. You can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation; either version 2 of the License.
| http://www.gbookmx.com/license/gpl-license.html
+---------------------------------------------------------------------------
*/
if(empty($_GET['ihash']))
{
header("location: gbook.php");
exit();
}
else
{
require_once("includes/encript.php");
$rand = htmlspecialchars(base64_decode(encrypt($_GET['ihash'],1)));
if(function_exists('imagettftext'))
$image = imagecreatefrompng("images/code.png");
else
$image = imagecreatefrompng("images/codeb.png");
$numero = rand(1,6);//Ramdomize colors
//Change The font name
$font = "images/CITID___.TTF";
switch ($numero)
{
case 1:
$azul = imagecolorallocate($image,255,0,0);
break;
case 2:
$azul = imagecolorallocate($image,0,0,255);
break;
case 3:
$azul = imagecolorallocate($image,153,0,0);
break;
case 4:
$azul = imagecolorallocate($image,0,0,0);
break;
case 5:
$azul = imagecolorallocate($image,18,78,72);
break;
case 6:
$azul = imagecolorallocate($image,78,90,144);
break;
}
if(function_exists('imagettftext'))
$text_color = imagettftext($image,25, 15, 14, 53,$azul, $font,$rand);
else
ImageString ($image, 10, 12, 8, $rand, $azul);
Header("Content-type: image/png");
imagepng($image, '', 100);
ImageDestroy($image);
}
?>