| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
|
|---|
| 40 |
|
|---|
| 41 |
|
|---|
| 42 |
if (!IsSet($MIME_H)) { |
|---|
| 43 |
$MIME_H=1; |
|---|
| 44 |
|
|---|
| 45 |
$bro_mime= |
|---|
| 46 |
array( |
|---|
| 47 |
"css" => "text/css", |
|---|
| 48 |
"csv" => "text/comma-separated-values", |
|---|
| 49 |
"dia" => "application/x-dia", |
|---|
| 50 |
"doc" => "application/msword", |
|---|
| 51 |
"dot" => "application/msword", |
|---|
| 52 |
"epf" => "application/postscript", |
|---|
| 53 |
"gif" => "image/gif", |
|---|
| 54 |
"hqx" => "application/mac-binhex40", |
|---|
| 55 |
"htm" => "text/html", |
|---|
| 56 |
"html"=> "text/html", |
|---|
| 57 |
"jpeg" => "image/jpeg", |
|---|
| 58 |
"jpg" => "image/jpeg", |
|---|
| 59 |
"m3u" => "audio/mpegurl", |
|---|
| 60 |
"mp3" => "audio/mpeg", |
|---|
| 61 |
"ogg" => "application/ogg", |
|---|
| 62 |
"pdf" => "application/pdf", |
|---|
| 63 |
"php" => "text/plain", |
|---|
| 64 |
"png" => "image/png", |
|---|
| 65 |
"pps" => "application/powerpoint", |
|---|
| 66 |
"ppt" => "application/powerpoint", |
|---|
| 67 |
"ps" => "application/postscript", |
|---|
| 68 |
"psd" => "image/psd", |
|---|
| 69 |
"ra" => "audio/x-pn-realaudio", |
|---|
| 70 |
"ram" => "audio/x-pn-realaudio", |
|---|
| 71 |
"rar" => "application/rar", |
|---|
| 72 |
"rm" => "audio/x-pn-realaudio", |
|---|
| 73 |
"rtf" => "text/rtf", |
|---|
| 74 |
"swf" => "application/x-shockwave-flash", |
|---|
| 75 |
"sxc" => "application/vnd.sun.xml.calc", |
|---|
| 76 |
"sxd" => "application/vnd.sun.xml.draw", |
|---|
| 77 |
"sxi" => "application/vnd.sun.xml.impress", |
|---|
| 78 |
"sxw" => "application/vnd.sun.xml.writer", |
|---|
| 79 |
"tif" => "image/tiff", |
|---|
| 80 |
"tiff" => "image/tiff", |
|---|
| 81 |
"txt" => "text/plain", |
|---|
| 82 |
"vcf" => "text/x-vCard", |
|---|
| 83 |
"vcs" => "text/x-vCalendar", |
|---|
| 84 |
"xcf" => "image/xcf", |
|---|
| 85 |
"xls" => "application/vnd.ms-excel", |
|---|
| 86 |
"zip" => "application/zip", |
|---|
| 87 |
); |
|---|
| 88 |
|
|---|
| 89 |
$bro_icon= |
|---|
| 90 |
array( |
|---|
| 91 |
"css" => "txt", |
|---|
| 92 |
"csv" => "xls", |
|---|
| 93 |
"dia" => "jpg", |
|---|
| 94 |
"doc" => "doc", |
|---|
| 95 |
"dot" => "doc", |
|---|
| 96 |
"epf" => "txt", |
|---|
| 97 |
"gif" => "jpg", |
|---|
| 98 |
"hqx" => "exe", |
|---|
| 99 |
"htm" => "htm", |
|---|
| 100 |
"html"=> "htm", |
|---|
| 101 |
"jpeg" => "jpg", |
|---|
| 102 |
"jpg" => "jpg", |
|---|
| 103 |
"m3u" => "m3u", |
|---|
| 104 |
"mp3" => "wav", |
|---|
| 105 |
"ogg" => "wav", |
|---|
| 106 |
"pdf" => "pdf", |
|---|
| 107 |
"php" => "php", |
|---|
| 108 |
"png" => "jpg", |
|---|
| 109 |
"pps" => "ppt", |
|---|
| 110 |
"ppt" => "ppt", |
|---|
| 111 |
"ps" => "txt", |
|---|
| 112 |
"psd" => "jpg", |
|---|
| 113 |
"ra" => "ra", |
|---|
| 114 |
"ram" => "ra", |
|---|
| 115 |
"rar" => "zip", |
|---|
| 116 |
"rm" => "ra", |
|---|
| 117 |
"rtf" => "doc", |
|---|
| 118 |
"swf" => "swf", |
|---|
| 119 |
"sxc" => "sxc", |
|---|
| 120 |
"sxd" => "sxd", |
|---|
| 121 |
"sxi" => "sxi", |
|---|
| 122 |
"sxw" => "sxw", |
|---|
| 123 |
"tif" => "jpg", |
|---|
| 124 |
"tiff" => "jpg", |
|---|
| 125 |
"txt" => "txt", |
|---|
| 126 |
"vcf" => "file", |
|---|
| 127 |
"vcs" => "file", |
|---|
| 128 |
"xcf" => "jpg", |
|---|
| 129 |
"xls" => "xls", |
|---|
| 130 |
"zip" => "zip", |
|---|
| 131 |
); |
|---|
| 132 |
|
|---|
| 133 |
$bro_type= |
|---|
| 134 |
array( |
|---|
| 135 |
"css" => _("CSS Stylesheet"), |
|---|
| 136 |
"csv" => _("Comma Separated Values data"), |
|---|
| 137 |
"dia" => _("DIA Diagram"), |
|---|
| 138 |
"doc" => _("Word Document"), |
|---|
| 139 |
"dot" => _("Word Document Template"), |
|---|
| 140 |
"epf" => _("Encapsulated Postscript"), |
|---|
| 141 |
"gif" => _("GIF Image"), |
|---|
| 142 |
"hqx" => _("Macintosh Executable"), |
|---|
| 143 |
"htm" => _("HTML Document"), |
|---|
| 144 |
"html"=> _("HTML Document"), |
|---|
| 145 |
"jpeg" => _("JPEG Image"), |
|---|
| 146 |
"jpg" => _("JPEG Image"), |
|---|
| 147 |
"m3u" => _("Music Playlist"), |
|---|
| 148 |
"mp3" => _("MP3 Music File"), |
|---|
| 149 |
"ogg" => _("Ogg Music File"), |
|---|
| 150 |
"pdf" => _("Acrobat PDF"), |
|---|
| 151 |
"php" => _("PHP Source"), |
|---|
| 152 |
"png" => _("PNG Image"), |
|---|
| 153 |
"pps" => _("Powerpoint Slideshow"), |
|---|
| 154 |
"ppt" => _("Powerpoint Slideshow"), |
|---|
| 155 |
"ps" => _("Postscript Document"), |
|---|
| 156 |
"psd" => _("Photoshop Image"), |
|---|
| 157 |
"rar" => _("Rar Compressed Files"), |
|---|
| 158 |
"rtf" => _("Rich Text Document"), |
|---|
| 159 |
"sxc" => _("OpenOffice Spreadsheet"), |
|---|
| 160 |
"sxd" => _("OpenOffice Drawing"), |
|---|
| 161 |
"sxi" => _("OpenOffice Presentation"), |
|---|
| 162 |
"sxw" => _("OpenOffice Writer"), |
|---|
| 163 |
"tif" => _("TIFF Image"), |
|---|
| 164 |
"tiff" => _("TIFF Image"), |
|---|
| 165 |
"txt" => _("Text Document"), |
|---|
| 166 |
"vcf" => _("Virtual Card"), |
|---|
| 167 |
"vcs" => _("Virtual Card"), |
|---|
| 168 |
"xcf" => _("Gimp Image"), |
|---|
| 169 |
"xls" => _("Excel Spreadsheet"), |
|---|
| 170 |
"zip" => _("Zip Compressed Files"), |
|---|
| 171 |
"sxw" => _("Flash Animation"), |
|---|
| 172 |
"ra" => _("Real Media File"), |
|---|
| 173 |
"rm" => _("Real Media File"), |
|---|
| 174 |
"ram" => _("Real Media File"), |
|---|
| 175 |
); |
|---|
| 176 |
|
|---|
| 177 |
} |
|---|
| 178 |
?> |
|---|
| 179 |
|
|---|