Moin, ich schreibe gerade ein StatusAddon für ein kleines Programm.
PHP-Code:
<?php
Header("Content-Type: image/png");
$User = $_GET['name'];
$Status = $_GET['status'];
$PSM = $_GET['psm'];
if ($User == "") {
$Name = "Mr. Smith";
}else{
$Name = $User;
}
#Offline = 0
#Online = 1
#Away = 2
#Busy = 3
$statimg = imageCreateFromPNG("offline.png");
if ($Status == 0 ){
$statimg = imageCreateFromPNG("offline.png");
}
if ($Status == 1){
$statimg = imageCreateFromPNG("online.png");
}
$img = imageCreateFromPNG("bg.png");
$black = ImageColorAllocate($img, 0, 0, 0);
$white = ImageColorAllocate($img, 255, 255, 255);
ImageString($img, 6, 2, 20, $Name, $white);
Imagecopy($img, $statimg, 1, 1, 1, 0, 100, 100);
ImageAntialias($img,true);
ImagePNG($img);
ImageDestroy($img);
?>
So, mein Problem ist, ich will das Offline.png bild auch auf dem Bild haben, nur ich bekomm das mit dem Image Copy nicht hin
Bitte helft mir
Grüße