Location: PHPKode > projects > chillyCMS > chillyCMS/modules/menu/menu.include.php
<?php
defined('DOIT') or die('Restricted access');

function print_item($item) {
	global $site,$mysession,$is_user,$is_admin;
	$specialsettingsarray=explode(",",$item->specialaccess);
	$hasspecialaccess=false;
	if (!empty($mysession) && sizeof($mysession->user->gids)>0) {
		foreach ($mysession->user->gids as $gid) {
			if (in_array($gid,$specialsettingsarray)) { $hasspecialaccess=true; break; }
		}
	}
	if ($item->depth==1 or $item->depth==2) {
		if (!isset($printmenu)) { $printmenu = ""; }
		$printmenu.="<a href='".$_SERVER['PHP_SELF']."?id=".$item->id."'>".$item->name."</a>";
	}
	return $printmenu;
}
?>
Return current item: chillyCMS