diff --git a/3rdparty/mmu_man/onlinedemo/haiku.php b/3rdparty/mmu_man/onlinedemo/haiku.php index ebcb0eadd3..cd0a6dd42c 100755 --- a/3rdparty/mmu_man/onlinedemo/haiku.php +++ b/3rdparty/mmu_man/onlinedemo/haiku.php @@ -3,7 +3,7 @@ /* * haiku.php - an online Haiku demo using qemu and vnc. * - * Copyright 2007-2010, Francois Revol, revol@free.fr. + * Copyright 2007-2011, Francois Revol, revol@free.fr. * Distributed under the terms of the MIT License. */ @@ -32,6 +32,9 @@ define("PAGE_TITLE", "Haiku Online Demo"); // to use the tightvnc applet instead (supports > 8bpp): // on debian, apt-get install tightvnc-java will put them in // /usr/share/tightvnc-java +// else you can get it from http://www.tightvnc.com/download-old.php : +// wget http://www.tightvnc.com/download/1.3.10/tightvnc-1.3.10_javabin.zip +// (you will have to move the VncViewer.jar file around) define("VNCJAVA_PATH", "tightvnc-java"); define("VNCJAR", "VncViewer.jar"); define("VNCCLASS", "VncViewer.class"); @@ -58,6 +61,9 @@ define("VNCPORTBASE", 5900); //define("AUDIOPORTBASE", 8080); define("AUDIOPORTBASE", (VNCPORTBASE + MAX_QEMUS)); +// if audio is enabled +define("AUDIOENABLED", false); + // base port for serial output //define("SERIALPORTBASE", 9000); define("SERIALPORTBASE", (VNCPORTBASE + MAX_QEMUS * 2)); @@ -74,7 +80,7 @@ define("QEMU_ARGS", "" ."-daemonize " /* detach from stdin */ ."-localtime " /* not UTC */ ."-name '" . addslashes(PAGE_TITLE) . "' " - ."-monitor /dev/null " + ."-monitor null " /* disable the monitor */ ."-serial none " ."-parallel none " ."-net none " @@ -87,7 +93,7 @@ define("QEMU_IMAGE_PATH", "/home/revol/haiku.image"); // BAD: let's one download the image //define("QEMU_IMAGE_PATH", dirname($_SERVER['SCRIPT_FILENAME']) . "/haiku.image"); -// max number of cpus for the VM, not more than 8 +// max number of cpus for the VM, no more than 8 define("QEMU_MAX_CPUS", 1); // qemu 0.8.2 needs "", qemu 0.9.1 needs ":" @@ -96,6 +102,7 @@ define("QEMU_VNC_PREFIX", ":"); // name of session and pid files in /tmp define("QEMU_SESSFILE_TMPL", "qemu-haiku-session-"); define("QEMU_PIDFILE_TMPL", "qemu-haiku-pid-"); +define("QEMU_LOGFILE_TMPL", "qemu-haiku-log-"); // name of session variable holding the qemu slot; not yet used correctly define("QEMU_IDX_VAR", "QEMU_HAIKU_SESSION_VAR"); @@ -153,6 +160,11 @@ function make_qemu_pidfile_name($idx) return "/tmp/" . QEMU_PIDFILE_TMPL . $idx; } +function make_qemu_logfile_name($idx) +{ + return "/tmp/" . QEMU_LOGFILE_TMPL . $idx; +} + function find_qemu_slot() { for ($idx = 0; $idx < MAX_QEMUS; $idx++) { @@ -379,9 +391,8 @@ function output_options_form() echo "\n\n"; - $enable_sound = 1; echo "