28 require
'commands.php';
37 function SendError($number, $text)
39 SendUploadResults($number,
'',
'', $text);
44 if (!$Config[
'Enabled'])
45 SendUploadResults(
'1',
'',
'',
'This file uploader is disabled. Please check the "filemanagerdol/connectors/php/config.php" file');
47 $sCommand =
'QuickUpload';
50 $sType = isset($_GET[
'Type']) ? $_GET[
'Type'] :
'File';
52 $sCurrentFolder =
"/";
55 if (!IsAllowedCommand($sCommand))
56 SendUploadResults(
'1',
'',
'',
'The ""'.$sCommand.
'"" command isn\'t allowed');
59 if (!IsAllowedType($sType))
60 SendUploadResults(1,
'',
'',
'Invalid type specified');
67 $CKEcallback = $_GET[
'CKEditorFuncNum'];
70 FileUpload($sType, $sCurrentFolder, $sCommand, $CKEcallback);
This class is used to manage file upload using ajax.