27require
'config.inc.php';
28require
'connector.lib.php';
30if (!$Config[
'Enabled']) {
31 SendError(1,
'This connector is disabled. Please check the "editor/filemanager/connectors/php/config.inc.php" file');
46 if (!isset($_GET[
'Command']) || !isset($_GET[
'Type']) || !isset($_GET[
'CurrentFolder'])) {
51 $sCommand = $_GET[
'Command'];
52 $sResourceType = $_GET[
'Type'];
53 $sCurrentFolder = GetCurrentFolder();
56 if (!IsAllowedCommand($sCommand)) {
57 SendError(1,
'The "'.$sCommand.
'" command isn\'t allowed');
60 if (!IsAllowedType($sResourceType)) {
61 SendError(1,
'Invalid type specified');
65 if ($sCommand ==
'FileUpload') {
66 FileUpload($sResourceType, $sCurrentFolder, $sCommand);
70 CreateXmlHeader($sCommand, $sResourceType, $sCurrentFolder);
75 GetFolders($sResourceType, $sCurrentFolder);
77 case 'GetFoldersAndFiles':
78 GetFoldersAndFiles($sResourceType, $sCurrentFolder);
81 CreateFolder($sResourceType, $sCurrentFolder);
This class is used to manage file upload using ajax.