X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=common.php;h=1d666bdd993c94faa957a729117b0a43d898ec5f;hb=e916ef7038d58b2a8b9ae8949cbb8a1c639f3f52;hp=655c7edcf7405bda082a7463072757b850819f2c;hpb=572727a32d07ab590c56b7d63ff34b6d2e6fd4e2;p=www.energie.vellum.cz.git diff --git a/common.php b/common.php index 655c7ed..1d666bd 100644 --- a/common.php +++ b/common.php @@ -14,7 +14,7 @@ ."" .$cvs_id_split[2].""; $cvs_id_split[1]="".$cvs_id_split[1].""; - $cvs_id_split[5]="".$cvs_id_split[5].""; + $cvs_id_split[5]="".$cvs_id_split[5].""; } $cvs_id_html=join(" ",$cvs_id_split); @@ -67,7 +67,7 @@ function fatal($msg="UNKNOWN") { global $admin_mail; - heading(false/*title*/); // it is always safe + heading(false/*title*/,false/*indexme*/); // notitle is always safe, don't index the error message print("\n
Mù¾ete tento problém nahlásit správci tohoto webu.
\n"); footer(); @@ -245,7 +245,7 @@ function title_month($year,$month) ); } -function title_icons_table_month($year,$month,$month_last,$sequential) +function title_icons_table_month($year,$month,$month_last,$sequential,$has_contents) { global $tb_clanek; @@ -256,11 +256,13 @@ function title_icons_table_month($year,$month,$month_last,$sequential) .img($month_a["icon"],"titulní stránka ".$month_a["name_full"])."\n" ."-@@ -694,20 +712,17 @@ function no_cache() header("Pragma: no-cache"); // HTTP/1.0 } -function heading($title=false) +function heading($title=true,$indexme=true) { - 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"); @@ -742,6 +757,7 @@ h1,h2 { color: yellow; background-color: transparent; } print(trim($head_css)."\n"); print("-->\n"); } + print(''."\n"); if (isset($head)) print($head); print("\n"); if ($title) - print("