### /Advanced actions handling ### /* single target: form display */ if (!isset($_GET['badvanced']) && $_GET['uuid'] && !isset($_POST['launchAction'])) { $machine = new Machine(array('uuid' => $_GET['uuid'], 'hostname' => array('0' => $_GET['hostname']), 'displayName' => $_GET['hostname'])); if (strlen(web_probe_order()) > 0) { $msc_host = new RenderedMSCHost($machine, web_probe_order()); $msc_host->ajaxDisplay(); } else { // nothing set : do not probe if (!isset($_POST["bprobe"])) { $fprobe = new ValidatingForm(); $fprobe->addButton("bprobe", _T("Probe status", "msc")); $fprobe->display(); print "<br/>"; } else { $msc_host = new RenderedMSCHost($machine, web_probe_order_on_demand()); $msc_host->ajaxDisplay(); } } $msc_actions = new RenderedMSCActions(msc_script_list_file(), $machine->hostname, array('uuid' => $_GET['uuid'])); $msc_actions->display(); $ajax = new AjaxFilter(urlStrRedirect("base/computers/ajaxPackageFilter"), "container", array("uuid" => $machine->uuid, "hostname" => $machine->hostname)); $ajax->display(); $ajax->displayDivToUpdate(); } /* group display */ if (!isset($_GET['badvanced']) && isset($_GET['gid']) && !isset($_POST['launchAction']) && !isset($_GET['uuid'])) { $group = new Group($_GET['gid'], true); if ($group->exists != False) { // Display the actions list $msc_actions = new RenderedMSCActions(msc_script_list_file(), $group->getName(), array("gid" => $_GET['gid']));
<?php /* * Linbox Rescue Server - Secure Remote Control Module * Copyright (C) 2005 Linbox FAS * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, US */ require_once "modules/msc/includes/widgets/html.php"; // Display host informations $label = new RenderedLabel(3, _T('Remote control of :', 'msc')); $label->display(); $msc_host = new RenderedMSCHost($_GET["mac"], $session, MSC_sysPing($session->ip) == 0, 'msc/msc/general'); $msc_host->display();