Ehh, zapomniałem o tym przy commicie

git-svn-id: https://svn.pioder.pl/sg-svn@15 3ed2631f-fe0d-47e0-9194-a46bc0f18ee8
This commit is contained in:
chp1994
2009-06-26 10:14:19 +00:00
parent 893a39bd11
commit 92387e5261

View File

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