Changeset 3889 for branches/2.2/filemanager/inc/uploadApp.php
- Timestamp:
- 03/22/11 18:19:49 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/filemanager/inc/uploadApp.php
r3610 r3889 1 1 <?php 2 session_id($_GET['id']); 2 3 session_id( $_GET['id'] ); 3 4 session_start(); 4 setcookie( 'jupload',$_GET['id'], time()+3600);5 setcookie( 'jupload', $_GET['id'], time()+3600 ); 5 6 6 7 include 'jupload.php'; 7 function handle_uploaded_files($juploadPhpSupportClass, $files) { 8 9 function handle_uploaded_files($juploadPhpSupportClass, $files) 10 { 8 11 return 9 12 "<P>We are in the 'handle_uploaded_files' callback function, in the index.php script. To avoid double coding, we " … … 13 16 14 17 } 18 19 // Set Max File Size 20 $maxFileSize = "10M"; 21 22 if ( file_exists('setFileMaxSize.php') ) 23 { 24 require_once('setFileMaxSize.php'); 25 $maxFileSize = unserialize(base64_decode($SET_FILE_MAX_SIZE)); 26 $maxFileSize = trim($maxFileSize)."M"; 27 } 28 15 29 $appletParameters = array( 16 'maxFileSize' => '5G', 17 'maxChunkSize' => '1600000', 18 'archive' => '../tp/juploader/wjhk.jupload.jar', 19 'afterUploadURL' => 'after_upload.php', 20 'sendMD5Sum' => 'true', 21 'showLogWindow' => 'false', 22 'debugLevel' => 0 23 ); 30 'maxFileSize' => $maxFileSize, 31 'maxChunkSize' => '1600000', 32 'archive' => '../tp/juploader/wjhk.jupload.jar', 33 'afterUploadURL' => 'after_upload.php', 34 'sendMD5Sum' => 'true', 35 'showLogWindow' => 'false', 36 'debugLevel' => 0 37 ); 38 24 39 $classParameters = array( 25 'demo_mode' => false,26 'allow_subdirs' => true,27 'destdir' => '/tmp' //Where to store the files on the webserver28 );40 'demo_mode' => false, 41 'allow_subdirs' => true, 42 'destdir' => '/tmp' //Where to store the files on the webserver 43 ); 29 44 30 45 $juploadPhpSupportClass = new JUpload($appletParameters, $classParameters); … … 33 48 echo '<div align="left"><!--JUPLOAD_APPLET--></div>'; 34 49 35 36 50 ?>
Note: See TracChangeset
for help on using the changeset viewer.