. */ 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, $headlinks = null) { $newtitle = str_replace("&", "&", stripslashes($title)); print(' ' . $newtitle . ' '); if(!empty($headlinks)) { foreach($headlinks as $headlink) { print("\n\t" . $headlink); } } print('

' . $newtitle . '

'); } ?>