Generateur de bannieres

Description

Ce script vous permet de proposer sur votre site un generateur de bannieres, ou vos visiteurs choisissent la position du texte, le texte, et l'arriere plan de la banniere. par HTTP://WWW.GENERATOR.ZEUBU.COM

Source / Exemple :


<?php 
//V1.1 plus besoins de "register globals" / V1.1 not needs for "register globals"  
//V1.0 lancement du script                / V1.0 departure of script 
//***************************************************************************** 
//* HTTP://WWW.GENERATOR.ZEUBU.COM                                            * 
//*  ______  _____   _   _   _____   _   _        _____   _____       ___  ___* 
//* |___  / | ____| | | | | |  _  \ | | | |      /  ___| /  _  \     /   |/   |  
//*    / /  | |__   | | | | | |_| | | | | |      | |     | | | |    / /|   /| | 
//*   / /   |  __|  | | | | |  _  { | | | |      | |     | | | |   / / |__/ | | 
//*  / /__  | |___  | |_| | | |_| | | |_| |  _   | |___  | |_| |  / /       | | 
//* /_____| |_____| \_____/ |_____/ \_____/ |_|  \_____| \_____/ /_/        |_| 
//*                                                                           * 
//*                                              CREATED BY CLEMENT VIALETTES * 
//***************************************************************************** 
// 
//**************************************************************************** 
//*                                                                          * 
//*              VOS PARAMETRES                YOUR PARAMETERS               * 
//*                                                                          * 
//**************************************************************************** 
// 
//    Vous pouvez changer le nom du répertoire. 
//    Les images doivent être des fichiers .jpg et les fonts des .ttf 
//    L'image et la font seront automatiquement trouvées par le script 
//    Si il y a plusieurs fichiers .ttf et .jpg, le choix sera alors fait lors de l'affichage. 
// 
//    You can change the name of the repertory. 
//    The images must be .jpg files and the font of the .ttf 
//    Image and Font automatically found by script 
//    If there are several files .ttf and .jpg, the choice will then be made during posting 
// 
//**************************************************************************** 
//*                            GENERAL GLOBAL                                * 
//**************************************************************************** 
// 
//            fr = french / en = english / all = detection langage navigateur 
                $lng="all"; 
// 
//    Nom du site                Website name 
                $site="generator.zeubu.com"; 
// 
// 
// 
//**************************************************************************** 
//*       PARAMETRES DE LA PAGE              PARAMETERS OF THE PAGE          * 
//**************************************************************************** 
// 
//    Texte à l'ouverture de la page         Text with the opening of the page 
                $textdef="Zeubu.com   "; 
// 
//    Couleur du fond de la page        Fill color of the page  
                $pagecolor="#BBBBDD"; 
// 
//    Couleur du texte de la page        Color of the text of the page 
                $textcolor="#111155"; 
//    Couleur des liens de la page        Color of the links of the page 
                $textcolorlink="#FF0000"; 
// 
//    Taille des images miniatures        Size miniature images  
                $tdim="30"; 
// 
//    Taille d'écriture font miniatures    Size writing of miniature images 
                $tdefm="15"; 
// 
//    Taille de la bordure de l'image        Size of the border of the image 
                $sizeborder=0; 
// 
// 
// 
//**************************************************************************** 
//*       PARAMETRES DU TEXTE              PARAMETERS OF THE TEXT            * 
//**************************************************************************** 
// 
//    Taille d'écriture            Writing size 
                $size="35";  // multiple de 5 si l'utilisateur choisi / multiple of 5 if the selected user 
                $sizeaff="y";// y/n l'utilisateur choisi / the selected user 
// 
//    Nombre de caractères maximum        Maximum number of characters 
                $caract=40; 
// 
// 
//    Position du texte            Position of the text 
// 
//    Align Vertical  h="haut/top"  b="bas/bottom"  m="milieu/middle"  ms="centrer sur $yi/center on $yi" 
                $py="m"; 
                $pyaff="y";// y/n l'utilisateur choisi / the selected user 
// 
//    Align Horizontal g="gauche/left"  d="droite/right"  m="centre/center"  ms="centrer sur $xi/center on $xi=ms" 
                $px="d"; 
                $pxaff="y";// y/n l'utilisateur choisi / the selected user 
// 
//    Marge (si le texte n'est pas au milieu)  Stroke (if the text is not in the center) 
                $xi=5; $yi=5; // pixel 
// 
// 
//Couleurs format #002233 (00=red 22=green 33=blue, min=00 max=FF 0123456789ABCDEF) 
// 
//    1er couleur du dégradé            1st color of the range 
                $colorup="#FF0000"; 
// 
//    2ieme couleur du dégradé        2nd color of the range 
                $colordown="#00FFFF"; 
                $coloraff="y";// y/n l'utilisateur choisi / the selected user 
//                 
//    dégradé / range : v=vertical / h=horizontal 
                $fdvh="h"; 
//             
//             
//Transparence du texte (0 à 100) 100=pas de transparence 
//Transparency of the text (0 to 100) 100=not of transparency  
            $fondant=100;    // multiple de 5 si l'utilisateur choisi / multiple of 5 if the selected user 
            $fondantaff="y";// y/n l'utilisateur choisi / the selected user 
// 
// 
//Ne pas proposer de choix d'image et créer toutes les images du repertoire =y 
//Not to propose a choice of image and to create all the images of the repertory =y  
                $allimage="y"; 
// 
// 
//Ne pas proposer de choix de font et créer l'images avec toutes les fonts du repertoire =y 
//Not to propose a choice of font and create the images with all the font of the repertory =y 
                $allfont="n"; 
// 
// 
//    Taux de compression de l'image jpg    Compression ratio of the image jpg 
                $quality=95; 
// 
// 
// 
// 
//**************************************************************************** 
//*                                                                          * 
//*                DON'T TOUCH                 NE PAS TOUCHER                * 
//*                                                                          * 
//**************************************************************************** 

if (!ini_get('register_globals')) { 
    $superglobals = array($_SERVER, $_ENV, 
        $_FILES, $_COOKIE, $_POST, $_GET); 
    if (isset($_SESSION)) { 
        array_unshift($superglobals, $_SESSION); 
    } 
    foreach ($superglobals as $superglobal) { 
        extract($superglobal, EXTR_SKIP); 
    } 
    ini_set('register_globals', true); 
} 

if($lng=="all") 
    $lng=getenv("HTTP_ACCEPT_LANGUAGE"); 

if($lng=="fr") 
{ 
    $colort="Couleur du texte"; 
    $colorr="Couleur"; 
    $colord="Couleur début"; 
    $colorf="Couleur fin"; 
    $sizea="Choisir la taille d'écriture"; 
    $tel="Télécharger l'image"; 
    $av="Alignement vertical"; 
    $ah="Alignement horizontal"; 
    $trance="Transparence du texte"; 
    $desc="Générateur d'image crée par Zeubu.com pour $site."; 
    $key="générateur,générateur de logo,générateurs d'images,creation graphique,art graphique"; 
    $generator="Générateur d'image paramétré par ".$site." (crée par Zeubu.com)"; 
    $haut="haut"; 
    $milieu="milieu"; 
    $bas="bas"; 
    $gauche="gauche"; 
    $droite="droite"; 
    $centre="centre"; 
    $aff="AFFICHER"; 
    $ftx="Votre texte"; 
    $ft="Choisir la police"; 
    $imgft="Choisir l'image"; 
    $ttf="<b>IL N'Y A PAS DE FICHIER .TTF DANS LE REPERTOIRE</b>"; 
    $jpg="<b>IL N'Y A PAS DE FICHIER .JPG DANS LE REPERTOIRE</b>"; 
    $qdci="<b>QUE DOIT CREER IMAGE.PHP ?</b>"; 
} 
else 
{ 
    $colort="Colour of the text"; 
    $colorr="Color"; 
    $colord="Begin color"; 
    $colorf="Final color"; 
    $sizea="Choose the writing size"; 
    $tel="Download the image"; 
    $av="Vertical alignment"; 
    $ah="Horizontal alignment"; 
    $trance="Transparency of the text"; 
    $desc="Zeubu.com for $site."; 
    $key="generator,generator of logo,generators of images,graphic creation,graphic art"; 
    $generator="Generator of image parameterized by ".$site." (create by Zeubu.com)"; 
    $haut="top"; 
    $milieu="middle"; 
    $bas="bottom"; 
    $gauche="left"; 
    $droite="right"; 
    $centre="center"; 
    $aff="DISPLAY"; 
    $ftx="Your text"; 
    $ft="Choose the font"; 
    $imgft="Choose the image"; 
    $ttf="<b>IT THERE A NO FILE .TTF IN THE DIRECTORY</b>"; 
    $jpg="<b>IT THERE A NO FILE .JPG IN THE DIRECTORY</b>"; 
    $qdci="<b>WHAT HAS TO CREATE IMAGE.PHP ?</b>"; 
} 

$tbsp="<b><font color='2244BB'>T</font><font color='2233AA'>h</font><font color='113388'>e&nbsp;&nbsp;</font><font color='113366'>B</font><font color='112244'>i</font><font color='002222'>g&nbsp;&nbsp;</font><font color='002200'>S</font><font color='002222'>h</font><font color='112244'>i</font><font color='113366'>t&nbsp;&nbsp;</font><font color='113388'>P</font><font color='2233AA'>r</font><font color='2244BB'>o</font><font color='2244CC'>b</font><font color='3344DD'>l</font><font color='3355EE'>e</font><font color='4455FF'>m</font><font color='5555FF'>&nbsp;!</font><font color='6655FF'>!</font><font color='7755FF'>!</font><font color='8855FF'>!</font><font color='9955FF'>!</font><font color='AA55FF'>!</font><font color='BB55FF'>!</font><font color='CC55FF'>!</font><font color='DD55FF'>!</font><font color='EE55FF'>!</font><font color='FF55FF'>!</font><font color='FF66FF'>!</font><font color='FF77FF'>!</font><font color='FF88FF'>!</font><font color='FF99FF'>!</font><font color='FFAAFF'>!</font><font color='FFBBFF'>!</font><font color='FFCCFF'>!</font><font color='FFDDFF'>!</font><font color='FFEEFF'>!</font><font color='FFFFFF'>!</font></b><br><br>"; 

//                              oooo$$$$$$$$$$$$oooo 
//                          oo$$$$$$$$$$$$$$$$$$$$$$$$o 
//                       oo$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$o         o$   $$ o$ 
//       o $ oo        o$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$o       $$ $$ $$o$ 
//    oo $ $ "$      o$$$$$$$$$    $$$$$$$$$$$$$    $$$$$$$$$o       $$$o$$o$ 
//    "$$$$$$o$     o$$$$$$$$$      $$$$$$$$$$$      $$$$$$$$$$o    $$$$$$$$ 
//      $$$$$$$    $$$$$$$$$$$      $$$$$$$$$$$      $$$$$$$$$$$$$$$$$$$$$$$ 
//      $$$$$$$$$$$$$$$$$$$$$$$    $$$$$$$$$$$$$    $$$$$$$$$$$$$$  """$$$ 
//       "$$$""""$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$     "$$$ 
//        $$$   o$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$     "$$$o 
//       o$$"   $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$       $$$o 
//       $$$    $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$" "$$$$$$ooooo$$$$o 
//      o$$$oooo$$$$$  $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$   o$$$$$$$$$$$$$$$$$ 
//      $$$$$$$$"$$$$   $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$     $$$$"""""""" 
//     """"       $$$$    "$$$$$$$$$$$$$$$$$$$$$$$$$$$$"      o$$$ 
//                "$$$o     """$$$$$$$$$$$$$$$$$$"$$"         $$$ 
//                  $$$o          "$$""$$$$$$""""           o$$$ 
//                   $$$$o                                o$$$" 
//                    "$$$$o      o$$$$$$o"$$$$o        o$$$$ 
//                      "$$$$$oo     ""$$$$o$$$$$o   o$$$$"" 
//                         ""$$$$$oooo  "$$$o$$$$$$$$$""" 
//                            ""$$$$$$$oo $$$$$$$$$$ 
//                                    """"$$$$$$$$$$$ 
//                                        $$$$$$$$$$$$ 
//                                         $$$$$$$$$$" 
//                                          "$$$"" 

?>

Conclusion :


laissez toutes vos remarques et conseils ;-)

Codes Sources

A voir également

Vous n'êtes pas encore membre ?

inscrivez-vous, c'est gratuit et ça prend moins d'une minute !

Les membres obtiennent plus de réponses que les utilisateurs anonymes.

Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.

Le fait d'être membre vous permet d'avoir des options supplémentaires.