3 if (!class_exists(
'ProtectorRegistry'))
exit(
'Registry not found');
13 session_cache_limiter(
'public');
15 header(
"Cache-Control: public, max-age=$icon_cache_limit");
17 header(
"Content-type: image/png");
20 if( ! empty(
$_GET[
'file'] ) ) {
21 $file_base = preg_replace(
'/[^0-9a-z_]/' ,
'' ,
$_GET[
'file'] ) ;
23 $file_base =
'module_icon' ;
34 $icon_fullpath =
$mydirpath.
'/module_icon.png' ;
36 $icon_fullpath = dirname(__FILE__).
'/images/'.
$file ;
39 if(
$draw_dirname && function_exists(
'imagecreatefrompng' ) && function_exists(
'imagecolorallocate' ) && function_exists(
'imagestring' ) && function_exists(
'imagepng' ) ) {
41 $im = imagecreatefrompng( $icon_fullpath ) ;
43 $color = imagecolorallocate( $im , 0 , 0 , 0 ) ;
45 imagestring( $im , 3 , $px , 34 ,
$mydirname , $color ) ;
51 readfile( $icon_fullpath ) ;