diff --git a/etemplate/templates/default/images/mime128.php b/etemplate/templates/default/images/mime128.php new file mode 100755 index 0000000000..b86719ae28 --- /dev/null +++ b/etemplate/templates/default/images/mime128.php @@ -0,0 +1,68 @@ +#!/usr/bin/php + + * @copyright (c) 2015 by Ralf Becker + * @version $Id$ + */ + +require_once '../../../../phpgwapi/inc/class.mime_magic.inc.php'; + +/* compare current Horde $mime_extension_map with ours +include_once 'Horde/Mime/mime.mapping.php'; + +foreach($mime_extension_map as $ext => $type) +{ + if (!isset(mime_magic::$mime_extension_map[$ext])) + { + echo "+\t$ext\t$type\n"; + } + elseif(strtolower($type) === strtolower(mime_magic::$mime_extension_map[$ext])) + { + echo "\t$ext\t$type\n"; + } + else + { + echo "-\t$ext\t".mime_magic::$mime_extension_map[$ext]."\n"; + echo "+\t$ext\t$type\n"; + } +} +exit; + */ + +// make sure these mime-type get their default extensions icon, not some alias +$overwrites = array( + 'txt' => 'text/plain', + 'ogg' => 'audio/ogg', + 'ppt' => 'application/vnd.ms-powerpoint', + 'qt' => 'video/quicktime', +); +$src_dir=__DIR__.'/MimeTypes-Link-Icons/images'; +$dst_dir=__DIR__; +foreach(scandir($src_dir) as $file) +{ + if (preg_match('/^([^-]+)-icon-128x128.png$/', $file, $matches)) + { + if (!isset(mime_magic::$mime_extension_map[$matches[1]])) + { + echo "Unknown extension '$matches[1]'!\n"; + continue; + } + $type = mime_magic::$mime_extension_map[$matches[1]]; + $dst_file = 'mime128_'.str_replace('/', '_', $type).'.png'; + if (file_exists($dst_dir.'/'.$dst_file) && !isset($overwrites[$matches[1]])) + { + echo "Icon for extension '$matches[1]' = $type already exists!\n"; + continue; + } + copy($src_dir.'/'.$file, $dst_dir.'/'.$dst_file); + echo "$file --> $dst_file\n"; + } + //else echo "Ignoring $file\n"; +} \ No newline at end of file diff --git a/etemplate/templates/default/images/mime128_application_epub+zip.png b/etemplate/templates/default/images/mime128_application_epub+zip.png new file mode 100644 index 0000000000..8f8aca1b0e Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_epub+zip.png differ diff --git a/etemplate/templates/default/images/mime128_application_msword.png b/etemplate/templates/default/images/mime128_application_msword.png new file mode 100644 index 0000000000..6e9823c1c5 Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_msword.png differ diff --git a/etemplate/templates/default/images/mime128_application_pdf.png b/etemplate/templates/default/images/mime128_application_pdf.png new file mode 100644 index 0000000000..cead6584e2 Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_pdf.png differ diff --git a/etemplate/templates/default/images/mime128_application_postscript.png b/etemplate/templates/default/images/mime128_application_postscript.png new file mode 100644 index 0000000000..dd3362c4e9 Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_postscript.png differ diff --git a/etemplate/templates/default/images/mime128_application_rtf.png b/etemplate/templates/default/images/mime128_application_rtf.png new file mode 100644 index 0000000000..c78d98e3d8 Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_rtf.png differ diff --git a/etemplate/templates/default/images/mime128_application_vnd.adobe.air-application-installer-package+zip.png b/etemplate/templates/default/images/mime128_application_vnd.adobe.air-application-installer-package+zip.png new file mode 100644 index 0000000000..4b39f43029 Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_vnd.adobe.air-application-installer-package+zip.png differ diff --git a/etemplate/templates/default/images/mime128_application_vnd.koan.png b/etemplate/templates/default/images/mime128_application_vnd.koan.png new file mode 100644 index 0000000000..c63ee158c6 Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_vnd.koan.png differ diff --git a/etemplate/templates/default/images/mime128_application_vnd.ms-excel.png b/etemplate/templates/default/images/mime128_application_vnd.ms-excel.png new file mode 100644 index 0000000000..fbf1fd131c Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_vnd.ms-excel.png differ diff --git a/etemplate/templates/default/images/mime128_application_vnd.ms-powerpoint.png b/etemplate/templates/default/images/mime128_application_vnd.ms-powerpoint.png new file mode 100644 index 0000000000..d404f4168d Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_vnd.ms-powerpoint.png differ diff --git a/etemplate/templates/default/images/mime128_application_vnd.oasis.opendocument.presentation.png b/etemplate/templates/default/images/mime128_application_vnd.oasis.opendocument.presentation.png new file mode 100644 index 0000000000..37ec00ad4b Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_vnd.oasis.opendocument.presentation.png differ diff --git a/etemplate/templates/default/images/mime128_application_vnd.oasis.opendocument.spreadsheet.png b/etemplate/templates/default/images/mime128_application_vnd.oasis.opendocument.spreadsheet.png new file mode 100644 index 0000000000..9d76a9bb85 Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_vnd.oasis.opendocument.spreadsheet.png differ diff --git a/etemplate/templates/default/images/mime128_application_vnd.oasis.opendocument.text.png b/etemplate/templates/default/images/mime128_application_vnd.oasis.opendocument.text.png new file mode 100644 index 0000000000..afa52f36a8 Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_vnd.oasis.opendocument.text.png differ diff --git a/etemplate/templates/default/images/mime128_application_vnd.openxmlformats-officedocument.presentationml.presentation.png b/etemplate/templates/default/images/mime128_application_vnd.openxmlformats-officedocument.presentationml.presentation.png new file mode 100644 index 0000000000..dd53e2ed12 Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_vnd.openxmlformats-officedocument.presentationml.presentation.png differ diff --git a/etemplate/templates/default/images/mime128_application_vnd.openxmlformats-officedocument.presentationml.slideshow.png b/etemplate/templates/default/images/mime128_application_vnd.openxmlformats-officedocument.presentationml.slideshow.png new file mode 100644 index 0000000000..02dc6603a0 Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_vnd.openxmlformats-officedocument.presentationml.slideshow.png differ diff --git a/etemplate/templates/default/images/mime128_application_vnd.openxmlformats-officedocument.spreadsheetml.sheet.png b/etemplate/templates/default/images/mime128_application_vnd.openxmlformats-officedocument.spreadsheetml.sheet.png new file mode 100644 index 0000000000..abb1805ac8 Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_vnd.openxmlformats-officedocument.spreadsheetml.sheet.png differ diff --git a/etemplate/templates/default/images/mime128_application_vnd.openxmlformats-officedocument.wordprocessingml.document.png b/etemplate/templates/default/images/mime128_application_vnd.openxmlformats-officedocument.wordprocessingml.document.png new file mode 100644 index 0000000000..2626e7561d Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_vnd.openxmlformats-officedocument.wordprocessingml.document.png differ diff --git a/etemplate/templates/default/images/mime128_application_vnd.rn-realmedia.png b/etemplate/templates/default/images/mime128_application_vnd.rn-realmedia.png new file mode 100644 index 0000000000..7a9b5cfa98 Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_vnd.rn-realmedia.png differ diff --git a/etemplate/templates/default/images/mime128_application_x-apple-diskimage.png b/etemplate/templates/default/images/mime128_application_x-apple-diskimage.png new file mode 100644 index 0000000000..823db4516a Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_x-apple-diskimage.png differ diff --git a/etemplate/templates/default/images/mime128_application_x-debian-package.png b/etemplate/templates/default/images/mime128_application_x-debian-package.png new file mode 100644 index 0000000000..462d8d562b Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_x-debian-package.png differ diff --git a/etemplate/templates/default/images/mime128_application_x-font-ttf.png b/etemplate/templates/default/images/mime128_application_x-font-ttf.png new file mode 100644 index 0000000000..c6183a9425 Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_x-font-ttf.png differ diff --git a/etemplate/templates/default/images/mime128_application_x-gtar.png b/etemplate/templates/default/images/mime128_application_x-gtar.png new file mode 100644 index 0000000000..9c04420476 Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_x-gtar.png differ diff --git a/etemplate/templates/default/images/mime128_application_x-gzip.png b/etemplate/templates/default/images/mime128_application_x-gzip.png new file mode 100644 index 0000000000..d4a012b7e1 Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_x-gzip.png differ diff --git a/etemplate/templates/default/images/mime128_application_x-iso9660-image.png b/etemplate/templates/default/images/mime128_application_x-iso9660-image.png new file mode 100644 index 0000000000..b6757f0647 Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_x-iso9660-image.png differ diff --git a/etemplate/templates/default/images/mime128_application_x-msdownload.png b/etemplate/templates/default/images/mime128_application_x-msdownload.png new file mode 100644 index 0000000000..8ae5662c8b Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_x-msdownload.png differ diff --git a/etemplate/templates/default/images/mime128_application_x-mspublisher.png b/etemplate/templates/default/images/mime128_application_x-mspublisher.png new file mode 100644 index 0000000000..71a92c1c92 Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_x-mspublisher.png differ diff --git a/etemplate/templates/default/images/mime128_application_x-rar-compressed.png b/etemplate/templates/default/images/mime128_application_x-rar-compressed.png new file mode 100644 index 0000000000..6f1e7869af Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_x-rar-compressed.png differ diff --git a/etemplate/templates/default/images/mime128_application_x-rpm.png b/etemplate/templates/default/images/mime128_application_x-rpm.png new file mode 100644 index 0000000000..14786cf0e3 Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_x-rpm.png differ diff --git a/etemplate/templates/default/images/mime128_application_x-sql.png b/etemplate/templates/default/images/mime128_application_x-sql.png new file mode 100644 index 0000000000..8876efb206 Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_x-sql.png differ diff --git a/etemplate/templates/default/images/mime128_application_x-tar.png b/etemplate/templates/default/images/mime128_application_x-tar.png new file mode 100644 index 0000000000..0189cb5140 Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_x-tar.png differ diff --git a/etemplate/templates/default/images/mime128_application_x-tex.png b/etemplate/templates/default/images/mime128_application_x-tex.png new file mode 100644 index 0000000000..38a964f817 Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_x-tex.png differ diff --git a/etemplate/templates/default/images/mime128_application_x-xpinstall.png b/etemplate/templates/default/images/mime128_application_x-xpinstall.png new file mode 100644 index 0000000000..ecbdc5b92c Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_x-xpinstall.png differ diff --git a/etemplate/templates/default/images/mime128_application_xml.png b/etemplate/templates/default/images/mime128_application_xml.png new file mode 100644 index 0000000000..21b89b5937 Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_xml.png differ diff --git a/etemplate/templates/default/images/mime128_application_zip.png b/etemplate/templates/default/images/mime128_application_zip.png new file mode 100644 index 0000000000..f4c0c9ed7e Binary files /dev/null and b/etemplate/templates/default/images/mime128_application_zip.png differ diff --git a/etemplate/templates/default/images/mime128_audio_midi.png b/etemplate/templates/default/images/mime128_audio_midi.png new file mode 100644 index 0000000000..7e047f2a6d Binary files /dev/null and b/etemplate/templates/default/images/mime128_audio_midi.png differ diff --git a/etemplate/templates/default/images/mime128_audio_mp4.png b/etemplate/templates/default/images/mime128_audio_mp4.png new file mode 100644 index 0000000000..d85288f7dc Binary files /dev/null and b/etemplate/templates/default/images/mime128_audio_mp4.png differ diff --git a/etemplate/templates/default/images/mime128_audio_mpeg.png b/etemplate/templates/default/images/mime128_audio_mpeg.png new file mode 100644 index 0000000000..0d032062fd Binary files /dev/null and b/etemplate/templates/default/images/mime128_audio_mpeg.png differ diff --git a/etemplate/templates/default/images/mime128_audio_ogg.png b/etemplate/templates/default/images/mime128_audio_ogg.png new file mode 100644 index 0000000000..908883b8f5 Binary files /dev/null and b/etemplate/templates/default/images/mime128_audio_ogg.png differ diff --git a/etemplate/templates/default/images/mime128_audio_x-flac.png b/etemplate/templates/default/images/mime128_audio_x-flac.png new file mode 100644 index 0000000000..de46bce3c9 Binary files /dev/null and b/etemplate/templates/default/images/mime128_audio_x-flac.png differ diff --git a/etemplate/templates/default/images/mime128_audio_x-pn-realaudio.png b/etemplate/templates/default/images/mime128_audio_x-pn-realaudio.png new file mode 100644 index 0000000000..6002530168 Binary files /dev/null and b/etemplate/templates/default/images/mime128_audio_x-pn-realaudio.png differ diff --git a/etemplate/templates/default/images/mime128_audio_x-wav.png b/etemplate/templates/default/images/mime128_audio_x-wav.png new file mode 100644 index 0000000000..6ebda6326c Binary files /dev/null and b/etemplate/templates/default/images/mime128_audio_x-wav.png differ diff --git a/etemplate/templates/default/images/mime128_image_gif.png b/etemplate/templates/default/images/mime128_image_gif.png new file mode 100644 index 0000000000..7cac21f4b1 Binary files /dev/null and b/etemplate/templates/default/images/mime128_image_gif.png differ diff --git a/etemplate/templates/default/images/mime128_image_jpeg.png b/etemplate/templates/default/images/mime128_image_jpeg.png new file mode 100644 index 0000000000..b6803c9b7f Binary files /dev/null and b/etemplate/templates/default/images/mime128_image_jpeg.png differ diff --git a/etemplate/templates/default/images/mime128_image_png.png b/etemplate/templates/default/images/mime128_image_png.png new file mode 100644 index 0000000000..928e940ffa Binary files /dev/null and b/etemplate/templates/default/images/mime128_image_png.png differ diff --git a/etemplate/templates/default/images/mime128_image_tiff.png b/etemplate/templates/default/images/mime128_image_tiff.png new file mode 100644 index 0000000000..8a6c3c5021 Binary files /dev/null and b/etemplate/templates/default/images/mime128_image_tiff.png differ diff --git a/etemplate/templates/default/images/mime128_image_vnd.adobe.photoshop.png b/etemplate/templates/default/images/mime128_image_vnd.adobe.photoshop.png new file mode 100644 index 0000000000..dae1d797c8 Binary files /dev/null and b/etemplate/templates/default/images/mime128_image_vnd.adobe.photoshop.png differ diff --git a/etemplate/templates/default/images/mime128_image_vnd.djvu.png b/etemplate/templates/default/images/mime128_image_vnd.djvu.png new file mode 100644 index 0000000000..425d9123a0 Binary files /dev/null and b/etemplate/templates/default/images/mime128_image_vnd.djvu.png differ diff --git a/etemplate/templates/default/images/mime128_image_vnd.dwg.png b/etemplate/templates/default/images/mime128_image_vnd.dwg.png new file mode 100644 index 0000000000..798d041caf Binary files /dev/null and b/etemplate/templates/default/images/mime128_image_vnd.dwg.png differ diff --git a/etemplate/templates/default/images/mime128_image_x-icon.png b/etemplate/templates/default/images/mime128_image_x-icon.png new file mode 100644 index 0000000000..6a0a9364be Binary files /dev/null and b/etemplate/templates/default/images/mime128_image_x-icon.png differ diff --git a/etemplate/templates/default/images/mime128_model_vnd.dwf.png b/etemplate/templates/default/images/mime128_model_vnd.dwf.png new file mode 100644 index 0000000000..fd6dcdc664 Binary files /dev/null and b/etemplate/templates/default/images/mime128_model_vnd.dwf.png differ diff --git a/etemplate/templates/default/images/mime128_text_csv.png b/etemplate/templates/default/images/mime128_text_csv.png new file mode 100644 index 0000000000..f8307e8cc6 Binary files /dev/null and b/etemplate/templates/default/images/mime128_text_csv.png differ diff --git a/etemplate/templates/default/images/mime128_text_plain.png b/etemplate/templates/default/images/mime128_text_plain.png new file mode 100644 index 0000000000..d55270a9db Binary files /dev/null and b/etemplate/templates/default/images/mime128_text_plain.png differ diff --git a/etemplate/templates/default/images/mime128_text_x-bibtex.png b/etemplate/templates/default/images/mime128_text_x-bibtex.png new file mode 100644 index 0000000000..c1128fe55a Binary files /dev/null and b/etemplate/templates/default/images/mime128_text_x-bibtex.png differ diff --git a/etemplate/templates/default/images/mime128_text_x-fortran.png b/etemplate/templates/default/images/mime128_text_x-fortran.png new file mode 100644 index 0000000000..08f8e9dedb Binary files /dev/null and b/etemplate/templates/default/images/mime128_text_x-fortran.png differ diff --git a/etemplate/templates/default/images/mime128_text_x-python.png b/etemplate/templates/default/images/mime128_text_x-python.png new file mode 100644 index 0000000000..b93fabf32e Binary files /dev/null and b/etemplate/templates/default/images/mime128_text_x-python.png differ diff --git a/etemplate/templates/default/images/mime128_text_x-tex.png b/etemplate/templates/default/images/mime128_text_x-tex.png new file mode 100644 index 0000000000..078cb1b3c5 Binary files /dev/null and b/etemplate/templates/default/images/mime128_text_x-tex.png differ diff --git a/etemplate/templates/default/images/mime128_video_3gpp.png b/etemplate/templates/default/images/mime128_video_3gpp.png new file mode 100644 index 0000000000..5ff97dae81 Binary files /dev/null and b/etemplate/templates/default/images/mime128_video_3gpp.png differ diff --git a/etemplate/templates/default/images/mime128_video_3gpp2.png b/etemplate/templates/default/images/mime128_video_3gpp2.png new file mode 100644 index 0000000000..ebdccc1aa8 Binary files /dev/null and b/etemplate/templates/default/images/mime128_video_3gpp2.png differ diff --git a/etemplate/templates/default/images/mime128_video_mp4.png b/etemplate/templates/default/images/mime128_video_mp4.png new file mode 100644 index 0000000000..ac634b1296 Binary files /dev/null and b/etemplate/templates/default/images/mime128_video_mp4.png differ diff --git a/etemplate/templates/default/images/mime128_video_mpeg.png b/etemplate/templates/default/images/mime128_video_mpeg.png new file mode 100644 index 0000000000..a86bfe55ae Binary files /dev/null and b/etemplate/templates/default/images/mime128_video_mpeg.png differ diff --git a/etemplate/templates/default/images/mime128_video_ogg.png b/etemplate/templates/default/images/mime128_video_ogg.png new file mode 100644 index 0000000000..816fd49888 Binary files /dev/null and b/etemplate/templates/default/images/mime128_video_ogg.png differ diff --git a/etemplate/templates/default/images/mime128_video_quicktime.png b/etemplate/templates/default/images/mime128_video_quicktime.png new file mode 100644 index 0000000000..9f227f938d Binary files /dev/null and b/etemplate/templates/default/images/mime128_video_quicktime.png differ diff --git a/etemplate/templates/default/images/mime128_video_vnd.rn-realvideo.png b/etemplate/templates/default/images/mime128_video_vnd.rn-realvideo.png new file mode 100644 index 0000000000..341a1076ad Binary files /dev/null and b/etemplate/templates/default/images/mime128_video_vnd.rn-realvideo.png differ diff --git a/etemplate/templates/default/images/mime128_video_x-flv.png b/etemplate/templates/default/images/mime128_video_x-flv.png new file mode 100644 index 0000000000..86c494dc20 Binary files /dev/null and b/etemplate/templates/default/images/mime128_video_x-flv.png differ diff --git a/etemplate/templates/default/images/mime128_video_x-m4v.png b/etemplate/templates/default/images/mime128_video_x-m4v.png new file mode 100644 index 0000000000..2feea9192f Binary files /dev/null and b/etemplate/templates/default/images/mime128_video_x-m4v.png differ diff --git a/etemplate/templates/default/images/mime128_video_x-matroska.png b/etemplate/templates/default/images/mime128_video_x-matroska.png new file mode 100644 index 0000000000..dddf376b01 Binary files /dev/null and b/etemplate/templates/default/images/mime128_video_x-matroska.png differ diff --git a/etemplate/templates/default/images/mime128_video_x-ms-asf.png b/etemplate/templates/default/images/mime128_video_x-ms-asf.png new file mode 100644 index 0000000000..28aed8caf7 Binary files /dev/null and b/etemplate/templates/default/images/mime128_video_x-ms-asf.png differ diff --git a/etemplate/templates/default/images/mime128_video_x-ms-vob.png b/etemplate/templates/default/images/mime128_video_x-ms-vob.png new file mode 100644 index 0000000000..16b04d4f67 Binary files /dev/null and b/etemplate/templates/default/images/mime128_video_x-ms-vob.png differ diff --git a/etemplate/templates/default/images/mime128_video_x-ms-wmv.png b/etemplate/templates/default/images/mime128_video_x-ms-wmv.png new file mode 100644 index 0000000000..f3c205bc58 Binary files /dev/null and b/etemplate/templates/default/images/mime128_video_x-ms-wmv.png differ diff --git a/etemplate/templates/default/images/mime128_video_x-msvideo.png b/etemplate/templates/default/images/mime128_video_x-msvideo.png new file mode 100644 index 0000000000..091f4d617b Binary files /dev/null and b/etemplate/templates/default/images/mime128_video_x-msvideo.png differ