All pastes #453443 Raw Edit

Anonymous

public php v1 · immutable
·published 2007-04-23 00:30 UTC
rendered paste body
if (isset($_SERVER["HTTP_ACCEPT"]) && stristr( $_SERVER["HTTP_ACCEPT"], "application/xhtml+xml")) {	header("Content-type: application/xhtml+xml; charset=UTF-8");	print("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");	print("<?xml-stylesheet href=\"/css\" type=\"text/css\" media=\"screen\" title=\"modelnegative.com screen stylesheet\"?>\n");} else { 	header("Content-type: text/html; charset=UTF-8");	print("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"); }