addMountPoint.php 376 B

1234567891011121314
  1. <?php
  2. OCP\JSON::checkAppEnabled('files_external');
  3. OCP\JSON::callCheck();
  4. if ($_POST['isPersonal'] == 'true') {
  5. OCP\JSON::checkLoggedIn();
  6. $isPersonal = true;
  7. } else {
  8. OCP\JSON::checkAdminUser();
  9. $isPersonal = false;
  10. }
  11. OC_Mount_Config::addMountPoint($_POST['mountPoint'], $_POST['class'], $_POST['classOptions'], $_POST['mountType'], $_POST['applicable'], $isPersonal);