source: trunk/www/includes/common.inc @ 3981

Last change on this file since 3981 was 3981, checked in by mij, 17 years ago

New DarwinPorts site.

Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1<?php
2
3# $Id: common.inc,v 1.1 2003/11/19 01:59:08 mij Exp $
4# Copyright (c) 2003, OpenDarwin
5
6######################################################################
7
8# print the page header
9function print_header($title, $encoding) {
10  global $DOCUMENT_ROOT;
11?>
12<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
13  "http://www.w3.org/TR/xhtml/DTD/xhtml1-strict.dtd">
14<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
15  <head>
16    <title><?php echo("$title"); ?></title>
17    <meta http-equiv="Content-type" content="text/html; charset=<?php echo("$encoding"); ?>" />
18    <meta name="author" content="Jim Mock (mij@opendarwin.org)" />
19    <meta name="copyright" content="2003, OpenDarwin" />
20    <meta name="robots" content="all" />
21    <link rel="stylesheet" type="text/css" href="/dp.css" />
22    <link rel="alternate" type="application/rss+xml" href="http://darwinports.opendarwin.org/dp.xml" />
23  </head>
24
25  <body>
26
27  <div id="main">
28
29<?php
30  include("$DOCUMENT_ROOT/includes/header.inc");
31}
32
33######################################################################
34
35# print the page footer
36function print_footer() {
37  global $DOCUMENT_ROOT;
38
39  include("$DOCUMENT_ROOT/includes/footer.inc");
40
41  echo "  </body>\n";
42  echo "</html>\n";
43}
44?>
Note: See TracBrowser for help on using the repository browser.