|
|
@ -1,6 +1,8 @@ |
|
|
|
<?php |
|
|
|
<?php |
|
|
|
OCP\JSON::checkLoggedIn(); |
|
|
|
OCP\JSON::checkLoggedIn(); |
|
|
|
OCP\JSON::checkAppEnabled('files_sharing'); |
|
|
|
OCP\JSON::checkAppEnabled('files_sharing'); |
|
|
|
|
|
|
|
OCP\JSON::callCheck(); |
|
|
|
|
|
|
|
|
|
|
|
$user = OCP\USER::getUser(); |
|
|
|
$user = OCP\USER::getUser(); |
|
|
|
// TODO translations |
|
|
|
// TODO translations |
|
|
|
$type = (strpos($_POST['file'], '.') === false) ? 'folder' : 'file'; |
|
|
|
$type = (strpos($_POST['file'], '.') === false) ? 'folder' : 'file'; |
|
|
|