Revision 3610,
1.0 KB
checked in by alexandrecorreia, 14 years ago
(diff) |
Ticket #1395 - Padronizacao das janelas do filemanager com as do Expresso ( Envio de arquivo e mensagens ).
|
Rev | Line | |
---|
[3367] | 1 | <?php |
---|
| 2 | session_id($_GET['id']); |
---|
| 3 | session_start(); |
---|
| 4 | setcookie('jupload',$_GET['id'], time()+3600); |
---|
| 5 | |
---|
| 6 | include 'jupload.php'; |
---|
| 7 | function handle_uploaded_files($juploadPhpSupportClass, $files) { |
---|
| 8 | return |
---|
| 9 | "<P>We are in the 'handle_uploaded_files' callback function, in the index.php script. To avoid double coding, we " |
---|
| 10 | . "just call the default behavior of the JUpload PHP class. Just replace this by your code...</P>" |
---|
| 11 | . $juploadPhpSupportClass->defaultAfterUploadManagement(); |
---|
| 12 | ; |
---|
| 13 | |
---|
| 14 | } |
---|
| 15 | $appletParameters = array( |
---|
[3610] | 16 | 'maxFileSize' => '5G', |
---|
| 17 | 'maxChunkSize' => '1600000', |
---|
[3367] | 18 | 'archive' => '../tp/juploader/wjhk.jupload.jar', |
---|
| 19 | 'afterUploadURL' => 'after_upload.php', |
---|
| 20 | 'sendMD5Sum' => 'true', |
---|
| 21 | 'showLogWindow' => 'false', |
---|
[3386] | 22 | 'debugLevel' => 0 |
---|
[3367] | 23 | ); |
---|
| 24 | $classParameters = array( |
---|
| 25 | 'demo_mode' => false, |
---|
| 26 | 'allow_subdirs' => true, |
---|
[3386] | 27 | 'destdir' => '/tmp' //Where to store the files on the webserver |
---|
[3367] | 28 | ); |
---|
| 29 | |
---|
| 30 | $juploadPhpSupportClass = new JUpload($appletParameters, $classParameters); |
---|
| 31 | |
---|
[3386] | 32 | echo '<div align="left"><!--JUPLOAD_FILES--></div>'; |
---|
| 33 | echo '<div align="left"><!--JUPLOAD_APPLET--></div>'; |
---|
[3367] | 34 | |
---|
| 35 | |
---|
| 36 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.