/* $Id: header.inc,v 1.1 2002/11/12 07:41:06 bbum Exp $ */
// section navigation (always visible)
$sections = array(
"index.php", "Home", "home",
"doc/index.php", "Documentation", "documentation",
"faq/index.php", "FAQ", "faq",
"software/", "Download", "download",
"examples/index.php", "Examples", "examples",
"http://sourceforge.net/mail/?group_id=14534", "Mailing Lists", "mailing-lists"
);
if (!$section)
$section = "home";
// main navigation box
$home_navbox = array(
"index.php", "Home",
"news/index.php", "News",
"about.php", "About",
"people.php", "History & People",
"links.php", "Links"
);
if (!is_array($navbox)) {
$navbox = $home_navbox;
}
// get author and change date from CVS vars
// kill dollar-envelope
if (substr($cvs_author,0,1) == "$")
$cvs_author = rtrim(substr($cvs_author, 1, -1));
if (substr($cvs_date,0,1) == "$")
$cvs_date = rtrim(substr($cvs_date, 1, -1));
// get data
if (ereg("^Author: (.*)$", $cvs_author, $r)) {
$author = $r[1];
} else {
$author = "-unknown-";
}
if (ereg("^Date: ([0-9]{2,4})/([0-9]{1,2})/([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $cvs_date, $r)) {
$date = gmmktime($r[4], $r[5], $r[6], $r[2], $r[3], $r[1]);
} else {
$date = filemtime($PATH_TRANSLATED);
}
?>
PyObjC - print $title ?>
if ($metatags)
print $metatags;
?>
/* header and sourceforge logo */ ?>
/* main table with navigation column and content column */ ?>
/* navigation column table */ ?>
/* end navigation column */ ?>
/* content column table */ ?>
/* content */
/*** end of inline HTML ***/
/* functions to create key-value tables on the fly */
function it_start() {
global $it_flag;
$it_flag = 0;
?>
}
function it_item($title, $item) {
global $it_flag, $root;
if ($it_flag) {
print ' '."\n";
}
$it_flag = 1;
print ''.$title.' '.
$item.' '."\n";
}
function it_end() {
?>
}
/* mis functions */
function gray_line ()
{
global $root;
print ' ';
}
?>