source: branches/2.2/filemanager/inc/uploadApp.php @ 3610

Revision 3610, 1.0 KB checked in by alexandrecorreia, 13 years ago (diff)

Ticket #1395 - Padronizacao das janelas do filemanager com as do Expresso ( Envio de arquivo e mensagens ).

Line 
1<?php
2session_id($_GET['id']);
3session_start();
4setcookie('jupload',$_GET['id'], time()+3600);
5
6include 'jupload.php';
7function 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(
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);
24$classParameters = array(
25        'demo_mode' => false,
26        'allow_subdirs' => true,
27        'destdir' => '/tmp'  //Where to store the files on the webserver
28);
29
30$juploadPhpSupportClass = new JUpload($appletParameters, $classParameters);
31
32echo '<div align="left"><!--JUPLOAD_FILES--></div>';
33echo '<div align="left"><!--JUPLOAD_APPLET--></div>';
34
35
36?>
Note: See TracBrowser for help on using the repository browser.