Location: PHPKode > projects > H-tracker > blocks/navigate_block.php
<?
if (!$site_config["MEMBERSONLY"] || $CURUSER) {
begin_block("" . NAVIGATION . ""); 
//need to add members only check too
    $res = mysql_query("SELECT id, link, name, image FROM navigate ORDER BY sort_index ASC");
      while ($row = mysql_fetch_array($res)){
      if (isset($row["image"]) && $row["image"] != "")
            print("<img border=\"0\"src=\"" . $site_config['SITEURL'] . "/images/menu/" . $row["image"] . "\" alt=\"" . $row["name"] . "\" />&nbsp;");
        else
            print("<img border=\"0\"src=\"" . $site_config['SITEURL'] . "/images/menu/li.png\"&nbsp;"); 
		echo "<a href=" . $row["link"] . ">" . htmlspecialchars($row["name"]) . "</a><BR>\n"; 
	}
end_block();
}
?>
Return current item: H-tracker