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