You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12345678910111213 |
- <?php
-
- OCP\JSON::checkAppEnabled('files_external');
- OCP\JSON::checkLoggedIn();
- OCP\JSON::callCheck();
-
- $view = \OCP\Files::getStorage("files_external");
- $file = 'uploads/'.ltrim($_POST['cert'], "/\\.");
-
- if ( $view->file_exists($file) ) {
- $view->unlink($file);
- OC_Mount_Config::createCertificateBundle();
- }
|