"Name of Page", page=>"Filename/URL"), # $sidebarentries = array(0, # We skip this entry anyway... array(name=>"About freeglut", page=>"/index.php"), array(name=>"Latest News", page=>"/news.php"), array(name=>"Info for Users", page=>"/uinfo.php"), array(name=>"Info for Developers", page=>"/dinfo.php"), 1, array(name=>"Download", page=>"/index.php#download"), 1, array(name=>"How You Can Help", page=>"/help.php"), array(name=>"Look at Progress", page=>"/progress.php"), 1, array(name=>"Report a Bug", page=>"http://sourceforge.net/tracker/?func=add&group_id=1032&atid=101032"), array(name=>"Request a Feature", page=>"http://sourceforge.net/tracker/?func=add&group_id=1032&atid=351032"), 1, array(name=>"Project Interface", page=>"http://sourceforge.net/projects/freeglut/") ); function generateHeader($self) { global $title; ?> <? echo $title ?> "; else if ($current_page == $item[page]) echo "
$item[name]
"; else echo "
$item[name]
"; } function generateSideBar($current_page) { global $sidebarentries; echo "
"; # Open the navbar # Print out the logo! echo "
The Free OpenGL Utility Toolkit

"; # Print out each sidebar entry one by one... reset($sidebarentries); while (next($sidebarentries)) { printMenuItem(current($sidebarentries), $current_page); } # This allows a user to view our PHP source... it's in CVS anyway, and why not spread the love of # slick web page design? ;) $cvs_location = "http://cvs.sourceforge.net/viewcvs.py/freeglut/freeglut/web-src$current_page?view=auto"; # Print the SourceForge logo button and the "View source" link echo "

View PHP Source
"; echo "
"; # Close the navbar. } function setPageTitle($title_inc) { global $site_title, $title; $title = $site_title . " :: " . $title_inc; } ?>