View file smiliesgenerator/sm_gen.php

File size: 1.36Kb
<?php
/////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                             //
//  GscorpySmilieGenerator                                                                         //
//  Current Version : 1.0.0                                                                    //
//  Author : Gscorpy                                                                          //
//  You you can redistribute it and/or modify this script but please always put author's name  //
//  Copyright (c) 2008 Gscorpy. All rights reserved.                                          //
//  Additional scripts can be found at http://gscorpy.net                              //
//  24.03.2008                                                                                 //
/////////////////////////////////////////////////////////////////////////////////////////////////
$face = imagecreatefromgif('faces/'.$_GET["f"].'.gif');
$lips = imagecreatefromgif('lips/'.$_GET["l"].'.gif');
$eyes = imagecreatefromgif('eyes/'.$_GET["e"].'.gif');

imagealphablending($face, 1);
imagealphablending($lips, 1);
imagealphablending($eyes, 1);

imagecopy($face, $lips, 0,0,0,0,25,43);
imagecopy($face, $eyes, 0,0,0,0,25,43);
header("Content-type: image/gif");
imagepng($face);
?>