function Sign($User){ include("../CONFIGURATION.php"); //ores $DIAMOND_ORE = 0; $EMERALD_ORE = 0; $REDSTONE_ORE = 0; $LAPIS_ORE = 0; $COAL_ORE = 0; $IRON_ORE = 0; $GOLD_ORE = 0; $STONE = 0; $GLOW = 0; $WOOD = 0; $CHAT = 0; $DEAD = 0; $VILL = 0; $MONSTER = 0; $ANIMAL = 0; $PLAY = 0; $zapytanie = "select Material, Action From block WHERE Player = '".$User."'"; if($wiersz[1] == "Break"){ if($wiersz[0] == "DIAMOND_ORE")$DIAMOND_ORE++; else if($wiersz[0] == "EMERALD_ORE")$EMERALD_ORE++; else if($wiersz[0] == "REDSTONE_ORE")$REDSTONE_ORE++; else if($wiersz[0] == "LAPIS_ORE")$LAPIS_ORE++; else if($wiersz[0] == "COAL_ORE")$COAL_ORE++; else if($wiersz[0] == "IRON_ORE")$IRON_ORE++; else if($wiersz[0] == "GOLD_ORE")$GOLD_ORE++; else if($wiersz[0] == "STONE")$STONE++; else if($wiersz[0] == "GLOWSTONE")$GLOW++; else if($wiersz[0] == "LOG")$WOOD++; } } $zapytanie = "select * From death WHERE Player = '".$User."'"; $zapytanie = "select * From chat WHERE Player = '".$User."'"; $zapytanie = "select * From kills WHERE Player = '".$User."'"; if($wiersz[2] == "Pig")$ANIMAL++; else if($wiersz[2] == "Bat")$ANIMAL++; else if($wiersz[2] == "Cow")$ANIMAL++; else if($wiersz[2] == "Sheep")$ANIMAL++; else if($wiersz[2] == "Squid")$ANIMAL++; else if($wiersz[2] == "MushroomCow")$ANIMAL++; else if($wiersz[2] == "Ozelot")$ANIMAL++; else if($wiersz[2] == "EntityHorse")$ANIMAL++; else if($wiersz[2] == "Slime")$ANIMAL++; else if($wiersz[2] == "EntityHorse")$ANIMAL++; else if($wiersz[2] == "Ozelot")$ANIMAL++; else if($wiersz[2] == "Villager")$VILL++; else if($wiersz[2] == "Witch")$VILL++; else if($wiersz[2] == "Wolf")$MONSTER++; else if($wiersz[2] == "Zombie")$MONSTER++; else if($wiersz[2] == "PigZombie")$MONSTER++; else if($wiersz[2] == "CaveSpider")$MONSTER++; else if($wiersz[2] == "Silverfish")$MONSTER++; else if($wiersz[2] == "Blaze")$MONSTER++; else if($wiersz[2] == "LavaSlime")$MONSTER++; else if($wiersz[2] == "Bat")$MONSTER++; else if($wiersz[2] == "Ghast")$MONSTER++; else if($wiersz[2] == "Skeleton")$MONSTER++; else if($wiersz[2] == "Creeper")$MONSTER++; else if($wiersz[2] == "Spider")$MONSTER++; else $PLAY++; } $DIAMOND_OREp = $DIAMOND_ORE*1000; $EMERALD_OREp = $EMERALD_ORE*500; $REDSTONE_OREp = $REDSTONE_ORE*200; $LAPIS_OREp = $LAPIS_ORE*300; $COAL_OREp = $COAL_ORE*50; $IRON_OREp = $IRON_ORE*150; $GOLD_OREp = $GOLD_ORE*200; $GLOWp = $GLOW*500; $STONEp = $STONE; $DEADp = -($DEAD*3500); $WOODp = $WOOD; $CHATp = $CHAT*2; $ANIMALp = $ANIMAL*10; $MONSTERp = $MONSTER*70; $VILLp = -($VILL*100); $PLAYp = $PLAY*500; $SUM = $DIAMOND_OREp + $EMERALD_OREp + $REDSTONE_OREp + $LAPIS_OREp + $COAL_OREp + $IRON_OREp + $GOLD_OREp + $GLOWp + $STONEp + $DEADp + $CHATp + $ANIMALp + $MONSTERp + $VILLp + $PLAYp + $WOODp; // Create the image $im = imagecreatetruecolor(512, 128); // Create some colors $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 200, 200, 200); $black = imagecolorallocate($im, 0, 0, 0); //imagefilledrectangle($im, 0, 0, 399, 29, $white); $font = '../font/Minecraft.ttf'; $x = 0; $y = -10; $img = imagecreatefrompng('../images/1.png'); imagecopy($im, $img, 0, 0, 0, 0, 512, 128); $img = imagecreatefrompng('../images/vill.png'); imagecopy($im, $img, 30+$x, 60+$y, 0, 0, 16, 16); $img = imagecreatefrompng('../images/zombie.png'); imagecopy($im, $img, 30+$x, 80+$y, 0, 0, 16, 16); $img = imagecreatefrompng('../images/play.png'); imagecopy($im, $img, 130+$x, 60+$y, 0, 0, 16, 16); $img = imagecreatefrompng('../images/dead.png'); imagecopy($im, $img, 130+$x, 80+$y, 0, 0, 16, 16); $img = imagecreatefrompng('../images/stone.png'); imagecopy($im, $img, 230+$x, 60+$y, 0, 0, 16, 16); $img = imagecreatefrompng('../images/iron.png'); imagecopy($im, $img, 230+$x, 80+$y, 0, 0, 16, 16); $img = imagecreatefrompng('../images/gold.png'); imagecopy($im, $img, 330+$x, 60+$y, 0, 0, 16, 16); $img = imagecreatefrompng('../images/diamond.png'); imagecopy($im, $img, 330+$x, 80+$y, 0, 0, 16, 16); imagettftext($im, 10, 0, 50+$x, 74+$y, $white, $font, ": ".$VILL); imagettftext($im, 10, 0, 50+$x, 94+$y, $white, $font, ": ".$MONSTER); imagettftext($im, 10, 0, 150+$x, 74+$y, $white, $font, ": ".$PLAY); imagettftext($im, 10, 0, 150+$x, 94+$y, $white, $font, ": ".$DEAD); imagettftext($im, 10, 0, 250+$x, 74+$y, $white, $font, ": ".$STONE); imagettftext($im, 10, 0, 250+$x, 94+$y, $white, $font, ": ".$IRON_ORE); imagettftext($im, 10, 0, 350+$x, 74+$y, $white, $font, ": ".$GOLD_ORE); imagettftext($im, 10, 0, 350+$x, 94+$y, $white, $font, ": ".$DIAMOND_ORE); imagettftext($im, 11, 0, 28+$x, 116+$y, $white, $font, "Score: ".$SUM); imagettftext($im, 13, 0, 22, 40, $white, $font, $User); $ServerHOST = $WWWhost; $a = imagettfbbox( 11 ,0, $font , $ServerHOST )[2]; imagettftext($im, 11, 0, 512-$a-22, 35, $grey, $font, $SERVhost); imagettftext($im, 5, 0, 145, 126, $grey, $font, "Auto-generate signature with stat's from server's by:"); imagettftext($im, 6, 0, 423, 126, $grey, $font, "Good Brother 2.0"); return imagepng($im); }
Kiedy wykomętuje linie 2 obrazek jest generowany bez problemu, a kiedy pobieram plik konfiguracyjny to wyskakuje ikonka nie znalezienia grafiki... mógłby mi ktoś powiedzieć dlaczego?
Plik konfiguracyjny:
<?php $Webadmin = "TheJakubx"; $Webpass = ""; $WWWhost = "localhost"; $ip = "localhost"; $user = "root"; $password = ""; $database = "Good_Brother"; ?>
:|