From cf02b29e4e0dd6d61c4bb25fcc8620e99d4908bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Mon, 24 Aug 2009 20:18:25 +0000 Subject: [PATCH] - added missing licence, - added setting to hide the applet controls, on by default, - added (unimplemented) setting to use session-generated passwords. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32661 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- 3rdparty/mmu_man/onlinedemo/haiku.php | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/3rdparty/mmu_man/onlinedemo/haiku.php b/3rdparty/mmu_man/onlinedemo/haiku.php index 7e539b4471..6de4129e65 100755 --- a/3rdparty/mmu_man/onlinedemo/haiku.php +++ b/3rdparty/mmu_man/onlinedemo/haiku.php @@ -2,7 +2,9 @@ /* * haiku.php - an online Haiku demo using qemu and vnc. - * Copyright 2007, Francois Revol, revol@free.fr. + * + * Copyright 2007-2009, Francois Revol, revol@free.fr. + * Distributed under the terms of the MIT License. */ // parts inspired by the Free Live OS Zoo @@ -34,6 +36,13 @@ define("VNCJAVA_PATH", "tightvnc-java"); define("VNCJAR", "VncViewer.jar"); define("VNCCLASS", "VncViewer.class"); +// do not show applet controls +define("VNC_HIDE_CONTROLS", true); + +// generate and use (plain text) passwords +// NOT IMPLEMENTED +//define("VNC_USE_PASS", true); + // maximum count of qemu instances. define("MAX_QEMUS", 2); @@ -577,7 +586,8 @@ function output_vnc_info_file() echo "[connection]\n"; echo "host=" . vnc_addr() . "\n"; echo "port=" . vnc_display() . "\n"; - //echo "password=XXX\n"; + if (defined('VNC_USE_PASS') && VNC_USE_PASS) + echo "password=" . $_SESSION['VNC_PASS'] . "\n"; //echo "[options]\n"; // cf. http://www.realvnc.com/pipermail/vnc-list/1999-December/011086.html // cf. http://www.tek-tips.com/viewthread.cfm?qid=1173303&page=1 @@ -638,7 +648,12 @@ function output_applet_code($external_only=false) //not needed //echo "\n"; echo "\n"; - echo "\n"; + $pass = ''; + if (defined('VNC_USE_PASS') && VNC_USE_PASS) + $pass = $_SESSION['VNC_PASS']; + echo "\n"; + if (defined("VNC_HIDE_CONTROLS") && VNC_HIDE_CONTROLS) + echo "\n"; //echo ""; echo "\n"; echo "\n";