|
|
@ -6,6 +6,8 @@ |
|
|
|
* @author PioDer <pioder@wp.pl> |
|
|
|
* @link http://suczawa.ath.cx/ |
|
|
|
**/ |
|
|
|
|
|
|
|
$xhtml=true; |
|
|
|
|
|
|
|
#wyświetl błąd
|
|
|
|
function blad($msg) |
|
|
@ -16,7 +18,8 @@ function blad($msg) |
|
|
|
} |
|
|
|
|
|
|
|
function NaglowekXHTML() |
|
|
|
{ |
|
|
|
{ |
|
|
|
global $xhtml; |
|
|
|
$xhtml = preg_match('/application\/xhtml\+xml(?![+a-z])(;q=(0\.\d{1,3}|[01]))?/i', |
|
|
|
$_SERVER['HTTP_ACCEPT'], $xhtml) && (isset($xhtml[2])?$xhtml[2]:1) > 0 || |
|
|
|
strpos($_SERVER["HTTP_USER_AGENT"], "W3C_Validator")!==false || |
|
|
|