2012-06-08 15:42:00 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
OCP\JSON::checkAppEnabled('files_external');
|
2012-07-07 14:12:21 +00:00
|
|
|
OCP\JSON::callCheck();
|
|
|
|
|
2012-06-08 15:42:00 +00:00
|
|
|
if ($_POST['isPersonal'] == 'true') {
|
|
|
|
OCP\JSON::checkLoggedIn();
|
|
|
|
$isPersonal = true;
|
|
|
|
} else {
|
|
|
|
OCP\JSON::checkAdminUser();
|
|
|
|
$isPersonal = false;
|
|
|
|
}
|
2012-11-30 15:27:11 +00:00
|
|
|
OC_Mount_Config::addMountPoint($_POST['mountPoint'],
|
|
|
|
$_POST['class'],
|
|
|
|
$_POST['classOptions'],
|
|
|
|
$_POST['mountType'],
|
|
|
|
$_POST['applicable'],
|
|
|
|
$isPersonal);
|