testpost.php 535 B

123456789101112131415
  1. <?php
  2. /* See license terms in /license.txt */
  3. //file_put_contents("result.txt", print_r($_POST, true));
  4. //file_put_contents("result3.txt", print_r($_FILES, true));
  5. //file_put_contents("result2.txt", print_r($_GET, true));
  6. require('../inc/global.inc.php');
  7. if(api_get_setting('service_visio','active')=='true'
  8. && $_SERVER['REMOTE_HOST'] == api_get_setting('service_visio','visio_host'))
  9. {
  10. $target = "/tmp/";
  11. $target = $target . basename( $_FILES['file']['name']) ;
  12. if(move_uploaded_file($_FILES['file']['tmp_name'], $target));
  13. }
  14. ?>