2012-06-08 19:42:00 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
OCP\JSON::checkAppEnabled('files_external');
|
2012-07-07 18:12:21 +04:00
|
|
|
OCP\JSON::callCheck();
|
|
|
|
|
2012-06-08 19:42:00 +04:00
|
|
|
if ($_POST['isPersonal'] == 'true') {
|
|
|
|
OCP\JSON::checkLoggedIn();
|
|
|
|
$isPersonal = true;
|
|
|
|
} else {
|
|
|
|
OCP\JSON::checkAdminUser();
|
|
|
|
$isPersonal = false;
|
|
|
|
}
|
2012-12-24 22:45:52 +04:00
|
|
|
$status = OC_Mount_Config::addMountPoint($_POST['mountPoint'],
|
2012-11-30 19:27:11 +04:00
|
|
|
$_POST['class'],
|
|
|
|
$_POST['classOptions'],
|
|
|
|
$_POST['mountType'],
|
|
|
|
$_POST['applicable'],
|
2012-12-24 22:45:52 +04:00
|
|
|
$isPersonal);
|
2013-08-18 13:02:08 +04:00
|
|
|
OCP\JSON::success(array('data' => array('message' => $status)));
|