Location: PHPKode > projects > OpenVet > openvet/include/functions.php
<?php

	if (str_replace("\\", "/", __FILE__) == $_SERVER['SCRIPT_FILENAME'])
	{
		header("Location: ../index.php");
		exit();
	}

	function showNavLinks(&$links, $image = "")
	{
		$rows = sizeof($links);

		$level = (($rows > 6) ? 6 : $rows);

		echo '<h' . $level . '>';

		if (trim($image))
			echo '<img src="../images/' . $image . '" width="40" height="40" align="middle" alt="" /> ';

		if ($rows > 1)
		{
			for ($i = 0; $i < ($rows - 1); $i++)
			{
				echo '<a href="' . current($links) . '">' . key($links) . '</a>';
				echo ' &raquo; ';
				next($links);
			}
		}

		echo key($links);

		echo '</h' . $level . ">\n";
	}
?>
Return current item: OpenVet