public function fileexplorerAddAction()
{
$this->checkPermission("fileexplorer");
$success = false;
if ($this->getParam("filename") && $this->getParam("path")) {
$path = $this->getFileexplorerPath("path");
$file = $path . "/" . $this->getParam("filename");
$file = resolvePath($file);
if (strpos($file, PIMCORE_DOCUMENT_ROOT) !== 0) {
throw new \Exception("not allowed");
}
if (is_writeable(dirname($file))) {
File::put($file, "");
$success = true;
}
}
$this->_helper->json(["success" => $success]);
}