From: short <> Date: Sun, 21 Apr 2002 00:22:19 +0000 (+0000) Subject: Removed all remaining GIFs in favor of PNGs/MNGs. X-Git-Url: https://git.jankratochvil.net/?a=commitdiff_plain;ds=sidebyside;h=eaf9eedf3893df136b41689a349c378f6c7302d1;p=www.energie.vellum.cz.git Removed all remaining GIFs in favor of PNGs/MNGs. --- diff --git a/.htaccess b/.htaccess index c8cdd7a..e8f1f48 100644 --- a/.htaccess +++ b/.htaccess @@ -4,6 +4,7 @@ php_flag short_open_tag off php_flag magic_quotes_gpc off php_flag magic_quotes_runtime off AddType text/javascript .js +AddType video/x-mng .mng AuthType Basic AuthName energie.objednavky diff --git a/common.php b/common.php index a8f4d00..3691b89 100644 --- a/common.php +++ b/common.php @@ -190,7 +190,8 @@ function img($file,$alt,$attrs="") function gsm_banking() { - return(img("img/sluzby_bankovni_pggsm.gif","Paegas GSM banking","class=\"img-align\"")); + return(img("img/sluzby_bankovni_pggsm.".(image_supported("video/x-mng") ? "mng" : "gif"), + "Paegas GSM banking","class=\"img-align\"")); } function price_a() @@ -388,14 +389,15 @@ zvolte pros
  • - +
    ".img("img/adobe-pdficon-alpha.gif","Adobe PDF").""); ?>
    ".img("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 diff --git a/index.php b/index.php index 8b044cc..724a636 100644 --- a/index.php +++ b/index.php @@ -159,7 +159,8 @@ print_addr("Adresa pro zas
    Doporuèujeme:".img("img/tzb-info.gif","TZB-info").""); + print("".img("img/tzb-info.".(image_supported("video/x-mng") ? "mng" : "gif"), + "TZB-info").""); ?>