defined('C5_EXECUTE') or die("Access Denied."); use Concrete\Core\File\StorageLocation\StorageLocation; $u = new User(); /** @var Concrete\Core\File\Service\Application $ch */ $ch = Loader::helper('concrete/file'); $h = Loader::helper('concrete/ui'); $form = Loader::helper('form'); $ag = \Concrete\Core\Http\ResponseAssetGroup::get(); $ag->requireAsset('dropzone'); $fp = FilePermissions::getGlobal(); if (!$fp->canAddFiles()) { die(t("Unable to add files.")); } $folder = null; if (isset($_REQUEST['currentFolder'])) { $node = Concrete\Core\Tree\Node\Node::getByID($_REQUEST['currentFolder']); if ($node instanceof \Concrete\Core\Tree\Node\Type\FileFolder) { $folder = $node; } } $types = $fp->getAllowedFileExtensions(); $ocID = 0; if (Loader::helper('validation/numbers')->integer($_REQUEST['ocID'])) { $ocID = $_REQUEST['ocID']; } $types = $ch->serializeUploadFileExtensions($types); $valt = Loader::helper('validation/token'); ?> <div class="ccm-ui" id="ccm-file-manager-import-files"> <?php echo Core::make('helper/concrete/ui')->tabs([['local', t('Your Computer'), true], ['incoming', t('Incoming Directory')], ['remote', t('Remote Files')]]);
public static function getByID($treeNodeID) { return Concrete\Core\Tree\Node\Node::getByID($treeNodeID); }