Text inzerátu |
@@ -696,18 +711,15 @@ function no_cache()
function heading($title=false)
{
- global $HTTP_SERVER_VARS,$msie_major,$mozilla_major,$title_tail,$head_css,$have_css,$head,$heading_done,$title_prefix,$force_charset;
+ global $msie_major,$mozilla_major,$title_tail,$head_css,$have_css,$head,$heading_done,$title_prefix,$force_charset;
if (isset($heading_done))
return;
$heading_done=true;
- if (isset($force_charset))
- $client_charset=$force_charset;
- else
- $client_charset=(!isset($HTTP_SERVER_VARS["CLIENT_CHARSET"]) ? "iso-8859-2" : $HTTP_SERVER_VARS["CLIENT_CHARSET"]);
- // When "CLIENT_CHARSET" is set we MUST NOT explicitely specify our "charset"
- header("Content-type: text/html".(isset($HTTP_SERVER_VARS["CLIENT_CHARSET"]) ? "" : "; charset=$client_charset"));
+ // $HTTP_SERVER_VARS["CLIENT_CHARSET"] ignored (mod_czech support dropped!)
+ $client_charset=(isset($force_charset) ? $force_charset : "iso-8859-2");
+ header("Content-type: text/html; charset=$client_charset");
header("Content-Style-Type: text/css");
if (!isset($msie_major) || $msie_major>=4) {
print(''."\n");
diff --git a/index.php b/index.php
index 724a636..67b7a8a 100644
--- a/index.php
+++ b/index.php
@@ -45,7 +45,7 @@
- |