getGhostsWithOrder((int)bx_get_logged_profile_id(), $sFormat, $sImagesTranscoder, $iContentId); $aRv = isset($oData['g']) ? [$oData['g'], $oData['o']] : []; return $aRv; break; case 'delete': header('Content-type: text/html; charset=utf-8'); $iFileId = bx_process_input(bx_get('id'), BX_DATA_INT); return $oUploader->deleteGhost($iFileId, bx_get_logged_profile_id()); break; case 'upload': return $oUploader->handleUploads(bx_get_logged_profile_id(), isset($_FILES['f']) ? $_FILES['f'] : null, $isMultiple, $iContentId, $isPrivate); break; case 'upload_inline': $sStorageObject = bx_process_input(bx_get('o')); $sFile = bx_process_input(bx_get('f')); $oStorage = BxDolStorage::getObjectInstance($sStorageObject); $iProfileId = bx_get_logged_profile_id(); if (!($iId = $oStorage->storeFileFromForm($_FILES['file'], false, $iProfileId))) { return array('error' => '1'); exit; } $oStorage->afterUploadCleanup($iId, $iProfileId); $aFileInfo = $oStorage->getFile($iId); if ($aFileInfo && in_array($aFileInfo['ext'], array('jpg', 'jpeg', 'jpe', 'png'))) { $oTranscoder = BxDolTranscoderImage::getObjectInstance(bx_get('t')); $sUrl = $oTranscoder->getFileUrl($iId); } else { $sUrl = $oStorage->getFileUrlById($iId); } return ['link' => $sUrl]; break; } } } /** @} */