addMountPoint.php 356 B

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