<?php
/**
* @author [EMAIL="DEViANCE@EViLDDL.COM"]DEViANCE@EViLDDL.COM[/EMAIL]
* @script phpBB3 Forum Sig Generator
* @copyright 2009
*/
//VARIABLES
$phpbb_root_path = ''; //LEAVE iF iN ROOT, OR iF iN DiR USE ../ ETC...
$site_name = "EViLDDL"; //OBViOUS.. NO??
$cache_image = 86400; //CACHE iMAGE FOR NUMBER OF SECS, 0 TO DiSABLE
$im = imagecreatefrompng("base.png"); //SETUP BASE iMAGE LOCATiON - CHANGE TO SAY iMAGES/BASE.PNG iF YOU LiKE
//SETUP COLOURS - MAY AS WELL COMMENT OUT ANY NONE USED COLOURS (YEAH iM ENGLiSH!)
//$white = imagecolorallocate($im, 255, 255, 255);
$black = imagecolorallocate($im, 0, 0, 0);
//$grey = imagecolorallocate($im, 128, 128, 128);
$red = imagecolorallocate($im, 255, 0, 0);
//$green = imagecolorallocate($im, 0, 255, 0);
//$blue = imagecolorallocate($im, 0, 0, 255);
//iNCLUDE WHAT WE NEED
define('IN_PHPBB', true);
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.'.$phpEx);
//MAKE THE PNG iMAGE
header("Content-type: image/png");
if ($cache_image!=0)
{
header("Expires: ".date("D, j M Y H:i:s", time() + $cache_image)." UTC");
header("Cache-Control: Public");
header("Pragma: Public");
}
imagestring($im, 2, 8, 5, "Posts: ".$config['num_posts'], $black);
imagestring($im, 2, 8, 17, "Topics: ".$config['num_topics'], $black);
imagestring($im, 2, 8, 29, "Members: ".$config['num_users'], $black);
imagestring($im, 2, 8, 41, "Newest: ".$config['newest_username'], $black);
imagestringup($im, 2, 187, 56, $site_name, $red);
imagepng($im);
imagedestroy($im);
//EXiT PHP
exit();
?>