# TODO: what's the difference between pth and tgt from matt cabanag
dpt="ACAC Home" pth="http://web.science.mq.edu.au/groups/acac/"
# -----------------
#echo 'Server is '.$_SERVER['REQUEST_URI']."
";
$path = explode("/", $_SERVER['REQUEST_URI']);
printNav();
function printNav() {
echo '
Information About
';
echo '';
showLink("/groups/acac/", "ACAC Home");
showLink("/groups/acac/people/", "People", "Members & Researchers");
showLink("/groups/acac/research/", "Research", "Research Areas");
showLink("/groups/acac/funding/", "Funding", "Funding");
showLink("/groups/acac/seminars/", "Seminars", "Our Seminar Program");
showLink("/groups/acac/visitors/", "Visitors", "Our Visitors");
showLink("/groups/acac/gradprog/", "Prospective Research Students", "Information for prospective research students");
showLink("/groups/acac/researchstudent_completed/", "Completed Research Students", "Information about research students who have completed their study");
echo '- Cybercrime Research Lab
';
echo '- Faculty Home
';
echo '
';
echo 'Information For
';
echo '';
}
function showLink($path2, $name, $alt="") {
showTree($path2, $name, $alt);
echo '';
}
function showTree($path2, $name, $alt="") {
if(!$alt || $alt == "") $alt = $name;
$result = matchPath($path2);
if($result == "valid") {
echo ''.$name.'';
} else if($result == "current") {
echo '- '.$name.'
';
# echo '- '.$name.'
';
} else if($result == "submenu") {
echo '- '.$name.'
';
} else {
echo '- HIDING'.$name.'
';
#echo '';
}
}
function matchPath($path2) {
global $path;
$path2 = explode("/", $path2);
for($i=0;$i';
} else {
echo '