diff options
author | Tudor Holton <tudor@tudorholton.com> | 2018-07-13 17:44:24 +1000 |
---|---|---|
committer | Tudor Holton <tudor@tudorholton.com> | 2018-07-13 17:44:24 +1000 |
commit | 81e287733d904e8f8fce1c91e42cf2933007c9cc (patch) | |
tree | 01146078eecd1a0fc610ae225192debed7925999 /endpoints/rdp.php | |
parent | f3e62d8bce52f392b4faed4792e6e112d1777757 (diff) | |
parent | 3c61d5eae51e27082945f629d0076edf0c309f96 (diff) | |
download | phpvirtualbox-81e287733d904e8f8fce1c91e42cf2933007c9cc.zip phpvirtualbox-81e287733d904e8f8fce1c91e42cf2933007c9cc.tar.gz phpvirtualbox-81e287733d904e8f8fce1c91e42cf2933007c9cc.tar.bz2 |
Ready for release 5.2-1
Diffstat (limited to 'endpoints/rdp.php')
-rw-r--r-- | endpoints/rdp.php | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/endpoints/rdp.php b/endpoints/rdp.php index 991ec8f..4da62fe 100644 --- a/endpoints/rdp.php +++ b/endpoints/rdp.php @@ -1,32 +1,32 @@ -<?php
-/**
- * Simple RDP connection file generator
- *
- * @author Ian Moore (imoore76 at yahoo dot com)
- * @copyright Copyright (C) 2010-2015 Ian Moore (imoore76 at yahoo dot com)
- * @version $Id: rdp.php 591 2015-04-11 22:40:47Z imoore76 $
- * @package phpVirtualBox
- *
- */
-
-# Turn off PHP notices
-error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_WARNING);
-
-require_once(dirname(__FILE__).'/lib/utils.php');
-$_GET = clean_request();
-
-foreach(array('port','host','vm') as $g) {
- @$_GET[$g] = str_replace(array("\n","\r","\0"),'',@$_GET[$g]);
-}
-
-
-header("Content-type: application/x-rdp",true);
-header("Content-disposition: attachment; filename=\"". str_replace(array('"','.'),'_',$_GET['vm']) .".rdp\"",true);
-
-
-echo('
-full address:s:'.@$_GET['host'].(@$_GET['port'] ? ':'.@$_GET['port'] : '').'
-compression:i:1
-displayconnectionbar:i:1
-protocol:i:4
-');
+<?php +/** + * Simple RDP connection file generator + * + * @author Ian Moore (imoore76 at yahoo dot com) + * @copyright Copyright (C) 2010-2015 Ian Moore (imoore76 at yahoo dot com) + * @version $Id: rdp.php 591 2015-04-11 22:40:47Z imoore76 $ + * @package phpVirtualBox + * + */ + +# Turn off PHP notices +error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_WARNING); + +require_once(dirname(__FILE__).'/lib/utils.php'); +$_GET = clean_request(); + +foreach(array('port','host','vm') as $g) { + @$_GET[$g] = str_replace(array("\n","\r","\0"),'',@$_GET[$g]); +} + + +header("Content-type: application/x-rdp",true); +header("Content-disposition: attachment; filename=\"". str_replace(array('"','.'),'_',$_GET['vm']) .".rdp\"",true); + + +echo(' +full address:s:'.@$_GET['host'].(@$_GET['port'] ? ':'.@$_GET['port'] : '').' +compression:i:1 +displayconnectionbar:i:1 +protocol:i:4 +'); |