Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

rdp.php 853B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Simple RDP connection file generator
  4. *
  5. * @author Ian Moore (imoore76 at yahoo dot com)
  6. * @copyright Copyright (C) 2010-2015 Ian Moore (imoore76 at yahoo dot com)
  7. * @version $Id: rdp.php 591 2015-04-11 22:40:47Z imoore76 $
  8. * @package phpVirtualBox
  9. *
  10. */
  11. # Turn off PHP notices
  12. error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_WARNING);
  13. require_once(dirname(__FILE__).'/lib/utils.php');
  14. $_GET = clean_request();
  15. foreach(array('port','host','vm') as $g) {
  16. @$_GET[$g] = str_replace(array("\n","\r","\0"),'',@$_GET[$g]);
  17. }
  18. header("Content-type: application/x-rdp",true);
  19. header("Content-disposition: attachment; filename=\"". str_replace(array('"','.'),'_',$_GET['vm']) .".rdp\"",true);
  20. echo('
  21. full address:s:'.@$_GET['host'].(@$_GET['port'] ? ':'.@$_GET['port'] : '').'
  22. compression:i:1
  23. displayconnectionbar:i:1
  24. protocol:i:4
  25. ');