function fileSystemHandler($command) { //0 download //1 delete //2 unzip //3 rename if (isset($_GET["member_id"])) { global $ilTabs, $lng, $ilCtrl, $tpl; include_once "./Customizing/global/plugins/Services/Repository/RepositoryObject/Ephorus/classes/class.ilEphAssignment.php"; $tpl->setTitle(ilEphAssignment::lookupTitle($_GET["ass_id"])); $ilTabs->clearTargets(); $ilTabs->setBackTarget($lng->txt("back"), $ilCtrl->getLinkTarget($this, "showSubmissions")); include_once "./Customizing/global/plugins/Services/Repository/RepositoryObject/Ephorus/classes/class.ilFSStorageEphorus.php"; $storage = new ilFSStorageEphorus($this->object->getId(), $_GET["ass_id"]); include_once "./Services/FileSystem/classes/class.ilFileSystemGUI.php"; $fs = new ilFileSystemGUI($storage->getFeedbackPath($_GET["member_id"])); $fs->setAllowDirectoryCreation(false); $fs->executeCommand($command); } else { global $ilTabs; $this->setAssignmentHeader(); $ilTabs->activateTab("ass_files"); include_once "./Customizing/global/plugins/Services/Repository/RepositoryObject/Ephorus/classes/class.ilFSStorageEphorus.php"; $storage = new ilFSStorageEphorus($this->object->getId(), $_GET["ass_id"]); include_once "./Services/FileSystem/classes/class.ilFileSystemGUI.php"; $fs = new ilFileSystemGUI($storage->getPath()); $fs->setAllowDirectoryCreation(false); $fs->executeCommand($command); } }