Admin_MiscController::fileexplorerContentAction PHP Метод

fileexplorerContentAction() публичный Метод

    public function fileexplorerContentAction()
    {
        $this->checkPermission("fileexplorer");
        $success = false;
        $writeable = false;
        $file = $this->getFileexplorerPath("path");
        if (is_file($file)) {
            if (is_readable($file)) {
                $content = file_get_contents($file);
                $success = true;
                $writeable = is_writeable($file);
            }
        }
        $this->_helper->json(["success" => $success, "content" => $content, "writeable" => $writeable, "path" => preg_replace("@^" . preg_quote(PIMCORE_DOCUMENT_ROOT) . "@", "", $file)]);
    }