<?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'];


$path = 'http://anonymouse.org/cgi-bin/anon-www.cgi/http://www1.flamingtext.com/net-fu/proxy_form.cgi?script=comics-logo&fontname=Kinkie&text='.$text.'&imageoutput=true&fontsize='.$size.'&outlineSize=5&outlineColor=%23fff&backgroundBox=&backgroundResizeToLayers=on&backgroundRadio=0&autocrop=on&useAutoSize=on&imageWidth=400&imageHeight=150/'.$text.'';


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

$tim = imagecreatefrompng('tl.png');
$mu = imagecreatefrompng('mu.png');

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

imagecopy($im,$tim,0,0,0,0,79,57);
imagecopy($im,$mu,$w-68,0,0,0,68,66);
imagecopy($im,$img,0,$y-$h,0,0,$w,$h);
imagepng($im);
imagedestroy($im);

?>