diff -r de56132c008d -r bdac73ed481e includes/constants.php --- a/includes/constants.php Sun Mar 28 21:49:26 2010 -0400 +++ b/includes/constants.php Sun Mar 28 23:10:46 2010 -0400 @@ -276,45 +276,45 @@ // Our list of tables included in Enano $system_table_list = Array( - 'categories', - 'comments', - 'config', - 'logs', - 'page_text', - 'session_keys', - 'pages', - 'users', - 'users_extra', - 'themes', - 'buddies', - 'banlist', - 'files', - 'privmsgs', - 'sidebar', - 'hits', - 'groups', - 'group_members', - 'acl', - 'page_groups', - 'page_group_members', - 'tags', - 'language', - 'language_strings', - 'lockout', - 'search_index', - 'captcha', - 'diffiehellman', - 'plugins', - 'ranks' - ); + 'categories', + 'comments', + 'config', + 'logs', + 'page_text', + 'session_keys', + 'pages', + 'users', + 'users_extra', + 'themes', + 'buddies', + 'banlist', + 'files', + 'privmsgs', + 'sidebar', + 'hits', + 'groups', + 'group_members', + 'acl', + 'page_groups', + 'page_group_members', + 'tags', + 'language', + 'language_strings', + 'lockout', + 'search_index', + 'captcha', + 'diffiehellman', + 'plugins', + 'ranks' + ); if ( defined('table_prefix') && !defined('ENANO_TABLELIST_PREFIXED') ) { - define('ENANO_TABLELIST_PREFIXED', 1); - foreach ( $system_table_list as $i => $_ ) - { - $system_table_list[$i] = table_prefix . $system_table_list[$i]; - } + define('ENANO_TABLELIST_PREFIXED', 1); + foreach ( $system_table_list as $i => $_ ) + { + $system_table_list[$i] = table_prefix . $system_table_list[$i]; + } } /* @@ -328,335 +328,335 @@ // IMPORTANT: this array can NEVER have items removed from it or key indexes changed $mime_types = Array ( - 'ai' => 'application/postscript', - 'aif' => 'audio/x-aiff', - 'aifc' => 'audio/x-aiff', - 'aiff' => 'audio/x-aiff', - 'au' => 'audio/basic', - 'avi' => 'video/x-msvideo', - 'bcpio' => 'application/x-bcpio', - 'bin' => 'application/octet-stream', - 'bmp' => 'image/bmp', - 'bz2' => 'application/x-bzip', - 'cdf' => 'application/x-netcdf', - 'cgm' => 'image/cgm', - 'class' => 'application/octet-stream', - 'cpio' => 'application/x-cpio', - 'cpt' => 'application/mac-compactpro', - 'csh' => 'application/x-csh', - 'css' => 'text/css', - 'dcr' => 'application/x-director', - 'dir' => 'application/x-director', - 'djv' => 'image/vnd.djvu', - 'djvu' => 'image/vnd.djvu', - 'dll' => 'application/octet-stream', - 'dms' => 'application/octet-stream', - 'doc' => 'application/msword', - 'dtd' => 'application/xml-dtd', - 'dvi' => 'application/x-dvi', - 'dxr' => 'application/x-director', - 'eps' => 'application/postscript', - 'etx' => 'text/x-setext', - 'exe' => 'application/octet-stream', - 'ez' => 'application/andrew-inset', - 'gif' => 'image/gif', - 'gram' => 'application/srgs', - 'grxml' => 'application/srgs+xml', - 'gtar' => 'application/x-gtar', - 'gz' => 'application/x-gzip', - 'hdf' => 'application/x-hdf', - 'hqx' => 'application/mac-binhex40', - 'htm' => 'text/html', - 'html' => 'text/html', - 'ice' => 'x-conference/x-cooltalk', - 'ico' => 'image/x-icon', - 'ics' => 'text/calendar', - 'ief' => 'image/ief', - 'ifb' => 'text/calendar', - 'iges' => 'model/iges', - 'igs' => 'model/iges', - 'jar' => 'application/zip', - 'jpe' => 'image/jpeg', - 'jpeg' => 'image/jpeg', - 'jpg' => 'image/jpeg', - 'js' => 'application/x-javascript', - 'kar' => 'audio/midi', - 'latex' => 'application/x-latex', - 'lha' => 'application/octet-stream', - 'lzh' => 'application/octet-stream', - 'm3u' => 'audio/x-mpegurl', - 'man' => 'application/x-troff-man', - 'mathml' => 'application/mathml+xml', - 'me' => 'application/x-troff-me', - 'mesh' => 'model/mesh', - 'mid' => 'audio/midi', - 'midi' => 'audio/midi', - 'mif' => 'application/vnd.mif', - 'mov' => 'video/quicktime', - 'movie' => 'video/x-sgi-movie', - 'mp2' => 'audio/mpeg', - 'mp3' => 'audio/mpeg', - 'mpe' => 'video/mpeg', - 'mpeg' => 'video/mpeg', - 'mpg' => 'video/mpeg', - 'mpga' => 'audio/mpeg', - 'ms' => 'application/x-troff-ms', - 'msh' => 'model/mesh', - 'mxu' => 'video/vnd.mpegurl', - 'nc' => 'application/x-netcdf', - 'oda' => 'application/oda', - 'ogg' => 'application/ogg', - 'ogm' => 'application/ogg', - 'pbm' => 'image/x-portable-bitmap', - 'pdb' => 'chemical/x-pdb', - 'pdf' => 'application/pdf', - 'pgm' => 'image/x-portable-graymap', - 'pgn' => 'application/x-chess-pgn', - 'png' => 'image/png', - 'pnm' => 'image/x-portable-anymap', - 'ppm' => 'image/x-portable-pixmap', - 'ppt' => 'application/vnd.ms-powerpoint', - 'ps' => 'application/postscript', - 'psd' => 'image/x-photoshop', - 'qt' => 'video/quicktime', - 'ra' => 'audio/x-realaudio', - 'ram' => 'audio/x-pn-realaudio', - 'ras' => 'image/x-cmu-raster', - 'rdf' => 'text/xml', - 'rgb' => 'image/x-rgb', - 'rm' => 'audio/x-pn-realaudio', - 'roff' => 'application/x-troff', - 'rpm' => 'audio/x-pn-realaudio-plugin', - 'rss' => 'text/xml', - 'rtf' => 'text/rtf', - 'rtx' => 'text/richtext', - 'sgm' => 'text/sgml', - 'sgml' => 'text/sgml', - 'sh' => 'application/x-sh', - 'shar' => 'application/x-shar', - 'silo' => 'model/mesh', - 'sit' => 'application/x-stuffit', - 'skd' => 'application/x-koan', - 'skm' => 'application/x-koan', - 'skp' => 'application/x-koan', - 'skt' => 'application/x-koan', - 'smi' => 'application/smil', - 'smil' => 'application/smil', - 'snd' => 'audio/basic', - 'so' => 'application/octet-stream', - 'spl' => 'application/x-futuresplash', - 'src' => 'application/x-wais-source', - 'stc' => 'application/zip', - 'std' => 'application/zip', - 'sti' => 'application/zip', - 'stm' => 'application/zip', - 'stw' => 'application/zip', - 'sv4cpio' => 'application/x-sv4cpio', - 'sv4crc' => 'application/x-sv4crc', - 'svg' => 'image/svg+xml', - 'swf' => 'application/x-shockwave-flash', - 'sxc' => 'application/zip', - 'sxd' => 'application/zip', - 'sxi' => 'application/zip', - 'sxm' => 'application/zip', - 'sxw' => 'application/zip', - 't' => 'application/x-troff', - 'tar' => 'application/x-tar', - 'tcl' => 'application/x-tcl', - 'tex' => 'application/x-tex', - 'texi' => 'application/x-texinfo', - 'texinfo' => 'application/x-texinfo', - 'tif' => 'image/tiff', - 'tiff' => 'image/tiff', - 'tr' => 'application/x-troff', - 'tsv' => 'text/tab-separated-values', - 'txt' => 'text/plain', - 'ustar' => 'application/x-ustar', - 'vcd' => 'application/x-cdlink', - 'vrml' => 'model/vrml', - 'vxml' => 'application/voicexml+xml', - 'wav' => 'audio/x-wav', - 'wbmp' => 'image/vnd.wap.wbmp', - 'wbxml' => 'application/vnd.wap.wbxml', - 'wml' => 'text/vnd.wap.wml', - 'wmlc' => 'application/vnd.wap.wmlc', - 'wmls' => 'text/vnd.wap.wmlscript', - 'wmlsc' => 'application/vnd.wap.wmlscriptc', - 'wrl' => 'model/vrml', - 'xbm' => 'image/x-xbitmap', - 'xcf' => 'image/xcf', - 'xht' => 'application/xhtml+xml', - 'xhtml' => 'application/xhtml+xml', - 'xls' => 'application/vnd.ms-excel', - 'xml' => 'text/xml', - 'xpi' => 'application/zip', - 'xpm' => 'image/x-xpixmap', - 'xsl' => 'text/xml', - 'xslt' => 'text/xml', - 'xwd' => 'image/x-xwindowdump', - 'xyz' => 'chemical/x-xyz', - 'zip' => 'application/zip', - 'odt' => 'application/vnd.oasis.opendocument.text', - 'ott' => 'application/vnd.oasis.opendocument.text-template', - 'odg' => 'application/vnd.oasis.opendocument.graphics', - 'otg' => 'application/vnd.oasis.opendocument.graphics-template', - 'odp' => 'application/vnd.oasis.opendocument.presentation', - 'otp' => 'application/vnd.oasis.opendocument.presentation-template', - 'ods' => 'application/vnd.oasis.opendocument.spreadsheet', - 'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template', - 'odc' => 'application/vnd.oasis.opendocument.chart', - 'otc' => 'application/vnd.oasis.opendocument.chart-template', - 'odi' => 'application/vnd.oasis.opendocument.image', - 'oti' => 'application/vnd.oasis.opendocument.image-template', - 'odf' => 'application/vnd.oasis.opendocument.formula', - 'otf' => 'application/vnd.oasis.opendocument.formula-template', - 'odm' => 'application/vnd.oasis.opendocument.text-master', - 'oth' => 'application/vnd.oasis.opendocument.text-web' + 'ai' => 'application/postscript', + 'aif' => 'audio/x-aiff', + 'aifc' => 'audio/x-aiff', + 'aiff' => 'audio/x-aiff', + 'au' => 'audio/basic', + 'avi' => 'video/x-msvideo', + 'bcpio' => 'application/x-bcpio', + 'bin' => 'application/octet-stream', + 'bmp' => 'image/bmp', + 'bz2' => 'application/x-bzip', + 'cdf' => 'application/x-netcdf', + 'cgm' => 'image/cgm', + 'class' => 'application/octet-stream', + 'cpio' => 'application/x-cpio', + 'cpt' => 'application/mac-compactpro', + 'csh' => 'application/x-csh', + 'css' => 'text/css', + 'dcr' => 'application/x-director', + 'dir' => 'application/x-director', + 'djv' => 'image/vnd.djvu', + 'djvu' => 'image/vnd.djvu', + 'dll' => 'application/octet-stream', + 'dms' => 'application/octet-stream', + 'doc' => 'application/msword', + 'dtd' => 'application/xml-dtd', + 'dvi' => 'application/x-dvi', + 'dxr' => 'application/x-director', + 'eps' => 'application/postscript', + 'etx' => 'text/x-setext', + 'exe' => 'application/octet-stream', + 'ez' => 'application/andrew-inset', + 'gif' => 'image/gif', + 'gram' => 'application/srgs', + 'grxml' => 'application/srgs+xml', + 'gtar' => 'application/x-gtar', + 'gz' => 'application/x-gzip', + 'hdf' => 'application/x-hdf', + 'hqx' => 'application/mac-binhex40', + 'htm' => 'text/html', + 'html' => 'text/html', + 'ice' => 'x-conference/x-cooltalk', + 'ico' => 'image/x-icon', + 'ics' => 'text/calendar', + 'ief' => 'image/ief', + 'ifb' => 'text/calendar', + 'iges' => 'model/iges', + 'igs' => 'model/iges', + 'jar' => 'application/zip', + 'jpe' => 'image/jpeg', + 'jpeg' => 'image/jpeg', + 'jpg' => 'image/jpeg', + 'js' => 'application/x-javascript', + 'kar' => 'audio/midi', + 'latex' => 'application/x-latex', + 'lha' => 'application/octet-stream', + 'lzh' => 'application/octet-stream', + 'm3u' => 'audio/x-mpegurl', + 'man' => 'application/x-troff-man', + 'mathml' => 'application/mathml+xml', + 'me' => 'application/x-troff-me', + 'mesh' => 'model/mesh', + 'mid' => 'audio/midi', + 'midi' => 'audio/midi', + 'mif' => 'application/vnd.mif', + 'mov' => 'video/quicktime', + 'movie' => 'video/x-sgi-movie', + 'mp2' => 'audio/mpeg', + 'mp3' => 'audio/mpeg', + 'mpe' => 'video/mpeg', + 'mpeg' => 'video/mpeg', + 'mpg' => 'video/mpeg', + 'mpga' => 'audio/mpeg', + 'ms' => 'application/x-troff-ms', + 'msh' => 'model/mesh', + 'mxu' => 'video/vnd.mpegurl', + 'nc' => 'application/x-netcdf', + 'oda' => 'application/oda', + 'ogg' => 'application/ogg', + 'ogm' => 'application/ogg', + 'pbm' => 'image/x-portable-bitmap', + 'pdb' => 'chemical/x-pdb', + 'pdf' => 'application/pdf', + 'pgm' => 'image/x-portable-graymap', + 'pgn' => 'application/x-chess-pgn', + 'png' => 'image/png', + 'pnm' => 'image/x-portable-anymap', + 'ppm' => 'image/x-portable-pixmap', + 'ppt' => 'application/vnd.ms-powerpoint', + 'ps' => 'application/postscript', + 'psd' => 'image/x-photoshop', + 'qt' => 'video/quicktime', + 'ra' => 'audio/x-realaudio', + 'ram' => 'audio/x-pn-realaudio', + 'ras' => 'image/x-cmu-raster', + 'rdf' => 'text/xml', + 'rgb' => 'image/x-rgb', + 'rm' => 'audio/x-pn-realaudio', + 'roff' => 'application/x-troff', + 'rpm' => 'audio/x-pn-realaudio-plugin', + 'rss' => 'text/xml', + 'rtf' => 'text/rtf', + 'rtx' => 'text/richtext', + 'sgm' => 'text/sgml', + 'sgml' => 'text/sgml', + 'sh' => 'application/x-sh', + 'shar' => 'application/x-shar', + 'silo' => 'model/mesh', + 'sit' => 'application/x-stuffit', + 'skd' => 'application/x-koan', + 'skm' => 'application/x-koan', + 'skp' => 'application/x-koan', + 'skt' => 'application/x-koan', + 'smi' => 'application/smil', + 'smil' => 'application/smil', + 'snd' => 'audio/basic', + 'so' => 'application/octet-stream', + 'spl' => 'application/x-futuresplash', + 'src' => 'application/x-wais-source', + 'stc' => 'application/zip', + 'std' => 'application/zip', + 'sti' => 'application/zip', + 'stm' => 'application/zip', + 'stw' => 'application/zip', + 'sv4cpio' => 'application/x-sv4cpio', + 'sv4crc' => 'application/x-sv4crc', + 'svg' => 'image/svg+xml', + 'swf' => 'application/x-shockwave-flash', + 'sxc' => 'application/zip', + 'sxd' => 'application/zip', + 'sxi' => 'application/zip', + 'sxm' => 'application/zip', + 'sxw' => 'application/zip', + 't' => 'application/x-troff', + 'tar' => 'application/x-tar', + 'tcl' => 'application/x-tcl', + 'tex' => 'application/x-tex', + 'texi' => 'application/x-texinfo', + 'texinfo' => 'application/x-texinfo', + 'tif' => 'image/tiff', + 'tiff' => 'image/tiff', + 'tr' => 'application/x-troff', + 'tsv' => 'text/tab-separated-values', + 'txt' => 'text/plain', + 'ustar' => 'application/x-ustar', + 'vcd' => 'application/x-cdlink', + 'vrml' => 'model/vrml', + 'vxml' => 'application/voicexml+xml', + 'wav' => 'audio/x-wav', + 'wbmp' => 'image/vnd.wap.wbmp', + 'wbxml' => 'application/vnd.wap.wbxml', + 'wml' => 'text/vnd.wap.wml', + 'wmlc' => 'application/vnd.wap.wmlc', + 'wmls' => 'text/vnd.wap.wmlscript', + 'wmlsc' => 'application/vnd.wap.wmlscriptc', + 'wrl' => 'model/vrml', + 'xbm' => 'image/x-xbitmap', + 'xcf' => 'image/xcf', + 'xht' => 'application/xhtml+xml', + 'xhtml' => 'application/xhtml+xml', + 'xls' => 'application/vnd.ms-excel', + 'xml' => 'text/xml', + 'xpi' => 'application/zip', + 'xpm' => 'image/x-xpixmap', + 'xsl' => 'text/xml', + 'xslt' => 'text/xml', + 'xwd' => 'image/x-xwindowdump', + 'xyz' => 'chemical/x-xyz', + 'zip' => 'application/zip', + 'odt' => 'application/vnd.oasis.opendocument.text', + 'ott' => 'application/vnd.oasis.opendocument.text-template', + 'odg' => 'application/vnd.oasis.opendocument.graphics', + 'otg' => 'application/vnd.oasis.opendocument.graphics-template', + 'odp' => 'application/vnd.oasis.opendocument.presentation', + 'otp' => 'application/vnd.oasis.opendocument.presentation-template', + 'ods' => 'application/vnd.oasis.opendocument.spreadsheet', + 'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template', + 'odc' => 'application/vnd.oasis.opendocument.chart', + 'otc' => 'application/vnd.oasis.opendocument.chart-template', + 'odi' => 'application/vnd.oasis.opendocument.image', + 'oti' => 'application/vnd.oasis.opendocument.image-template', + 'odf' => 'application/vnd.oasis.opendocument.formula', + 'otf' => 'application/vnd.oasis.opendocument.formula-template', + 'odm' => 'application/vnd.oasis.opendocument.text-master', + 'oth' => 'application/vnd.oasis.opendocument.text-web' ); $mimetype_extlist = Array( - 'application/andrew-inset'=>'ez', - 'application/mac-binhex40'=>'hqx', - 'application/mac-compactpro'=>'cpt', - 'application/mathml+xml'=>'mathml', - 'application/msword'=>'doc', - 'application/octet-stream'=>'bin dms lha lzh exe class so dll', - 'application/oda'=>'oda', - 'application/ogg'=>'ogg ogm', - 'application/pdf'=>'pdf', - 'application/postscript'=>'ai eps ps', - 'application/rdf+xml'=>'rdf', - 'application/smil'=>'smi smil', - 'application/srgs'=>'gram', - 'application/srgs+xml'=>'grxml', - 'application/vnd.mif'=>'mif', - 'application/vnd.ms-excel'=>'xls', - 'application/vnd.ms-powerpoint'=>'ppt', - 'application/vnd.wap.wbxml'=>'wbxml', - 'application/vnd.wap.wmlc'=>'wmlc', - 'application/vnd.wap.wmlscriptc'=>'wmlsc', - 'application/voicexml+xml'=>'vxml', - 'application/x-bcpio'=>'bcpio', - 'application/x-bzip'=>'gz bz2', - 'application/x-cdlink'=>'vcd', - 'application/x-chess-pgn'=>'pgn', - 'application/x-cpio'=>'cpio', - 'application/x-csh'=>'csh', - 'application/x-director'=>'dcr dir dxr', - 'application/x-dvi'=>'dvi', - 'application/x-futuresplash'=>'spl', - 'application/x-gtar'=>'gtar tar', - 'application/x-gzip'=>'gz', - 'application/x-hdf'=>'hdf', - 'application/x-jar'=>'jar', - 'application/x-javascript'=>'js', - 'application/x-koan'=>'skp skd skt skm', - 'application/x-latex'=>'latex', - 'application/x-netcdf'=>'nc cdf', - 'application/x-sh'=>'sh', - 'application/x-shar'=>'shar', - 'application/x-shockwave-flash'=>'swf', - 'application/x-stuffit'=>'sit', - 'application/x-sv4cpio'=>'sv4cpio', - 'application/x-sv4crc'=>'sv4crc', - 'application/x-tar'=>'tar', - 'application/x-tcl'=>'tcl', - 'application/x-tex'=>'tex', - 'application/x-texinfo'=>'texinfo texi', - 'application/x-troff'=>'t tr roff', - 'application/x-troff-man'=>'man', - 'application/x-troff-me'=>'me', - 'application/x-troff-ms'=>'ms', - 'application/x-ustar'=>'ustar', - 'application/x-wais-source'=>'src', - 'application/x-xpinstall'=>'xpi', - 'application/xhtml+xml'=>'xhtml xht', - 'application/xslt+xml'=>'xslt', - 'application/xml'=>'xml xsl', - 'application/xml-dtd'=>'dtd', - 'application/zip'=>'zip jar xpi sxc stc sxd std sxi sti sxm stm sxw stw ', - 'audio/basic'=>'au snd', - 'audio/midi'=>'mid midi kar', - 'audio/mpeg'=>'mpga mp2 mp3', - 'audio/ogg'=>'ogg ', - 'audio/x-aiff'=>'aif aiff aifc', - 'audio/x-mpegurl'=>'m3u', - 'audio/x-ogg'=>'ogg ', - 'audio/x-pn-realaudio'=>'ram rm', - 'audio/x-pn-realaudio-plugin'=>'rpm', - 'audio/x-realaudio'=>'ra', - 'audio/x-wav'=>'wav', - 'chemical/x-pdb'=>'pdb', - 'chemical/x-xyz'=>'xyz', - 'image/bmp'=>'bmp', - 'image/cgm'=>'cgm', - 'image/gif'=>'gif', - 'image/ief'=>'ief', - 'image/jpeg'=>'jpeg jpg jpe', - 'image/png'=>'png', - 'image/svg+xml'=>'svg', - 'image/tiff'=>'tiff tif', - 'image/vnd.djvu'=>'djvu djv', - 'image/vnd.wap.wbmp'=>'wbmp', - 'image/x-cmu-raster'=>'ras', - 'image/x-icon'=>'ico', - 'image/x-portable-anymap'=>'pnm', - 'image/x-portable-bitmap'=>'pbm', - 'image/x-portable-graymap'=>'pgm', - 'image/x-portable-pixmap'=>'ppm', - 'image/x-rgb'=>'rgb', - 'image/x-photoshop'=>'psd', - 'image/x-xbitmap'=>'xbm', - 'image/x-xpixmap'=>'xpm', - 'image/x-xwindowdump'=>'xwd', - 'model/iges'=>'igs iges', - 'model/mesh'=>'msh mesh silo', - 'model/vrml'=>'wrl vrml', - 'text/calendar'=>'ics ifb', - 'text/css'=>'css', - 'text/html'=>'html htm', - 'text/plain'=>'txt', - 'text/richtext'=>'rtx', - 'text/rtf'=>'rtf', - 'text/sgml'=>'sgml sgm', - 'text/tab-separated-values'=>'tsv', - 'text/vnd.wap.wml'=>'wml', - 'text/vnd.wap.wmlscript'=>'wmls', - 'text/xml'=>'xml xsl xslt rss rdf', - 'text/x-setext'=>'etx', - 'video/mpeg'=>'mpeg mpg mpe', - 'video/ogg'=>'ogm ogg', - 'video/quicktime'=>'qt mov', - 'video/vnd.mpegurl'=>'mxu', - 'video/x-msvideo'=>'avi', - 'video/x-ogg'=>'ogm ogg', - 'video/x-sgi-movie'=>'movie', - 'x-conference/x-cooltalk'=>'ice', - // Added for Enano - 'image/xcf' => 'xcf xcfbz2 xcf.bz2', - 'application/vnd.oasis.opendocument.text' => 'odt', - 'application/vnd.oasis.opendocument.text-template' => 'ott', - 'application/vnd.oasis.opendocument.graphics' => 'odg', - 'application/vnd.oasis.opendocument.graphics-template' => 'otg', - 'application/vnd.oasis.opendocument.presentation' => 'odp', - 'application/vnd.oasis.opendocument.presentation-template' => 'otp', - 'application/vnd.oasis.opendocument.spreadsheet' => 'ods', - 'application/vnd.oasis.opendocument.spreadsheet-template' => 'ots', - 'application/vnd.oasis.opendocument.chart' => 'odc', - 'application/vnd.oasis.opendocument.chart-template' => 'otc', - 'application/vnd.oasis.opendocument.image' => 'odi', - 'application/vnd.oasis.opendocument.image-template' => 'oti', - 'application/vnd.oasis.opendocument.formula' => 'odf', - 'application/vnd.oasis.opendocument.formula-template' => 'otf', - 'application/vnd.oasis.opendocument.text-master' => 'odm', - 'application/vnd.oasis.opendocument.text-web' => 'oth' + 'application/andrew-inset'=>'ez', + 'application/mac-binhex40'=>'hqx', + 'application/mac-compactpro'=>'cpt', + 'application/mathml+xml'=>'mathml', + 'application/msword'=>'doc', + 'application/octet-stream'=>'bin dms lha lzh exe class so dll', + 'application/oda'=>'oda', + 'application/ogg'=>'ogg ogm', + 'application/pdf'=>'pdf', + 'application/postscript'=>'ai eps ps', + 'application/rdf+xml'=>'rdf', + 'application/smil'=>'smi smil', + 'application/srgs'=>'gram', + 'application/srgs+xml'=>'grxml', + 'application/vnd.mif'=>'mif', + 'application/vnd.ms-excel'=>'xls', + 'application/vnd.ms-powerpoint'=>'ppt', + 'application/vnd.wap.wbxml'=>'wbxml', + 'application/vnd.wap.wmlc'=>'wmlc', + 'application/vnd.wap.wmlscriptc'=>'wmlsc', + 'application/voicexml+xml'=>'vxml', + 'application/x-bcpio'=>'bcpio', + 'application/x-bzip'=>'gz bz2', + 'application/x-cdlink'=>'vcd', + 'application/x-chess-pgn'=>'pgn', + 'application/x-cpio'=>'cpio', + 'application/x-csh'=>'csh', + 'application/x-director'=>'dcr dir dxr', + 'application/x-dvi'=>'dvi', + 'application/x-futuresplash'=>'spl', + 'application/x-gtar'=>'gtar tar', + 'application/x-gzip'=>'gz', + 'application/x-hdf'=>'hdf', + 'application/x-jar'=>'jar', + 'application/x-javascript'=>'js', + 'application/x-koan'=>'skp skd skt skm', + 'application/x-latex'=>'latex', + 'application/x-netcdf'=>'nc cdf', + 'application/x-sh'=>'sh', + 'application/x-shar'=>'shar', + 'application/x-shockwave-flash'=>'swf', + 'application/x-stuffit'=>'sit', + 'application/x-sv4cpio'=>'sv4cpio', + 'application/x-sv4crc'=>'sv4crc', + 'application/x-tar'=>'tar', + 'application/x-tcl'=>'tcl', + 'application/x-tex'=>'tex', + 'application/x-texinfo'=>'texinfo texi', + 'application/x-troff'=>'t tr roff', + 'application/x-troff-man'=>'man', + 'application/x-troff-me'=>'me', + 'application/x-troff-ms'=>'ms', + 'application/x-ustar'=>'ustar', + 'application/x-wais-source'=>'src', + 'application/x-xpinstall'=>'xpi', + 'application/xhtml+xml'=>'xhtml xht', + 'application/xslt+xml'=>'xslt', + 'application/xml'=>'xml xsl', + 'application/xml-dtd'=>'dtd', + 'application/zip'=>'zip jar xpi sxc stc sxd std sxi sti sxm stm sxw stw ', + 'audio/basic'=>'au snd', + 'audio/midi'=>'mid midi kar', + 'audio/mpeg'=>'mpga mp2 mp3', + 'audio/ogg'=>'ogg ', + 'audio/x-aiff'=>'aif aiff aifc', + 'audio/x-mpegurl'=>'m3u', + 'audio/x-ogg'=>'ogg ', + 'audio/x-pn-realaudio'=>'ram rm', + 'audio/x-pn-realaudio-plugin'=>'rpm', + 'audio/x-realaudio'=>'ra', + 'audio/x-wav'=>'wav', + 'chemical/x-pdb'=>'pdb', + 'chemical/x-xyz'=>'xyz', + 'image/bmp'=>'bmp', + 'image/cgm'=>'cgm', + 'image/gif'=>'gif', + 'image/ief'=>'ief', + 'image/jpeg'=>'jpeg jpg jpe', + 'image/png'=>'png', + 'image/svg+xml'=>'svg', + 'image/tiff'=>'tiff tif', + 'image/vnd.djvu'=>'djvu djv', + 'image/vnd.wap.wbmp'=>'wbmp', + 'image/x-cmu-raster'=>'ras', + 'image/x-icon'=>'ico', + 'image/x-portable-anymap'=>'pnm', + 'image/x-portable-bitmap'=>'pbm', + 'image/x-portable-graymap'=>'pgm', + 'image/x-portable-pixmap'=>'ppm', + 'image/x-rgb'=>'rgb', + 'image/x-photoshop'=>'psd', + 'image/x-xbitmap'=>'xbm', + 'image/x-xpixmap'=>'xpm', + 'image/x-xwindowdump'=>'xwd', + 'model/iges'=>'igs iges', + 'model/mesh'=>'msh mesh silo', + 'model/vrml'=>'wrl vrml', + 'text/calendar'=>'ics ifb', + 'text/css'=>'css', + 'text/html'=>'html htm', + 'text/plain'=>'txt', + 'text/richtext'=>'rtx', + 'text/rtf'=>'rtf', + 'text/sgml'=>'sgml sgm', + 'text/tab-separated-values'=>'tsv', + 'text/vnd.wap.wml'=>'wml', + 'text/vnd.wap.wmlscript'=>'wmls', + 'text/xml'=>'xml xsl xslt rss rdf', + 'text/x-setext'=>'etx', + 'video/mpeg'=>'mpeg mpg mpe', + 'video/ogg'=>'ogm ogg', + 'video/quicktime'=>'qt mov', + 'video/vnd.mpegurl'=>'mxu', + 'video/x-msvideo'=>'avi', + 'video/x-ogg'=>'ogm ogg', + 'video/x-sgi-movie'=>'movie', + 'x-conference/x-cooltalk'=>'ice', + // Added for Enano + 'image/xcf' => 'xcf xcfbz2 xcf.bz2', + 'application/vnd.oasis.opendocument.text' => 'odt', + 'application/vnd.oasis.opendocument.text-template' => 'ott', + 'application/vnd.oasis.opendocument.graphics' => 'odg', + 'application/vnd.oasis.opendocument.graphics-template' => 'otg', + 'application/vnd.oasis.opendocument.presentation' => 'odp', + 'application/vnd.oasis.opendocument.presentation-template' => 'otp', + 'application/vnd.oasis.opendocument.spreadsheet' => 'ods', + 'application/vnd.oasis.opendocument.spreadsheet-template' => 'ots', + 'application/vnd.oasis.opendocument.chart' => 'odc', + 'application/vnd.oasis.opendocument.chart-template' => 'otc', + 'application/vnd.oasis.opendocument.image' => 'odi', + 'application/vnd.oasis.opendocument.image-template' => 'oti', + 'application/vnd.oasis.opendocument.formula' => 'odf', + 'application/vnd.oasis.opendocument.formula-template' => 'otf', + 'application/vnd.oasis.opendocument.text-master' => 'odm', + 'application/vnd.oasis.opendocument.text-web' => 'oth' ); $k = array_keys($mime_types); $mimetype_exps = Array(); foreach($k as $s => $x) { - $mimetype_exps[$x] = pow(2, $s); + $mimetype_exps[$x] = pow(2, $s); } unset($k, $s, $x); @@ -669,38 +669,38 @@ ******************************************************************************/ $GLOBALS[ "JPEG_Segment_Names" ] = array( - 0xC0 => "SOF0", 0xC1 => "SOF1", 0xC2 => "SOF2", 0xC3 => "SOF4", - 0xC5 => "SOF5", 0xC6 => "SOF6", 0xC7 => "SOF7", 0xC8 => "JPG", - 0xC9 => "SOF9", 0xCA => "SOF10", 0xCB => "SOF11", 0xCD => "SOF13", - 0xCE => "SOF14", 0xCF => "SOF15", - 0xC4 => "DHT", 0xCC => "DAC", - - 0xD0 => "RST0", 0xD1 => "RST1", 0xD2 => "RST2", 0xD3 => "RST3", - 0xD4 => "RST4", 0xD5 => "RST5", 0xD6 => "RST6", 0xD7 => "RST7", - - 0xD8 => "SOI", 0xD9 => "EOI", 0xDA => "SOS", 0xDB => "DQT", - 0xDC => "DNL", 0xDD => "DRI", 0xDE => "DHP", 0xDF => "EXP", - - 0xE0 => "APP0", 0xE1 => "APP1", 0xE2 => "APP2", 0xE3 => "APP3", - 0xE4 => "APP4", 0xE5 => "APP5", 0xE6 => "APP6", 0xE7 => "APP7", - 0xE8 => "APP8", 0xE9 => "APP9", 0xEA => "APP10", 0xEB => "APP11", - 0xEC => "APP12", 0xED => "APP13", 0xEE => "APP14", 0xEF => "APP15", - - - 0xF0 => "JPG0", 0xF1 => "JPG1", 0xF2 => "JPG2", 0xF3 => "JPG3", - 0xF4 => "JPG4", 0xF5 => "JPG5", 0xF6 => "JPG6", 0xF7 => "JPG7", - 0xF8 => "JPG8", 0xF9 => "JPG9", 0xFA => "JPG10", 0xFB => "JPG11", - 0xFC => "JPG12", 0xFD => "JPG13", - - 0xFE => "COM", 0x01 => "TEM", 0x02 => "RES", + 0xC0 => "SOF0", 0xC1 => "SOF1", 0xC2 => "SOF2", 0xC3 => "SOF4", + 0xC5 => "SOF5", 0xC6 => "SOF6", 0xC7 => "SOF7", 0xC8 => "JPG", + 0xC9 => "SOF9", 0xCA => "SOF10", 0xCB => "SOF11", 0xCD => "SOF13", + 0xCE => "SOF14", 0xCF => "SOF15", + 0xC4 => "DHT", 0xCC => "DAC", + + 0xD0 => "RST0", 0xD1 => "RST1", 0xD2 => "RST2", 0xD3 => "RST3", + 0xD4 => "RST4", 0xD5 => "RST5", 0xD6 => "RST6", 0xD7 => "RST7", + + 0xD8 => "SOI", 0xD9 => "EOI", 0xDA => "SOS", 0xDB => "DQT", + 0xDC => "DNL", 0xDD => "DRI", 0xDE => "DHP", 0xDF => "EXP", + + 0xE0 => "APP0", 0xE1 => "APP1", 0xE2 => "APP2", 0xE3 => "APP3", + 0xE4 => "APP4", 0xE5 => "APP5", 0xE6 => "APP6", 0xE7 => "APP7", + 0xE8 => "APP8", 0xE9 => "APP9", 0xEA => "APP10", 0xEB => "APP11", + 0xEC => "APP12", 0xED => "APP13", 0xEE => "APP14", 0xEF => "APP15", + + + 0xF0 => "JPG0", 0xF1 => "JPG1", 0xF2 => "JPG2", 0xF3 => "JPG3", + 0xF4 => "JPG4", 0xF5 => "JPG5", 0xF6 => "JPG6", 0xF7 => "JPG7", + 0xF8 => "JPG8", 0xF9 => "JPG9", 0xFA => "JPG10", 0xFB => "JPG11", + 0xFC => "JPG12", 0xFD => "JPG13", + + 0xFE => "COM", 0x01 => "TEM", 0x02 => "RES", ); // DST profiles global $dst_profiles; $dst_profiles = array( - 'off' => '0;0;0;0;60', - 'usa' => '3;' . SECOND_SUNDAY . ';11;' . FIRST_SUNDAY . ';60', - 'europe' => '3;' . LAST_SUNDAY . ';10;' . LAST_SUNDAY . ';60', - 'australia' => '10;' . LAST_SUNDAY . ';3;' . LAST_SUNDAY . ';60', - 'tasmania' => '10;' . FIRST_SUNDAY . ';3;' . LAST_SUNDAY . ';60' - ); + 'off' => '0;0;0;0;60', + 'usa' => '3;' . SECOND_SUNDAY . ';11;' . FIRST_SUNDAY . ';60', + 'europe' => '3;' . LAST_SUNDAY . ';10;' . LAST_SUNDAY . ';60', + 'australia' => '10;' . LAST_SUNDAY . ';3;' . LAST_SUNDAY . ';60', + 'tasmania' => '10;' . FIRST_SUNDAY . ';3;' . LAST_SUNDAY . ';60' + );