Revision 5341,
526 bytes
checked in by wmerlotto, 13 years ago
(diff) |
Ticket #2434 - Commit inicial do novo módulo de agenda do Expresso - expressoCalendar
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | $result = array(); |
---|
4 | |
---|
5 | require_once 'app/controller.php'; |
---|
6 | $URI = Controller::URI( 'attachment' ); |
---|
7 | |
---|
8 | foreach( $_FILES as $name => $file ) |
---|
9 | { |
---|
10 | $file['source'] = file_get_contents( $file['tmp_name'] ); |
---|
11 | unset( $file['tmp_name'] ); |
---|
12 | |
---|
13 | $result[$name] = Controller::create( $URI, $file ); |
---|
14 | |
---|
15 | ob_start(); |
---|
16 | print_r( $result ); |
---|
17 | $output = ob_get_clean(); |
---|
18 | file_put_contents( "/tmp/prototype.log", file_get_contents( "/tmp/prototype.log" ) . $output ); |
---|
19 | |
---|
20 | unset( $file['source'] ); |
---|
21 | } |
---|
22 | |
---|
23 | echo json_encode( $result ); |
---|
Note: See
TracBrowser
for help on using the repository browser.