array ("get", "string", ''), "script" => array ("get", "boolean", 0), ); getFields($fields); if (in_array($action, array('start', 'stop', 'monit'))) { $res = $hooks->invoke($action, array(), 'lxc'); } $infos = $lxc->getvm(); if ($script) { // FIXME afficher les variables pertinentes de manière pertinente pour quelqu'un qui veux scripter :) print_r($infos); if (isset($res)) print_r($res); die(); } # Show the header after the "if script" ;) include_once("head.php"); # Debug echo "
"; ?>"._("Hostname")." | ".$infos['serialized_object']['hostname']." |
---|---|
"._("Start time")." | ".$infos['date_start']." |
"._("Click here to stop the machine")." |