Вход Регистрация
Файл: public_html/LoadPNG.php
Строк: 17
<?php
function LoadPNG($imgname)
{

    
$im = @imagecreatefrompng($imgname);

    
/* See if it failed */
    
if(!$im)
    {
        
/* Create a blank image */
        
$im  = imagecreatetruecolor(355, 355);
        
$bgc = imagecolorallocate($im, 255, 255, 255);
        
$tc  = imagecolorallocate($im, 0, 0, 0);

        
imagefilledrectangle($im, 0, 0, 355, 355, $bgc);

        
/* Output an error message */
        
imagestring($im, 24, 5, 5, 'Error loading ' . $imgname, $tc);
    }

    return 
$im;
}

header('Content-Type: image/png');

$img = LoadPNG("".$_GET['images']."");

imagepng($img);
imagedestroy($img);
?>
Онлайн: 1
Реклама