Location: PHPKode > projects > Mummi (Multi-user MOD_MP3 Interface) > mummi.0.6/htroot/img/pls_accend.php
<?
if(isset($sel_bg_colorx)){
	$bg00colorval = hexdec($HTTP_POST_VARS["sel_bg_color00"]);
	$bg01colorval = hexdec($HTTP_POST_VARS["sel_bg_color01"]);
	$bg02colorval = hexdec($HTTP_POST_VARS["sel_bg_color02"]);
}elseif(isset($HTTP_COOKIE_VARS[site_config])){
	$sc01 = stripslashes($HTTP_COOKIE_VARS[site_config]);
	$sc02 = unserialize("$sc01");

	$bg00colorval = hexdec($sc02[bg_color00]);
	$bg01colorval = hexdec($sc02[bg_color01]);
	$bg02colorval = hexdec($sc02[bg_color00]);
}else{
	$bg00colorval = hexdec("ffffff");
	$bg01colorval = hexdec("666999");
	$bg02colorval = hexdec("cccccc");
}

$r00 = ($bg00colorval >> 16) & 255;
$g00 = ($bg00colorval >> 8) & 255;
$b00 = ($bg00colorval)&255;

$r01 = ($bg01colorval >> 16) & 255;
$g01 = ($bg01colorval >> 8) & 255;
$b01 = ($bg01colorval)&255;

$r02 = ($bg02colorval >> 16) & 255;
$g02 = ($bg02colorval >> 8) & 255;
$b02 = ($bg02colorval)&255;

Header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Content-Type: image/png");	//Fool the browser into thinking this script is an image.
$im = ImageCreate(24, 24);

$bgval00 = ImageColorAllocate($im, $r00, $g00, $b00);
$bgval01 = ImageColorAllocate($im, $r01, $g01, $b01);
$bgval02 = ImageColorAllocate($im, $r02, $g02, $b02);

ImageArc($im, 11, 11, 23, 23,  0, 360, $bgval02);
ImageFill($im, 6, 6, $bgval02);

ImageLine($im, 5, 13, 5, 16, $bgval01);
ImageLine($im, 6, 13, 6, 16, $bgval01);
ImageLine($im, 7, 13, 7, 16, $bgval01);

ImageLine($im, 10, 9, 10, 16, $bgval01);
ImageLine($im, 11, 9, 11, 16, $bgval01);
ImageLine($im, 12, 9, 12, 16, $bgval01);

ImageLine($im, 15, 5, 15, 16, $bgval01);
ImageLine($im, 16, 5, 16, 16, $bgval01);
ImageLine($im, 17, 5, 17, 16, $bgval01);

ImagePng($im);
ImageDestroy($im);
?>
Return current item: Mummi (Multi-user MOD_MP3 Interface)