Location: PHPKode > projects > Mummi (Multi-user MOD_MP3 Interface) > mummi.0.6/htroot/img/pls_clear.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);

// make the clear symbol.
// x coords
$points[0]=11;$points[1]=5;
// y coords
$points[2]=16;$points[3]=11;
// z coords
$points[4]=6;$points[5]=11;
ImageFilledPolygon($im, $points, 3, $bgval01);
ImageLine($im, 6, 13, 16, 13, $bgval01);
ImageLine($im, 6, 15, 16, 15, $bgval01);

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