root/alternc/trunk/bureau/class/mime.php

Revision 1698, 5.8 kB (checked in by anarcat, 2 years ago)

use _ instead of to translate properly file type

Line 
1 <?php
2 /*
3  $Id: mime.php,v 1.3 2004/06/03 14:32:20 anonymous Exp $
4  ----------------------------------------------------------------------
5  AlternC - Web Hosting System
6  Copyright (C) 2002 by the AlternC Development Team.
7  http://alternc.org/
8  ----------------------------------------------------------------------
9  Based on:
10  Valentin Lacambre's web hosting softwares: http://altern.org/
11  ----------------------------------------------------------------------
12  LICENSE
13
14  This program is free software; you can redistribute it and/or
15  modify it under the terms of the GNU General Public License (GPL)
16  as published by the Free Software Foundation; either version 2
17  of the License, or (at your option) any later version.
18
19  This program is distributed in the hope that it will be useful,
20  but WITHOUT ANY WARRANTY; without even the implied warranty of
21  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22  GNU General Public License for more details.
23
24  To read the license please visit http://www.gnu.org/copyleft/gpl.html
25  ----------------------------------------------------------------------
26  Original Author of file: Benjamin Sonntag 23/12/2001
27  Purpose of file: Brouteur php3 pour AlternC
28  ----------------------------------------------------------------------
29 */
30 /*
31     Brouteur php3 pour AlternC (voir http://www.alternc.org)
32     
33     Version 0.1
34
35     Notes :   
36         Benjamin Sonntag 23/12/2001 Version initiale
37     
38     Fichier :
39         mime.php3 : gestion de la liste des types mime des fichiers.
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
Note: See TracBrowser for help on using the browser.