18 lines
No EOL
425 B
PHP
18 lines
No EOL
425 B
PHP
<?php
|
|
|
|
OCP\JSON::checkAppEnabled('files_external');
|
|
OCP\JSON::callCheck();
|
|
|
|
if ($_POST['isPersonal'] == 'true') {
|
|
OCP\JSON::checkLoggedIn();
|
|
$isPersonal = true;
|
|
} else {
|
|
OCP\JSON::checkAdminUser();
|
|
$isPersonal = false;
|
|
}
|
|
OC_Mount_Config::addMountPoint($_POST['mountPoint'],
|
|
$_POST['class'],
|
|
$_POST['classOptions'],
|
|
$_POST['mountType'],
|
|
$_POST['applicable'],
|
|
$isPersonal); |