Source for file filemanager.php
Documentation is available at filemanager.php
// error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
// ini_set('display_errors', '1');
* Filemanager PHP connector
* use for ckeditor filemanager plug-in by Core Five - http://labs.corefive.com/Projects/FileManager/
* @author Riaan Los <mail (at) riaanlos (dot) nl>
* @author Simon Georget <simon (at) linea21 (dot) com>
* @package linea21.externals
* @subpackage Filemanager
require_once('./inc/filemanager.inc.php');
require_once('filemanager.config.php');
require_once('filemanager.class.php');
if (isset ($config['plugin']) && !empty($config['plugin'])) {
$pluginPath = 'plugins' . DIRECTORY_SEPARATOR . $config['plugin'] . DIRECTORY_SEPARATOR;
require_once($pluginPath . 'filemanager.' . $config['plugin'] . '.config.php');
require_once($pluginPath . 'filemanager.' . $config['plugin'] . '.class.php');
$className = 'Filemanager'. strtoupper($config['plugin']);
$fm = new $className($config);
$fm->error($fm->lang('AUTHORIZATION_REQUIRED'));
$fm->error($fm->lang('INVALID_ACTION'));
if(isset ($_GET['mode']) && $_GET['mode']!= '') {
$fm->error($fm->lang('MODE_ERROR'));
if($fm->getvar('path')) {
$response = $fm->getinfo();
if($fm->getvar('path')) {
$response = $fm->getfolder();
if($fm->getvar('old') && $fm->getvar('new')) {
if($fm->getvar('path')) {
$response = $fm->delete();
if($fm->getvar('path') && $fm->getvar('name')) {
$response = $fm->addfolder();
if($fm->getvar('path')) {
if($fm->getvar('path')) {
} else if(isset ($_POST['mode']) && $_POST['mode']!= '') {
$fm->error($fm->lang('MODE_ERROR'));
if($fm->postvar('currentpath')) {
|