<?php
// eg: <img src="gifpix.php?c=#FF0000" width=10 height=10> = red pix
// eg: <img src="gifpix.php width=10 height=10> = incolor pixel
require_once "./includes/Gifpix.class.php";
$gifpix = new gifpix();
//take from phpixel (http://www.zend.com/codex.php?id=193&single=1), thanx tulipan
#Header( "Content-type:  image/gif");
#Header( "Expires: Wed, 11 Nov 1998 11:11:11 GMT");
#Header( "Cache-Control: no-cache");
#Header( "Cache-Control: must-revalidate");
// if # is in front of the hex-string
$a = str_replace("#", "", $_GET['c']);
if (isset($_GET['c'])) 
{
   // printing a incolor gif if  no $c
   print $gifpix->create($_GET['c']);
} 
else
{
   print $gifpix->create("ff0000");
}
?> 
  |