[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/config/ -> mime_drivers.php.dist (source)

   1  <?php
   2  /**
   3   * $Horde: horde/config/mime_drivers.php.dist,v 1.97.6.9 2006/04/06 21:32:14 jan Exp $
   4   *
   5   * Decide which output drivers you want to activate for all Horde
   6   * applications. Individual Horde applications can override these settings
   7   * in their config/mime_drivers.php files.
   8   *
   9   * The available drivers are:
  10   * --------------------------
  11   * css            CSS Styles
  12   * deb            Debian packages
  13   * enriched       Enriched text format
  14   * enscript       GNU enscript
  15   * html           HTML data
  16   * images         Image files
  17   * msword         Microsoft Word files via wvHtml
  18   * msexcel        Microsoft Excel files via xlhtml
  19   * mspowerpoint   Microsoft Powerpoint files via ppthtml
  20   * ooo            OpenOffice.org/StarOffice Documents
  21   * pdf            Portable Document Format (PDF) files
  22   * php            The internal PHP4 syntax highlighting engine
  23   * plain          Return text, with links made clickable and other HTML
  24   *                filtered out
  25   * rar            RAR archives
  26   * report         Report messages (RFC 3452)
  27   * rfc822         Digested messages (RFC 2046 [5.2.1])
  28   * richtext       Richtext text format (RFC 1341 [7.1.3])
  29   * rpm            RPM packages
  30   * security       Secure multiparts (RFC 1847)
  31   * simple         Output text without modification
  32   * srchighlite    Source Highlight
  33   * tgz            Tarballs, including gzipped ones
  34   * tnef           MS-TNEF attachments
  35   * vcard          vCards
  36   * webcpp         Web C Plus Plus
  37   * zip            Zip files
  38   */
  39  $mime_drivers_map['horde']['registered'] = array(
  40      'css', 'enriched', 'html', 'images', 'ooo', 'pdf', 'php', 'plain', 'rar',
  41      'report', 'rfc822', 'richtext', 'security', 'simple', 'tgz', 'tnef',
  42      'vcard', 'zip',
  43      // The following mime drivers require external applications to be
  44      // installed.
  45      // 'deb', 'enscript', 'msword', 'msexcel', 'mspowerpoint', 'rpm',
  46      // 'srchighlite', 'webcpp'
  47  );
  48  
  49  
  50  /**
  51   * If you want to specifically override any MIME type to be handled by
  52   * a specific driver, then enter it here.  Normally, this is safe to
  53   * leave, but it's useful when multiple drivers handle the same MIME
  54   * type, and you want to specify exactly which one should handle it.
  55   */
  56  $mime_drivers_map['horde']['overrides'] = array();
  57  
  58  
  59  /**
  60   * Driver specific settings. Here, you have to configure each driver
  61   * which you chose to activate above. Default settings have been
  62   * filled in for them, and if you haven't activated it, then just
  63   * leave it as it is - it won't get loaded.
  64   *
  65   * The 'handles' setting below shouldn't be changed in most
  66   * circumstances. It registers a set of MIME type that the driver can
  67   * handle. The 'x-extension' MIME type is a special one to Horde that
  68   * maps a file extension to a MIME type. It's useful when you know
  69   * that all files ending in '.c' are C files, for example. You can set
  70   * the MIME subtype to '*' to match all possible subtypes
  71   * (i.e. 'image/*').
  72   *
  73   * The 'icons' entry is for the driver to register various icons for
  74   * the MIME types it handles. The array consists of a 'default' icon
  75   * for that driver, and can also include specific MIME-types which can
  76   * have their own icons. You can set the MIME subtype to '*' to match
  77   * all possible subtypes (i.e. 'image/*').
  78   */
  79  
  80  /**
  81   * Default driver settings
  82   */
  83  $mime_drivers['horde']['default']['icons'] = array(
  84      'default'                       => 'text.png',
  85      'audio/*'                       => 'audio.png',
  86      'message/*'                     => 'mail.png',
  87      'unknown/*'                     => 'binary.png',
  88      'video/*'                       => 'video.png',
  89      'application/pgp-signature'     => 'encryption.png',
  90      'application/x-pkcs7-signature' => 'encryption.png',
  91      'application/octet-stream'      => 'binary.png');
  92  
  93  
  94  /**
  95   * Default text driver settings
  96   */
  97  $mime_drivers['horde']['simple']['inline'] = true;
  98  $mime_drivers['horde']['simple']['handles'] = array(
  99      'text/*');
 100  $mime_drivers['horde']['simple']['icons'] = array(
 101      'default' => 'text.png');
 102  
 103  
 104  /**
 105   * Plain text driver settings
 106   */
 107  $mime_drivers['horde']['plain']['inline'] = true;
 108  $mime_drivers['horde']['plain']['handles'] = array(
 109      'text/plain');
 110  $mime_drivers['horde']['plain']['icons'] = array(
 111      'default' => 'text.png');
 112  
 113  
 114  /**
 115   * PHP driver settings
 116   */
 117  $mime_drivers['horde']['php']['inline'] = true;
 118  $mime_drivers['horde']['php']['handles'] = array(
 119      'application/x-php', 'x-extension/phps',
 120      'x-extension/php3s', 'application/x-httpd-php',
 121      'application/x-httpd-php3', 'application/x-httpd-phps');
 122  $mime_drivers['horde']['php']['icons'] = array(
 123      'default' => 'php.png');
 124  
 125  
 126  /**
 127   * CSS driver settings
 128   */
 129  $mime_drivers['horde']['css']['inline'] = true;
 130  $mime_drivers['horde']['css']['handles'] = array(
 131      'text/css', 'x-extension/css');
 132  $mime_drivers['horde']['css']['icons'] = array(
 133      'default' => 'html.png');
 134  
 135  
 136  /**
 137   * Enriched text driver settings
 138   */
 139  $mime_drivers['horde']['html']['inline'] = false;
 140  $mime_drivers['horde']['html']['handles'] = array(
 141      'text/html');
 142  $mime_drivers['horde']['html']['icons'] = array(
 143      'default' => 'html.png');
 144  
 145  
 146  /**
 147   * Enriched text driver settings
 148   */
 149  $mime_drivers['horde']['enriched']['inline'] = true;
 150  $mime_drivers['horde']['enriched']['handles'] = array(
 151      'text/enriched');
 152  $mime_drivers['horde']['enriched']['icons'] = array(
 153      'default' => 'text.png');
 154  
 155  
 156  /**
 157   * Richtext text driver settings
 158   */
 159  $mime_drivers['horde']['richtext']['inline'] = true;
 160  $mime_drivers['horde']['richtext']['handles'] = array(
 161      'text/richtext');
 162  $mime_drivers['horde']['richtext']['icons'] = array(
 163      'default' => 'text.png');
 164  
 165  
 166  /**
 167   * Web C Plus Plus driver settings
 168   * http://webcpp.sourceforge.net/
 169   */
 170  $mime_drivers['horde']['webcpp']['location'] = '/usr/bin/webcpp';
 171  $mime_drivers['horde']['webcpp']['inline'] = true;
 172  $mime_drivers['horde']['webcpp']['handles'] = array(
 173      'text/xml', 'text/sgml', 'application/xml',
 174      'application/x-sh', 'application/x-javascript', 'application/x-tcl',
 175      'x-extension/asm', 'application/x-asp', 'x-extension/bas',
 176      'x-extension/cs', 'text/x-csrc', 'x-extension/rc',
 177      'text/x-c++src', 'text/x-c++src', 'text/x-c++src',
 178      'text/x-chdr', 'x-extension/bat', 'text/x-fortran',
 179      'x-extension/f77', 'x-extension/f90', 'x-extension/for',
 180      'x-extension/ftn', 'text/x-java', 'application/x-javascript',
 181      'text/sgml', 'text/xml', 'text/x-pascal',
 182      'application/x-cgi', 'application/x-perl', 'application/x-python',
 183      'text/x-sql', 'text/x-tcl',
 184      'application/x-shellscript', 'x-extension/vhd', 'x-extension/vhdl');
 185  $mime_drivers['horde']['webcpp']['icons'] = array(
 186      'default'                  => 'text.png',
 187      'text/xml'                 => 'xml.png',
 188      'text/x-csrc'              => 'source-c.png',
 189      'text/x-chdr'              => 'source-h.png',
 190      'text/x-java'              => 'source-java.png',
 191      'application/x-javascript' => 'script-js.png');
 192  
 193  /**
 194   * Source-Highlight driver settings
 195   * http://www.gnu.org/software/src-highlite/
 196   */
 197  $mime_drivers['horde']['srchighlite']['location'] = '/usr/bin/source-highlight';
 198  $mime_drivers['horde']['srchighlite']['inline'] = true;
 199  $mime_drivers['horde']['srchighlite']['handles'] = array(
 200      'text/x-csrc', 'text/x-c++src', 'text/x-java',
 201      'application/x-perl', 'application/x-python', 'text/x-c++src',
 202      'text/cpp');
 203  $mime_drivers['horde']['srchighlite']['icons'] = array(
 204      'default'                  => 'text.png',
 205      'text/x-csrc'              => 'source-c.png',
 206      'text/x-c++src'            => 'source-c.png',
 207      'text/cpp'                 => 'source-c.png',
 208      'text/x-java'              => 'source-java.png');
 209  
 210  /**
 211   * GNU Enscript driver settings
 212   */
 213  $mime_drivers['horde']['enscript']['location'] = '/usr/bin/enscript';
 214  $mime_drivers['horde']['enscript']['inline'] = true;
 215  $mime_drivers['horde']['enscript']['handles'] = array(
 216      'application/x-cgi', 'application/x-shellscript', 'application/x-javascript',
 217      'application/x-perl', 'application/xml', 'text/xml',
 218      'text/diff', 'text/x-diff', 'text/x-patch', 'text/x-csrc',
 219      'x-extension/cs', 'text/x-java', 'text/x-chdr', 'text/x-c++src',
 220      'text/x-c++hdr', 'x-extension/vhd', 'x-extension/vhdl', 'text/x-sql',
 221      'x-extension/vb', 'x-extension/vba', 'text/x-emacs-lisp', 'text/x-tex');
 222  $mime_drivers['horde']['enscript']['icons'] = array(
 223      'default'                  => 'text.png',
 224      'text/xml'                 => 'xml.png',
 225      'application/xml'          => 'xml.png',
 226      'text/x-csrc'              => 'source-c.png',
 227      'text/x-chdr'              => 'source-h.png',
 228      'text/x-java'              => 'source-java.png',
 229      'application/x-javascript' => 'script-js.png');
 230  
 231  
 232  /**
 233   * Tar driver settings
 234   * To access gzipped files, the zlib library must have been built into PHP
 235   * (with the --with-zlib option).
 236   */
 237  $mime_drivers['horde']['tgz']['inline'] = true;
 238  $mime_drivers['horde']['tgz']['handles'] = array(
 239      'application/x-compressed-tar',
 240      'application/x-tar',
 241      'application/x-tgz',
 242      'application/x-gzip',
 243      'application/x-gtar',
 244      'application/gzip',
 245      'application/x-gzip-compressed');
 246  $mime_drivers['horde']['tgz']['icons'] = array(
 247      'default' => 'compressed.png');
 248  
 249  
 250  /**
 251   * Zip file driver settings
 252   */
 253  $mime_drivers['horde']['zip']['inline'] = true;
 254  $mime_drivers['horde']['zip']['handles'] = array(
 255      'application/zip',
 256      'application/x-compressed',
 257      'application/x-zip-compressed');
 258  $mime_drivers['horde']['zip']['icons'] = array(
 259      'default' => 'compressed.png');
 260  
 261  
 262  /**
 263   * RAR archive driver settings
 264   */
 265  $mime_drivers['horde']['rar']['inline'] = true;
 266  $mime_drivers['horde']['rar']['handles'] = array(
 267      'application/x-rar',
 268      'application/x-rar-compressed');
 269  $mime_drivers['horde']['rar']['icons'] = array(
 270      'default' => 'compressed.png');
 271  
 272  
 273  /**
 274   * MS Word driver settings
 275   * This driver requires wvWare to be installed.
 276   * wvWare homepage: http://wvware.sourceforge.net/
 277   *
 278   * The 'location' entry should point to the 'wvHtml' program, NOT the
 279   * 'wvWare' program.
 280   */
 281  $mime_drivers['horde']['msword']['location'] = '/usr/bin/wvHtml';
 282  $mime_drivers['horde']['msword']['inline'] = false;
 283  $mime_drivers['horde']['msword']['handles'] = array(
 284      'application/vnd.ms-word',
 285      'application/msword',
 286  );
 287  $mime_drivers['horde']['msword']['icons'] = array(
 288      'default' => 'msword.png',
 289  );
 290  
 291  
 292  /**
 293   * MS Excel driver settings
 294   * This driver requires xlhtml to be installed.
 295   * xlhtml homepage: http://chicago.sourceforge.net/xlhtml/
 296   */
 297  $mime_drivers['horde']['msexcel']['location'] = '/usr/local/bin/xlhtml';
 298  $mime_drivers['horde']['msexcel']['inline'] = false;
 299  $mime_drivers['horde']['msexcel']['handles'] = array(
 300      'application/vnd.ms-excel',
 301      'application/msexcel',
 302      'application/x-msexcel');
 303  $mime_drivers['horde']['msexcel']['icons'] = array(
 304      'default' => 'msexcel.png');
 305  
 306  
 307  /**
 308   * MS Powerpoint driver settings
 309   * This driver requires ppthtml, included with xlhtml, to be installed.
 310   * xlhtml homepage: http://chicago.sourceforge.net/xlhtml/
 311   */
 312  $mime_drivers['horde']['mspowerpoint']['location'] = '/usr/local/bin/ppthtml';
 313  $mime_drivers['horde']['mspowerpoint']['inline'] = false;
 314  $mime_drivers['horde']['mspowerpoint']['handles'] = array(
 315      'application/vnd.ms-powerpoint',
 316      'application/mspowerpoint');
 317  $mime_drivers['horde']['mspowerpoint']['icons'] = array(
 318      'default' => 'mspowerpoint.png');
 319  
 320  
 321  /**
 322   * vCard driver settings
 323   */
 324  $mime_drivers['horde']['vcard']['handles'] = array(
 325      'text/x-vcard',
 326      'text/x-vcalendar');
 327  $mime_drivers['horde']['vcard']['icons'] = array(
 328      'default' => 'vcard.png');
 329  
 330  
 331  /**
 332   * RPM driver settings
 333   */
 334  $mime_drivers['horde']['rpm']['location'] = '/usr/bin/rpm';
 335  $mime_drivers['horde']['rpm']['inline'] = false;
 336  $mime_drivers['horde']['rpm']['handles'] = array(
 337      'application/x-rpm');
 338  $mime_drivers['horde']['rpm']['icons'] = array(
 339      'default' => 'rpm.png');
 340  
 341  
 342  /**
 343   * Debian package driver settings
 344   */
 345  $mime_drivers['horde']['deb']['location'] = '/usr/bin/dpkg';
 346  $mime_drivers['horde']['deb']['inline'] = false;
 347  $mime_drivers['horde']['deb']['handles'] = array(
 348      'application/x-deb',
 349      'application/x-debian-package');
 350  $mime_drivers['horde']['deb']['icons'] = array(
 351      'default' => 'deb.png');
 352  
 353  
 354  /**
 355   * Secure multiparts (RFC 1847)
 356   */
 357  $mime_drivers['horde']['security']['inline'] = true;
 358  $mime_drivers['horde']['security']['handles'] = array(
 359      'multipart/encrypted', 'multipart/signed');
 360  $mime_drivers['horde']['security']['icons'] = array(
 361      'default' => 'encryption.png');
 362  
 363  
 364  /**
 365   * Image settings
 366   */
 367  $mime_drivers['horde']['images']['inline'] = false;
 368  $mime_drivers['horde']['images']['handles'] = array(
 369      'image/*');
 370  $mime_drivers['horde']['images']['icons'] = array(
 371      'default' => 'image.png');
 372  
 373  
 374  /**
 375   * MS-TNEF Attachment (application/ms-tnef) settings
 376   */
 377  $mime_drivers['horde']['tnef']['inline'] = false;
 378  $mime_drivers['horde']['tnef']['handles'] = array(
 379      'application/ms-tnef');
 380  $mime_drivers['horde']['tnef']['icons'] = array(
 381      'default' => 'text.png');
 382  
 383  
 384  /**
 385   * Digest message (RFC 2046 [5.2.1]) settings
 386   */
 387  $mime_drivers['horde']['rfc822']['inline'] = false;
 388  $mime_drivers['horde']['rfc822']['handles'] = array(
 389      'message/rfc822',
 390      'x-extension/eml');
 391  $mime_drivers['horde']['rfc822']['icons'] = array(
 392      'default' => 'mail.png');
 393  
 394  
 395  /**
 396   * Report messages (RFC 3452)
 397   */
 398  $mime_drivers['horde']['report']['inline'] = true;
 399  $mime_drivers['horde']['report']['handles'] = array(
 400      'multipart/report');
 401  $mime_drivers['horde']['report']['icons'] = array(
 402      'default' => 'mail.png');
 403  
 404  
 405  /**
 406   * OpenOffice.org/StarOffice settings
 407   */
 408  $mime_drivers['horde']['ooo']['inline'] = false;
 409  $mime_drivers['horde']['ooo']['handles'] = array(
 410      'application/vnd.sun.xml.calc',
 411      'application/vnd.sun.xml.calc.template',
 412      'application/vnd.sun.xml.draw',
 413      'application/vnd.sun.xml.draw.template',
 414      'application/vnd.sun.xml.impress',
 415      'application/vnd.sun.xml.impress.template',
 416      'application/vnd.sun.xml.math',
 417      'application/vnd.sun.xml.writer',
 418      'application/vnd.sun.xml.writer.global',
 419      'application/vnd.sun.xml.writer.template',
 420      'application/vnd.stardivision.calc',
 421      'application/vnd.stardivision.draw',
 422      'application/vnd.stardivision.impress',
 423      'application/vnd.stardivision.math',
 424      'application/vnd.stardivision.writer');
 425  $mime_drivers['horde']['ooo']['icons'] = array(
 426      'default' => 'ooo_calc.png',
 427      'application/vnd.sun.xml.calc'             => 'ooo_calc.png',
 428      'application/vnd.stardivision.calc'        => 'ooo_calc.png',
 429      'application/vnd.sun.xml.calc.template'    => 'ooo_calc.png',
 430      'application/vnd.sun.xml.draw'             => 'ooo_draw.png',
 431      'application/vnd.stardivision.draw'        => 'ooo_draw.png',
 432      'application/vnd.sun.xml.draw.template'    => 'ooo_draw.png',
 433      'application/vnd.sun.xml.impress'          => 'ooo_impress.png',
 434      'application/vnd.stardivision.impress'     => 'ooo_impress.png',
 435      'application/vnd.sun.xml.impress.template' => 'ooo_impress.png',
 436      'application/vnd.sun.xml.math'             => 'ooo_math.png',
 437      'application/vnd.stardivision.math'        => 'ooo_math.png',
 438      'application/vnd.sun.xml.writer'           => 'ooo_writer.png',
 439      'application/vnd.stardivision.writer'      => 'ooo_writer.png',
 440      'application/vnd.sun.xml.writer.global'    => 'ooo_writer.png',
 441      'application/vnd.sun.xml.writer.template'  => 'ooo_writer.png');
 442  
 443  
 444  /**
 445   * Portable Document Format (PDF) files
 446   * YOU SHOULD NOT NORMALLY ALTER THIS SETTING.
 447   */
 448  $mime_drivers['horde']['pdf']['inline'] = false;
 449  $mime_drivers['horde']['pdf']['handles'] = array(
 450      'application/pdf');
 451  $mime_drivers['horde']['pdf']['icons'] = array(
 452      'default' => 'pdf.png');


Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7