From 823ab006aaa504aaaa9be5e9b5c27cbdf3df28cc Mon Sep 17 00:00:00 2001 From: Nick White Date: Sun, 23 Aug 2009 02:41:10 +0100 Subject: Initial commit of website code --- includes/header.php | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 includes/header.php (limited to 'includes/header.php') diff --git a/includes/header.php b/includes/header.php new file mode 100644 index 0000000..b9c59fc --- /dev/null +++ b/includes/header.php @@ -0,0 +1,48 @@ +. + */ + +header("Vary: Accept"); +if (stristr($_SERVER["HTTP_ACCEPT"], "application/xhtml+xml")) + header("Content-Type: application/xhtml+xml; charset=utf-8"); +else + header("Content-Type: text/html; charset=utf-8"); + +function xhtml_header($title) +{ + $newtitle = str_replace("&", "&", stripslashes($title)); + + print(' + + + + + + ' . $newtitle . ' + + + + + + + + +

' . $newtitle . '

'); + +} +?> -- cgit v1.2.3