changeset 807:0bb4b1973e08

Add file type list.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 24 Nov 2014 11:37:13 +0200
parents 59528ba5813a
children 887e88fad15a
files msite.inc.php
diffstat 1 files changed, 33 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/msite.inc.php	Mon Nov 24 11:36:50 2014 +0200
+++ b/msite.inc.php	Mon Nov 24 11:37:13 2014 +0200
@@ -124,6 +124,39 @@
 
 
 //
+// Data about the file types we use
+//
+$previewFileTypeList = array(
+  "PNG"  => array(
+    "type" => EPREV_IMAGE,
+    "mime" => "image/png",
+    "fext" => ".png",
+  ),
+  "JPEG" => array(
+    "type" => EPREV_IMAGE,
+    "mime" => "image/jpeg",
+    "fext" => ".jpg",
+  ),
+  "GIF"  => array(
+    "type" => EPREV_IMAGE,
+    "mime" => "image/gif",
+    "fext" => ".gif",
+  ),
+
+  "MP3" => array(
+    "type" => EPREV_AUDIO,
+    "mime" => "audio/mpeg",
+    "fext" => ".mp3",
+  ),
+  "OggVorbis" => array(
+    "type" => EPREV_AUDIO,
+    "mime" => "audio/ogg; codecs=vorbis",
+    "fext" => ".ogg",
+  ),
+);
+
+
+//
 // Party infromation system data/variables handling
 //
 function stReloadDisplayVars()