28 require
'commands.php';
38 function SendError($number, $text)
40 SendUploadResults($number,
'',
'', $text);
45 if (empty($Config[
'Enabled'])) {
46 SendUploadResults(
'1',
'',
'',
'This file uploader is disabled. Please check the "filemanagerdol/connectors/php/config.php" file');
49 $sCommand =
'QuickUpload';
54 $sCurrentFolder =
"/";
57 if (!IsAllowedCommand($sCommand)) {
58 SendUploadResults(
'1',
'',
'',
'The ""'.$sCommand.
'"" command isn\'t allowed');
62 if (!IsAllowedType($sType)) {
63 SendUploadResults(1,
'',
'',
'Invalid type specified');
72 $CKEcallback = $_GET[
'CKEditorFuncNum'];
75 FileUpload($sType, $sCurrentFolder, $sCommand, $CKEcallback);
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
This class is used to manage file upload using ajax.
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname from a POST of a form...