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