[ Index ]
 

Code source de SPIP 1.8.3

Accédez au Source d'autres logiciels libres | Soutenez Angelica Josefina !

title

Body

[fermer]

/ecrire/ -> inc_typebase.php3 (source)

   1  <?php
   2  
   3  /***************************************************************************\
   4   *  SPIP, Systeme de publication pour l'internet                           *
   5   *                                                                         *
   6   *  Copyright (c) 2001-2005                                                *
   7   *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
   8   *                                                                         *
   9   *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
  10   *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
  11  \***************************************************************************/
  12  
  13  
  14  //
  15  // Ce fichier ne sera execute qu'une fois
  16  if (defined("_ECRIRE_INC_TYPEBASE")) return;
  17  define("_ECRIRE_INC_TYPEBASE", "1");
  18  
  19  global $tables_images, $tables_sequences, $tables_documents, $tables_mime;
  20  
  21  $tables_images = array(
  22                 // Images reconnues par PHP
  23                 'jpg' => 1, 
  24                 'png' => 2, 
  25                 'gif' => 3,
  26  
  27                 // Autres images (peuvent utiliser le tag <img>)
  28                 'bmp' => 'BMP',
  29                 'psd' => 'Photoshop',
  30                 'tif' => 'TIFF'
  31                 );
  32  
  33  // Multimedia (peuvent utiliser le tag <embed>)
  34  
  35  $tables_sequences = array(
  36                'aiff' => 'AIFF',
  37                'asf' => 'Windows Media',
  38                'avi' => 'Windows Media',
  39                'mid' => 'Midi',
  40                'mng' => 'MNG',
  41                'mov' => 'QuickTime',
  42                'mp3' => 'MP3',
  43                'mpg' => 'MPEG',
  44                'ogg' => 'Ogg',
  45                'qt' => 'QuickTime',
  46                'ra' => 'RealAudio',
  47                'ram' => 'RealAudio',
  48                'rm' => 'RealAudio',
  49                'swf' => 'Flash',
  50                'wav' => 'WAV',
  51                'wmv' => 'Windows Media'
  52                );
  53  
  54  // Documents varies
  55  $tables_documents = array(
  56                'ai' => 'Adobe Illustrator',
  57                'bz2' => 'BZip',
  58                'bin' => 'Binary Data',
  59                'c' => 'C source',
  60                'css' => 'Cascading Style Sheet',
  61                'deb' => 'Debian',
  62                'doc' => 'Word',
  63                'djvu' => 'DjVu',
  64                'dvi' => 'LaTeX DVI',
  65                'eps' => 'PostScript',
  66                'gz' => 'GZ',
  67                'h' => 'C header',
  68                'html' => 'HTML',
  69                'pas' => 'Pascal',
  70                'pdf' => 'PDF',
  71                'pgn' => 'Portable Game Notation',
  72                'ppt' => 'PowerPoint',
  73                'ps' => 'PostScript',
  74                'rpm' => 'RedHat/Mandrake/SuSE',
  75                'rtf' => 'RTF',
  76                'sdd' => 'StarOffice',
  77                'sdw' => 'StarOffice',
  78                'sit' => 'Stuffit',
  79                'sxc' => 'OpenOffice Calc',
  80                'sxi' => 'OpenOffice Impress',
  81                'sxw' => 'OpenOffice',
  82                'tex' => 'LaTeX',
  83                'torrent' => 'BitTorrent',
  84                'tgz' => 'TGZ',
  85                'txt' => 'texte',
  86                'xcf' => 'GIMP multi-layer',
  87                'xls' => 'Excel',
  88                'xml' => 'XML',
  89                'zip' => 'Zip'
  90                );
  91  
  92  $tables_mime = array(
  93          // Images reconnues par PHP
  94          'jpg'=>'image/jpeg',
  95          'png'=>'image/png',
  96          'gif'=>'image/gif',
  97  
  98          // Autres images (peuvent utiliser le tag <img>)
  99          'bmp'=>'image/x-ms-bmp', // pas enregistre par IANA, variante: image/bmp
 100          'psd'=>'image/x-photoshop',    // pas IANA
 101          'tif'=>'image/tiff',
 102  
 103          // Multimedia (peuvent utiliser le tag <embed>)
 104          'aiff'=>'audio/x-aiff',
 105          'asf'=>'video/x-ms-asf',
 106          'avi'=>'video/x-msvideo',
 107          'mid'=>'audio/midi',
 108          'mng'=>'video/x-mng',
 109          'mov'=>'video/quicktime',
 110          'mp3'=>'audio/mpeg',
 111          'mpg'=>'video/mpeg',
 112          'ogg'=>'application/ogg',
 113          'qt' =>'video/quicktime',
 114          'ra' =>'audio/x-pn-realaudio',
 115          'ram'=>'audio/x-pn-realaudio',
 116          'rm' =>'audio/x-pn-realaudio',
 117          'swf'=>'application/x-shockwave-flash',
 118          'wav'=>'audio/x-wav',
 119          'wmv'=>'video/x-ms-wmv',
 120  
 121          // Documents varies
 122          'ai' =>'application/illustrator',
 123          'bin' => 'application/octet-stream', # le tout-venant
 124          'bz2'=>'application/x-bzip2',
 125          'c'  =>'text/x-csrc',
 126          'css'=>'text/css',
 127          'deb'=>'application/x-debian-package',
 128          'doc'=>'application/msword',
 129          'djvu'=>'image/vnd.djvu',
 130          'dvi'=>'application/x-dvi',
 131          'eps'=>'application/postscript',
 132          'gz' =>'application/x-gzip',
 133          'h'  =>'text/x-chdr',
 134          'html'=>'text/html',
 135          'pas'=>'text/x-pascal',
 136          'pdf'=>'application/pdf',
 137          'pgn' =>'application/x-chess-pgn',
 138          'ppt'=>'application/vnd.ms-powerpoint',
 139          'ps' =>'application/postscript',
 140          'rpm'=>'application/x-redhat-package-manager',
 141          'rtf'=>'application/rtf',
 142          'sdd'=>'application/vnd.stardivision.impress',
 143          'sdw'=>'application/vnd.stardivision.writer',
 144          'sit'=>'application/x-stuffit',
 145          'sxc'=>'application/vnd.sun.xml.calc',
 146          'sxi'=>'application/vnd.sun.xml.impress',
 147          'sxw'=>'application/vnd.sun.xml.writer',
 148          'tex'=>'text/x-tex',
 149          'torrent' => 'application/x-bittorrent',
 150          'tgz'=>'application/x-gtar',
 151          'txt'=>'text/plain',
 152          'xcf'=>'application/x-xcf',
 153          'xls'=>'application/vnd.ms-excel',
 154          'xml'=>'application/xml',
 155          'zip'=>'application/zip'
 156      );
 157  ?>


Généré le : Thu Feb 22 22:27:47 2007 par Balluche grâce à PHPXref 0.7