You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2012/12/05 23:06:51 UTC

svn commit: r1417665 - /vcl/branches/vcl-2.3-bugfixes/web/.ht-inc/utils.php

Author: jfthomps
Date: Wed Dec  5 22:06:50 2012
New Revision: 1417665

URL: http://svn.apache.org/viewvc?rev=1417665&view=rev
Log:
VCL-626
Name RDP file download after server reservation name

utils.php: modified sendRDPfile - if server reservation, name file based on server reservation name; if server and cluster reservation, name file based on reservation name and image name

Modified:
    vcl/branches/vcl-2.3-bugfixes/web/.ht-inc/utils.php

Modified: vcl/branches/vcl-2.3-bugfixes/web/.ht-inc/utils.php
URL: http://svn.apache.org/viewvc/vcl/branches/vcl-2.3-bugfixes/web/.ht-inc/utils.php?rev=1417665&r1=1417664&r2=1417665&view=diff
==============================================================================
--- vcl/branches/vcl-2.3-bugfixes/web/.ht-inc/utils.php (original)
+++ vcl/branches/vcl-2.3-bugfixes/web/.ht-inc/utils.php Wed Dec  5 22:06:50 2012
@@ -8433,7 +8433,14 @@ function sendRDPfile() {
 	$redirectcomports = $user["mapserial"];
 
 	header("Content-type: application/rdp");
-	header("Content-Disposition: inline; filename=\"{$res['prettyimage']}.rdp\"");
+	if($request['serverrequest']) {
+		if(count($request['reservations']) == 1)
+			header("Content-Disposition: inline; filename=\"{$request['servername']}.rdp\"");
+		else
+			header("Content-Disposition: inline; filename=\"{$request['servername']}-{$res['prettyimage']}.rdp\"");
+	}
+	else
+		header("Content-Disposition: inline; filename=\"{$res['prettyimage']}.rdp\"");
 	print "screen mode id:i:$screenmode\r\n";
 	print "desktopwidth:i:$width\r\n";
 	print "desktopheight:i:$height\r\n";