XOOPS  2.6.0
index.php File Reference

Go to the source code of this file.

Functions

 handle_uploaded_files ($juploadPhpSupportClass, $files)
 

Variables

 $appletParameters
 
if((isset($_SERVER['PHP_AUTH_USER'])&&$_SERVER['PHP_AUTH_USER']!= '')&&$_SERVER['PHP_AUTH_USER']!= ''&&$_SERVER['PHP_AUTH_USER']!= '') $classParameters
 
 $cycle =true
 
 $i =0
 
 $juploadPhpSupportClass = new JUpload($appletParameters, $classParameters)
 
 $max_cycles =50
 
 $path =$current_path.$_GET['path']
 

Function Documentation

handle_uploaded_files (   $juploadPhpSupportClass,
  $files 
)

This function will be called, once all files are uploaded, with the list of uploaded files as an argument.

Condition to have this function called:

  • Have the applet parameter afterUploadURL unset in this file. This makes the applet use its default behavior, that is: afterUploadURL is the current web page, with the ?afterupload=1 parameter added.
  • Have the class parameter callbackAfterUploadManagement set to 'handle_uploaded_files', name of this callback. You can use any name you want, but the function must accept one unique parameter: the array that contains the file descriptions.
Parameters
$juploadPhpSupportClassThe instance of the JUpload PHP class.
$fileThe array wich contains info about all uploaded files.

Definition at line 46 of file index.php.

References $juploadPhpSupportClass.

Variable Documentation

$appletParameters
Initial value:
= array(
'maxFileSize' => $JAVAMaxSizeUpload.'G',
'archive' => 'wjhk.jupload.jar',
'showLogWindow' => 'false',
'width' => '100%',
'height' =>'358px',
'name' => 'No limit Uploader',
'allowedFileExtensions' => implode('/',$ext),
'afterUploadURL' => 'success.php?path='.$_GET['path'],
'sendMD5Sum' => 'false',
'debugLevel' => 0
)
$ext
Definition: browse.php:87
$JAVAMaxSizeUpload
Definition: config.php:201

Definition at line 67 of file index.php.

if ((isset($_SERVER['PHP_AUTH_USER'])&&$_SERVER['PHP_AUTH_USER']!= '')&&$_SERVER['PHP_AUTH_USER']!= ''&&$_SERVER['PHP_AUTH_USER']!= '') $classParameters
Initial value:
= array(
'demo_mode' => false,
'allow_subdirs' => true,
'destdir' => $path
)
$path
Definition: index.php:11

Definition at line 102 of file index.php.

$cycle =true

Definition at line 12 of file index.php.

$i =0

Definition at line 14 of file index.php.

$juploadPhpSupportClass = new JUpload($appletParameters, $classParameters)

Definition at line 120 of file index.php.

Referenced by handle_uploaded_files().

$max_cycles =50

Definition at line 13 of file index.php.

$path =$current_path.$_GET['path']

Definition at line 11 of file index.php.