From 92387e5261e3bd9ff32962f286a7cdd00126f8b6 Mon Sep 17 00:00:00 2001 From: chp1994 Date: Fri, 26 Jun 2009 10:14:19 +0000 Subject: [PATCH] =?UTF-8?q?Ehh,=20zapomnia=C5=82em=20o=20tym=20przy=20comm?= =?UTF-8?q?icie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.pioder.pl/sg-svn@15 3ed2631f-fe0d-47e0-9194-a46bc0f18ee8 --- robocze/functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ||