Revision 5736,
503 bytes
checked in by cristiano, 13 years ago
(diff) |
Ticket #2434 - correções na importação
|
Rev | Line | |
---|
[5341] | 1 | <?php |
---|
| 2 | |
---|
[5399] | 3 | require_once 'api/controller.php'; |
---|
[5341] | 4 | |
---|
[5514] | 5 | $method = isset($_REQUEST['analize']) && $_REQUEST['analize'] ? 'analize' : 'parse'; |
---|
[5341] | 6 | |
---|
[5415] | 7 | $args = Controller::call( $method, |
---|
| 8 | |
---|
[5341] | 9 | array( 'service' => $_REQUEST['type'] ), |
---|
| 10 | |
---|
[5514] | 11 | isset( $_FILES['files'] ) ? file_get_contents( $_FILES['files']['tmp_name'][0], $_FILES['files']['size'][0] ) : $_REQUEST['data'], |
---|
[5341] | 12 | |
---|
| 13 | $_REQUEST['params'] ); |
---|
| 14 | |
---|
[5736] | 15 | if( !isset($_REQUEST['readable']) || !$_REQUEST['readable']) |
---|
[5346] | 16 | require_once 'Sync.php'; |
---|
| 17 | else |
---|
| 18 | print_r(serialize($args)); |
---|
[5341] | 19 | |
---|
| 20 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.