[gst-cvs] CVS: www/lib .cvsignore,NONE,1.1 template.php,NONE,1.1
Andy Wingo
wingo at users.sourceforge.net
Sat Oct 13 12:50:06 PDT 2001
Update of /cvsroot/gstreamer/www/lib
In directory usw-pr-cvs1:/tmp/cvs-serv28253/lib
Added Files:
.cvsignore template.php
Log Message:
some template files, but not the one with all the passwords in it :)
--- NEW FILE: .cvsignore ---
db_setup.php
--- NEW FILE: template.php ---
<?php
function get_header($title, $prefix) {
$menu = get_menu($prefix);
$ret = <<<EOF
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title>$title</title>
</head>
<style type="text/css">
@import url('$prefix/gstreamer.css');
body {
background-color: #FFF;
font-family: Arial, Helvetica, sans-serif;
}
p.sub-title {
font-weight: bold;
letter-spacing: 0.1em;
}
</style>
<body>
<table>
<tr>
<td colspan="2">
<a href="$prefix/ridgerun.shtml">
<img align="right" width="138" height="30" src="$prefix/images/ridgerun.gif" border="0" alt="RidgeRun">
</a>
<a href="$prefix/"><img src="$prefix/images/gstlogo.gif" alt="gstreamer" align="middle" border="0"></a>
<p class="sub-title">Streaming Media Framework</p>
</td>
</tr>
<tr>
<td valign="top">
$menu
</td>
<td valign="top" width="100%">
<div class="body">
EOF;
return $ret;
}
function get_menu ($prefix) {
$menu_items = array(
faq => "$prefix/docs/faq.php",
download => "$prefix/download/",
documentation => "$prefix/docs/",
news => "$prefix/news/",
status => "$prefix/status/",
developers => "$prefix/dev/",
applications => "$prefix/apps/",
contact => "$prefix/contact/",
wiki => "$prefix/wik/"
);
$ret = '';
foreach($menu_items as $name => $path) {
$ret .= "<a href=\"$path\">$name</a><br>\n";
}
$ret = <<<EOF
$ret
<br><br>
<a href="http://sourceforge.net/">
<img src="http://sourceforge.net/sflogo.php?group_id=1936" width="88" height="31" border="0" alt="SourceForge Logo">
</a>
<br>
<a href="http://sourceforge.net/projects/gstreamer/">GStreamer<br>SF page</A>
<br><br>
Partner Projects<br>
<a href="http://www.gnome.org/">
<img src="$prefix/images/gnomelogo.png" alt="The GNOME project" border="0">
</a>
<br>
<a href="http://openquicktime.sourceforge.net/">
<img src="$prefix/images/OpenQuicktimeSmallLogo.jpg" alt="Open Quicktime" border="0">
</a>
EOF;
return $ret;
}
function get_footer() {
$ret = <<<EOF
</div>
</td>
</tr>
</table>
</body>
</html>
EOF;
return $ret;
}
?>
More information about the Gstreamer-commits
mailing list