From: Andy W. <wi...@us...> - 2002-01-14 03:20:00
|
Update of /cvsroot/gstreamer/www/lib In directory usw-pr-cvs1:/tmp/cvs-serv9600/lib Modified Files: template.php Log Message: added a url option, try appending ?clean=1 to any page. this way we can make release notes just by saying lynx -dump http://gstreamer.net/releases/current/notice.php also began 0.3.2 release stuff Index: template.php =================================================================== RCS file: /cvsroot/gstreamer/www/lib/template.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- template.php 2001/12/21 09:50:58 1.11 +++ template.php 2002/01/14 03:19:57 1.12 @@ -3,8 +3,12 @@ $local_prefix = ''; function get_header($title, $prefix) { - global $local_prefix; + global $local_prefix, $clean; $local_prefix = $prefix; // this is a hack so i don't have to pass prefix to get_footer + + if ($clean==1) + return "<html><head><title>$title</title></head><body>\n"; + $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"> @@ -91,30 +95,13 @@ } function get_footer() { - global $local_prefix; + global $local_prefix, $clean; $prefix = $local_prefix; + + if ($clean==1) + return "</body></html>\n"; + $ret = <<<EOF -<!-- force content table cell width --> -<font size="-2"> - - - - - - - - - - - - - - - - - - -</font> </td> <td width="22"><img src="$prefix/images/1x1.gif" alt="" border="0" width="22" height="2"></td> </tr> |