X-Git-Url: https://git.jankratochvil.net/?a=blobdiff_plain;f=common.php;h=93df63c5ec8ff83a7e7b6d8a3bef9c9dc003427b;hb=03d36b034bbe5c674a89de64ba021f694bf11370;hp=048176a53c7e89cdaa22a5c3c670754a9fb9255a;hpb=021593947b8e0052a1e15a1006a111c8749ba131;p=www.energie.vellum.cz.git diff --git a/common.php b/common.php index 048176a..93df63c 100644 --- a/common.php +++ b/common.php @@ -20,6 +20,8 @@ if (!isset($head)) $head=""; + if (!isset($energie_base)) + $energie_base=""; unset($have_ent); if (isset($HTTP_GET_VARS[ "have_ent"])) @@ -31,13 +33,13 @@ .htmlspecialchars("http://".$HTTP_SERVER_VARS["HTTP_HOST"].$HTTP_SERVER_VARS["PHP_SELF"] ."?".(strlen($HTTP_SERVER_VARS["QUERY_STRING"]) ? $HTTP_SERVER_VARS["QUERY_STRING"] : "detect_ent_glue=1") ."&have_ent=detect") - .'">'."\n"; + .'" />'."\n"; fixampvars(); $have_js=(isset($HTTP_GET_VARS["have_js"]) || isset($HTTP_POST_VARS["have_js"]) ? "?have_js=1" : ""); if (isset($detect_js) && !$have_js) - $head.=''."\n"; + $head.=''."\n"; $user_agent=(!isset($HTTP_SERVER_VARS["HTTP_USER_AGENT"]) ? "" : $HTTP_SERVER_VARS["HTTP_USER_AGENT"]); if (ereg("[[:<:]]MSIE ([0-9]+)\\.",$user_agent,$msie_major_a)) @@ -197,7 +199,9 @@ function img($file,$alt,$attrs="") function gsm_banking() { - return(img("img/sluzby_bankovni_pggsm.".(image_supported("video/x-mng") ? "mng" : "gif"), + global $energie_base; + + return(img($energie_base."img/sluzby_bankovni_pggsm.".(image_supported("video/x-mng") ? "mng" : "gif"), "Paegas GSM banking","class=\"img-align\"")); } @@ -380,6 +384,8 @@ function img_href($filename,$text) function print_pdf_layout($name,$base) { + global $energie_base; + $imgfmt=(image_supported("image/png") ? "png" : "gif"); ?>

Shodný je dostupný ve dvou rùzných formátech souboru. V pøípadì, @@ -396,7 +402,7 @@ zvolte pros

  • - @@ -404,7 +410,7 @@ zvolte pros
    ".img("img/adobe-pdficon-alpha.".(image_supported("image/png") ? "png" : "gif"), +
    ".img($energie_base."img/adobe-pdficon-alpha.".(image_supported("image/png") ? "png" : "gif"), "Adobe PDF").""); ?>
    Soubor je ve formátu Adobe Acrobat, pro jeho pøeètení si prosím nainstalujte @@ -629,7 +635,7 @@ function footer_img($url,$text,$size) function a_href($url,$contents) { - global $have_ent; + global $have_ent,$energie_base; $r="$contents"; return($r); } @@ -655,7 +661,7 @@ function footer($delimit=true) exit(); $footer_passed=true; - global $cvs_id_html,$viewcvs,$viewcvs,$HTTP_SERVER_VARS; + global $cvs_id_html,$viewcvs,$viewcvs,$HTTP_SERVER_VARS,$energie_base; if ($delimit) print("

     

    \n"); $uri="uri=".urlencode("http://".$HTTP_SERVER_VARS["HTTP_HOST"].$HTTP_SERVER_VARS["REQUEST_URI"]); @@ -665,9 +671,9 @@ function footer($delimit=true)