<?php
/**
 * Project:        M.VuiZ.Net
 * Author:         nampt.me <admin@vuiz.net>
 * Copyright:      © 2025 vuiz.net All rights reserved.
 */
header('Content-Type: image/png');
header('Content-disposition: attachment;filename="logo.png"');
$text = empty($_GET['text']) ? 'VuiZ.Net' : $_GET['text'];
$size = empty($_GET['size']) ? 35 : $_GET['size'];
$type = empty($_GET['type']) ? 2 : $_GET['type'];

if($type == 1)
{
    $ico = 'pink.png';
    $vien = 'd106af';
    $bong = 'fa9beb';
}elseif($type == 2)
{
    $ico = 'red.png';
    $vien = 'ff0000';
    $bong = 'ff7a7a';
}elseif($type == 3)
{
    $ico = 'babyblue.png';
    $vien = '00a0c8';
    $bong = '25b1d3';
}elseif($type == 4)
{
    $ico = 'green.png';
    $vien = '1eeb0f';
    $bong = '0cdc2c';
}else
{
    $ico = 'blue.png';
    $vien = '33f';
    $bong = '266cec';
}
 
$path = 'http://anonymouse.org/cgi-bin/anon-www.cgi/http://www1.flamingtext.com/net-fu/proxy_form.cgi?script=cloud-logo&fontname=Cooper&text='.$text.'&imageoutput=true&fontsize='.$size.'&fillTextType=0&fillTextColor=%23fff&outlineSize=2&fillOutlineColor=%23'.$vien.'&shadowGlowColor=%23'.$bong.'&backgroundRadio=0&autocrop=on/'.$text.'';


$img = imagecreatefrompng($path);
$size= getimagesize($path);
$w=$size[0]; //rong
$h=$size[1];//cao


$icon = imagecreatefrompng($ico);
$im  = imagecreatetruecolor($w,$h);

imagesavealpha($im, true);
$transparent = imagecolorallocatealpha($im, 0, 0, 0, 127);
imagefill($im, 0, 0, $transparent);

imagecopy($im,$img,0,0,0,0,$w,$h);
imagecopy($im,$icon,$w-50,$h/2-30,0,0,imagesx($icon),imagesy($icon));
imagepng($im);
imagedestroy($im);

?>