1. Go to this page and download the library: Download jodit/connector library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
function checkAuthentication () {
/********************************************************************************/
if (empty($_SESSION['filebrowser'])) {
throw new \ErrorException('You do not have permission to view this directory', 403);
}
/********************************************************************************/
}
define('_JEXEC', 1);
define('JPATH_BASE', realpath(realpath(__DIR__).'/../../../../../')); // replace to valid path
ds \jodit\JoditApplication {
function checkAuthentication() {
$user = JFactory::getUser();
if (!$user->id) {
trigger_error('You are not authorized!', E_USER_WARNING);
}
}
}
function checkPermissions () {
/********************************************************************************/
if (!empty($_SESSION['filebrowser'])) {
switch ($this->action) {
case "imageResize":
case "fileMove":
case "folderCreate":
case "fileRemove":
case "fileUploadRemote":
case "fileUpload":
throw new \ErrorException('You do not have permission to view this action', 403);
}
return true;
}
throw new \ErrorException('You do not have permission to view this directory', 403);
/********************************************************************************/
}