Login   Register  
PHP Classes
elePHPant
Icontem

File: header.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Jon Pulice  >  JPNavClass  >  header.php  >  Download  
File: header.php
Role: Auxiliary script
Content type: text/plain
Description: Image Creator For IMAGE Style
Class: JPNavClass
Output a navigation bar with text, images or table
Author: By
Last change:
Date: 9 years ago
Size: 777 bytes
 

Contents

Class file image Download
<?php

//header
Header("Content-Type: image/png");

// initialize a session. //
session_start();

$w = ( $_GET['w'] !== "") ? $_GET['w'] : 200;

// set up image, the first number is the width and the second is the height//
$im ImageCreate($w18);

//creates two variables to store color// 
$white ImageColorAllocate($im255255255); 
$blue ImageColorAllocate($im00255);
$navy ImageColorAllocate($im00158);

$font "verdanab.ttf";

$string $_GET['s'];
$c = ( strtolower($_GET['c']) !== "") ? strtolower($_GET['c']) : 'blue';

//fill image with black//
ImageFill($im00$white);

//writes string //
ImageTTFText($im120215, $$c$font$string);

// output to browser//
ImagePNG($im);
ImageDestroy($im);

?>