2012-07-04 15:16:02 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
OCP\JSON::checkAppEnabled('files_external');
|
2012-08-09 22:44:35 +00:00
|
|
|
OCP\JSON::checkLoggedIn();
|
|
|
|
OCP\JSON::callCheck();
|
2012-07-04 15:16:02 +00:00
|
|
|
|
|
|
|
$view = \OCP\Files::getStorage("files_external");
|
2012-09-27 10:37:23 +00:00
|
|
|
$file = 'uploads/'.ltrim($_POST['cert'], "/\\.");
|
|
|
|
|
|
|
|
if ( $view->file_exists($file) ) {
|
|
|
|
$view->unlink($file);
|
|
|
|
OC_Mount_Config::createCertificateBundle();
|
|
|
|
}
|