*** empty log message ***
This commit is contained in:
parent
eba4efb89a
commit
9d3ff15b65
16 changed files with 63 additions and 48 deletions
|
@ -145,6 +145,12 @@ class uiHandler extends uiBase {
|
|||
*/
|
||||
function uploadFile(&$formdata, &$mask, $replace=NULL)
|
||||
{
|
||||
if ($this->test4audioType($formdata['mediafile']['name']) === FALSE) {
|
||||
if (UI_ERROR) $this->_retMsg('$1 is unsupportet file type.', $formdata['mediafile']['name']);
|
||||
$this->redirUrl = UI_BROWSER."?act=editFile&folderId=".$formdata['folderId'];
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
$id = $formdata['id'];
|
||||
$folderId = $formdata['folderId'];
|
||||
|
||||
|
@ -179,6 +185,14 @@ class uiHandler extends uiBase {
|
|||
}
|
||||
|
||||
|
||||
function test4audioType($filename)
|
||||
{
|
||||
if (array_key_exists(strrchr($filename, "."), $this->config['audiofiles']))
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
function transMData($id)
|
||||
{
|
||||
include dirname(__FILE__).'/formmask/metadata.inc.php';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue