镜像自地址
https://github.com/nextcloud/server.git
已同步 2024-08-10 02:11:09 +02:00
14 行
309 B
PHP
14 行
309 B
PHP
<?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();
|
|
}
|