diff --git a/robocze/functions.php b/robocze/functions.php index b242693..43b886c 100644 --- a/robocze/functions.php +++ b/robocze/functions.php @@ -6,6 +6,8 @@ * @author PioDer * @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 ||