2012-07-04 15:16:02 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
OCP\JSON::checkAppEnabled('files_external');
|
|
|
|
|
|
|
|
$view = \OCP\Files::getStorage("files_external");
|
|
|
|
$cert = $_POST['cert'];
|
2012-07-06 13:58:38 +00:00
|
|
|
$file = \OCP\Config::getSystemValue('datadirectory').$view->getAbsolutePath("").'uploads/'.$cert;
|
2012-07-04 15:16:02 +00:00
|
|
|
unlink($file);
|
2012-07-06 13:58:38 +00:00
|
|
|
OC_Mount_Config::createCertificateBundle();
|
2012-07-04 15:16:02 +00:00
|
|
|
?>
|