Commit cd2d5c267014b7154db7257e1c226843a7484b1f
1 parent
33d3d131
Fixed KTS-1270
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5798 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
33 additions
and
1 deletions
lib/mime.inc.php
| @@ -119,7 +119,6 @@ class KTMime { | @@ -119,7 +119,6 @@ class KTMime { | ||
| 119 | } | 119 | } |
| 120 | } | 120 | } |
| 121 | 121 | ||
| 122 | - | ||
| 123 | return _kt('Unknown Type'); | 122 | return _kt('Unknown Type'); |
| 124 | } | 123 | } |
| 125 | 124 | ||
| @@ -175,6 +174,13 @@ class KTMime { | @@ -175,6 +174,13 @@ class KTMime { | ||
| 175 | } | 174 | } |
| 176 | } | 175 | } |
| 177 | 176 | ||
| 177 | + function getAllMimeTypes($sAdditional = '') { | ||
| 178 | + $sTable = KTUtil::getTableName('mimetypes'); | ||
| 179 | + $aQuery = array("SELECT id, mimetypes FROM " . $sTable . ' ' .$sAdditional, array()); | ||
| 180 | + $res = DBUtil::getResultArray($aQuery); | ||
| 181 | + return $res; | ||
| 182 | + } | ||
| 183 | + | ||
| 178 | /** | 184 | /** |
| 179 | * Strip all but the extension from a file. For instance, input of | 185 | * Strip all but the extension from a file. For instance, input of |
| 180 | * 'foo.tif' would return 'tif'. | 186 | * 'foo.tif' would return 'tif'. |
plugins/ktstandard/ImmutableActionPlugin.php
| 1 | <?php | 1 | <?php |
| 2 | 2 | ||
| 3 | +/** | ||
| 4 | + * $Id: KTBulkExportPlugin.php 5758 2006-07-27 10:17:43Z bshuttle $ | ||
| 5 | + * | ||
| 6 | + * The contents of this file are subject to the KnowledgeTree Public | ||
| 7 | + * License Version 1.1 ("License"); You may not use this file except in | ||
| 8 | + * compliance with the License. You may obtain a copy of the License at | ||
| 9 | + * http://www.ktdms.com/KPL | ||
| 10 | + * | ||
| 11 | + * Software distributed under the License is distributed on an "AS IS" | ||
| 12 | + * basis, | ||
| 13 | + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | ||
| 14 | + * for the specific language governing rights and limitations under the | ||
| 15 | + * License. | ||
| 16 | + * | ||
| 17 | + * The Original Code is: KnowledgeTree Open Source | ||
| 18 | + * | ||
| 19 | + * The Initial Developer of the Original Code is The Jam Warehouse Software | ||
| 20 | + * (Pty) Ltd, trading as KnowledgeTree. | ||
| 21 | + * Portions created by The Jam Warehouse Software (Pty) Ltd are Copyright | ||
| 22 | + * (C) 2006 The Jam Warehouse Software (Pty) Ltd; | ||
| 23 | + * All Rights Reserved. | ||
| 24 | + * | ||
| 25 | + */ | ||
| 26 | + | ||
| 27 | +require_once(KT_LIB_DIR . '/plugins/plugin.inc.php'); | ||
| 28 | + | ||
| 3 | class KTImmutableActionPlugin extends KTPlugin { | 29 | class KTImmutableActionPlugin extends KTPlugin { |
| 4 | var $sNamespace = "ktstandard.immutableaction.plugin"; | 30 | var $sNamespace = "ktstandard.immutableaction.plugin"; |
| 5 | 31 |