setMultiple((bool)$bM); $sAction = bx_process_input(bx_get('a')); switch ($sAction) { case 'show_uploader_form': header('Content-type: text/html; charset=utf-8'); require_once(BX_DIRECTORY_PATH_INC . "design.inc.php"); bx_import('BxDolLanguages'); echo $oUploader->getUploaderForm($isMultiple, $iContentId, $isPrivate); break; case 'restore_ghosts': header('Content-Type: application/json; charset=utf-8'); $sImagesTranscoder = bx_process_input(bx_get('img_trans')); echo $oUploader->getGhostsWithOrder((int)bx_get_logged_profile_id(), $sFormat, $sImagesTranscoder, $iContentId, $isLatest); break; case 'reorder_ghosts': header('Content-Type: application/json; charset=utf-8'); $aGhosts = bx_process_input(bx_get('ghosts')); echo $oUploader->reorderGhosts((int)bx_get_logged_profile_id(), $sFormat, $aGhosts, $iContentId); break; case 'delete': header('Content-type: text/html; charset=utf-8'); $iFileId = bx_process_input(bx_get('id'), BX_DATA_INT); echo $oUploader->deleteGhost($iFileId, bx_get_logged_profile_id()); break; case 'upload': header('Content-type: text/html; charset=utf-8'); bx_import('BxDolLanguages'); $oUploader->handleUploads(bx_get_logged_profile_id(), isset($_FILES['f']) ? $_FILES['f'] : null, $isMultiple, $iContentId, $isPrivate); break; } /** @} */