Exemplo n.º 1
0
     $bdlink = '';
     if (quickGet('bundle_id')) {
         $params['bundle_id'] = $_GET['bundle_id'];
         // FIXME: the following part (esp. $act) seems to always be overriden by the code below ?!
         $bdl = new Bundle($_GET['bundle_id']);
         displayBreadCrumb();
         $act = $bdl->quickDisplay(array(new ActionItem(_T("Details", "msc"), "viewLogs", "detail", "msc", "msc", "logs")), $params);
         $bdlink = "&bundle_id=" . $_GET['bundle_id'];
     }
     if ($_GET['cmd_id'] == -2) {
         new NotifyWidgetFailure(_T("The group you are working on is empty.", "msc"));
     }
     // display just the selected command
     $cmd = new Command($_GET['cmd_id']);
     displayBreadCrumb();
     $act = $cmd->quickDisplay();
     if ($act) {
         // display all the commands on hosts
         $params = array("gid" => $_GET['gid'] . $bdlink, "cmd_id" => $_GET['cmd_id'], 'divID' => $divName, "tab" => "grouptablogs", "commands" => $command_type);
         if (isset($_history)) {
             $params['history'] = $_history;
         }
         $ajax = new AjaxFilterCommands(urlStrRedirect("base/computers/ajaxLogsFilter"), $divName, "commands", $params);
         $ajax->display();
         $ajax->displayDivToUpdate();
     }
 } else {
     # Display history for a specific group
     // display all commands
     $params = array("gid" => $_GET['gid'], 'divID' => $divName, "tab" => "grouptablogs", "commands" => $command_type);
     if (isset($_history)) {