"; } function GetIconName($typ_souboru,$typ_informace="filename") { if ($typ_informace=="filename") switch($typ_souboru) { case "":$icon_name="";break; default: if (eregi("rm",$typ_souboru)) $icon_name="real.gif"; else if (eregi("\.doc$",$typ_souboru)) $icon_name="word.gif"; else if (eregi("\.ppt$",$typ_souboru)) $icon_name="ppt.gif"; else if (eregi("\.xls$",$typ_souboru)) $icon_name="excel.gif"; else if (eregi("\.msg$",$typ_souboru)) $icon_name="msg.gif"; else if (eregi("(\.jpg$)|(\.jpeg$)",$typ_souboru)) $icon_name="image.gif"; else if (eregi("\.gif$",$typ_souboru)) $icon_name="image.gif"; else if (eregi("\.png$",$typ_souboru)) $icon_name="image.gif"; else if (eregi("(\.htm$)|(\.html$)|(\.php.*)",$typ_souboru)) $icon_name="html.gif"; else if (eregi("\.mp3$",$typ_souboru)) $icon_name="mp3.gif"; else if (eregi("\.zip$",$typ_souboru)) $icon_name="zip.gif"; else if (eregi("(\.txt$)|(\.text$)",$typ_souboru)) $icon_name="text.gif"; else if (eregi("(\.exe$)|(\.com$)|(\.dll$)",$typ_souboru)) $icon_name="exe.gif"; // else if (eregi("",$typ_souboru)) $icon_name=".gif"; else $icon_name="unknown.gif"; } else if ($typ_informace=="MIME") switch($typ_souboru) { case "":$icon_name="";break; default: if (eregi("rm",$typ_souboru)) $icon_name="real.gif"; else if (eregi("msword",$typ_souboru)) $icon_name="word.gif"; else if (eregi("jpeg",$typ_souboru)) $icon_name="image.gif"; else if (eregi("gif",$typ_souboru)) $icon_name="image.gif"; else if (eregi("png",$typ_souboru)) $icon_name="image.gif"; else if (eregi("html",$typ_souboru)) $icon_name="html.gif"; else if (eregi("mp3",$typ_souboru)) $icon_name="mp3.gif"; else if (eregi("text",$typ_souboru)) $icon_name="text.gif"; // else if (eregi("",$typ_souboru)) $icon_name=".gif"; else $icon_name="unknown.gif"; } return $icon_name; } ?>