mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-31 06:04:54 +01:00
swiftmailer
This commit is contained in:
8
htdocs/includes/swiftmailer/lib/swiftmailer_generate_mimes_config.php
Normal file → Executable file
8
htdocs/includes/swiftmailer/lib/swiftmailer_generate_mimes_config.php
Normal file → Executable file
@@ -1,8 +1,8 @@
|
||||
#!/usr/bin/php
|
||||
|
||||
<?php
|
||||
define('APACHE_MIME_TYPES_URL', 'http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types');
|
||||
define('FREEDESKTOP_XML_URL', 'https://raw2.github.com/minad/mimemagic/master/script/freedesktop.org.xml');
|
||||
define('APACHE_MIME_TYPES_URL', 'https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types');
|
||||
define('FREEDESKTOP_XML_URL', 'https://raw.github.com/minad/mimemagic/master/script/freedesktop.org.xml');
|
||||
|
||||
function generateUpToDateMimeArray()
|
||||
{
|
||||
@@ -12,7 +12,7 @@ function generateUpToDateMimeArray()
|
||||
$preamble .= " * (c) 2004-2009 Chris Corbyn\n *\n";
|
||||
$preamble .= " * For the full copyright and license information, please view the LICENSE\n";
|
||||
$preamble .= " * file that was distributed with this source code.\n *\n";
|
||||
$preamble .= " * autogenerated using http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types\n";
|
||||
$preamble .= " * autogenerated using https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types\n";
|
||||
$preamble .= " * and https://raw.github.com/minad/mimemagic/master/script/freedesktop.org.xml\n";
|
||||
$preamble .= " */\n\n";
|
||||
$preamble .= "/*\n";
|
||||
@@ -92,7 +92,7 @@ function generateUpToDateMimeArray()
|
||||
'wav' => 'audio/wav',
|
||||
'wma' => 'audio/x-ms-wma',
|
||||
'wmv' => 'audio/x-ms-wmv',
|
||||
'xls' => 'application/excel',
|
||||
'xls' => 'application/vnd.ms-excel',
|
||||
'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
||||
'xml' => 'application/xml',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user