X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=common.php;h=8a7b6edec50282cc1ee4c3e812eab3c76c3ffc6c;hb=2a93affb8ee9043eceb39e57f6663d3b8e002728;hp=93df63c5ec8ff83a7e7b6d8a3bef9c9dc003427b;hpb=03d36b034bbe5c674a89de64ba021f694bf11370;p=www.energie.vellum.cz.git diff --git a/common.php b/common.php index 93df63c..8a7b6ed 100644 --- a/common.php +++ b/common.php @@ -565,6 +565,21 @@ function input_text($name,$size,$default_value="",$addons="") return($r); } +function form_charset() +{ + // CSacek-2.1.9+ required (mod_czech support dropped!) + // We MUST have input coded in "iso-8859-2" as we use + // "csacekRecodeInput Off", CSacek otherwise tries to recode input but CSacek + // _cannot_ know the encoding used by the client (moreover it IGNORES POST + // data MIME type, even if provided by Lynx 2.8.4dev.11, Mozilla 1.0.0 + // doesn't provide anything). + // "iso-8859-2" should be replaced by $HTTP_SERVER_VARS["HTTP_X_CLIENT_CHARSET"] + // and "csacekRecodeInput On"(default) when CSacek fixes support of "utf-8" + // input-decoding, details in my mail <20020620134930.GA18761@short.ucw.cz>. + + return('enctype="application/x-www-form-urlencoded" accept-charset="iso-8859-2"'); +} + function print_form_radkova_inzerce($readonly,$total,$submit_name,$submit_value) { global $have_js,$text,$doklad; @@ -572,7 +587,7 @@ function print_form_radkova_inzerce($readonly,$total,$submit_name,$submit_value) $addons=(!$readonly ? "" : " readonly=\"readonly\""); ?>
-@@ -668,12 +684,15 @@ function footer($delimit=true) ?>
4 + .a_href("http://www.w3.org/Style/CSS/Buttons",'' + .img($energie_base."img/mwcts." .(image_supported("image/png") ? "png" : "gif"),"Made with CSS").'') ); ?> |