Also.. ich hab das ganze nun so geregelt...
Und die seite laded sich nichmehr......
PHP-Code:
<?php
Header("Content-type: image/png");
require "http://androsia.no-ip.org:2595/status.php";
$serverb = "Server: $servern";
$servern = "Freeshard Balerion";
$ip = "81.169.168.74";
$w=170;//breite
$h=100;//hohe
$hImg = @imagecreate ($w, $h) //erstellt ein img mit den Variabeln $w , $h
or die ("Kann keinen neuen Status erzeugen"); // Fehlermeldung wenns nich klappt
$grey=imagecolorallocate($hImg, 240, 240, 240); // Farbdefinition
$black=imagecolorallocate($hImg, 0, 0, 0); // Farbdefinition
$darkred=imagecolorallocate($hImg, 128, 0, 0); // Farbdefinition
imagerectangle($hImg, 0, 0, 169, 99, $black); // Das rechteck
imagestringup($hImg, 5, 1, $h-6, 'Balerion', $darkred); // Text "Balerion"
imagestring($hImg, 3, 30, 2, $servern , $black); // Text der Variable $servern
imagestringup($hImg, 1, 15, $h-10, 'by Malo', $black); // text Copyr. by
$currenty=20;
imagestring($hImg, 2, 30, $currenty, 'IP: ' .$ip, $black); $currenty+=12; // Ausgabe der Variabeln
imagestring($hImg, 2, 30, $currenty, 'Spieler On: ' .$clients, $black); $currenty+=12; // Ausgabe der Variabeln
imagestring($hImg, 2, 30, $currenty, 'Accounts: ' .$accounts, $black); $currenty+=12;// Ausgabe der Variabeln
imagestring($hImg, 2, 30, $currenty, 'Gilden: ' .$gilden, $black); $currenty+=12;// Ausgabe der Variabeln
imagestring($hImg, 2, 30, $currenty, 'NPCs: ' .$npcs, $black); $currenty+=12;// Ausgabe der Variabeln
imagestring($hImg, 2, 30, $currenty, 'Items: ' .$items, $black); $currenty+=12;// Ausgabe der Variabeln
imagefill($hImg, 0, 0, $grey);
imagepng($hImg);
magedestroy($hImg);
?>
Kommentar