return; } $service_url = get("su"); if($service_url != null) { Vuzit_Service::setServiceUrl($service_url); } Vuzit_Service::setPublicKey($public_key); Vuzit_Service::setPrivateKey($private_key); Vuzit_Service::setUserAgent("Vuzit Test Suite"); // Grab the command and execute switch(get("c")) { case "load": load_command(); break; case "upload": upload_command(); break; case "delete": delete_command(); break; case "event": event_command(); break; } ?>
$path = explode('|', $from); $module = $path[0]; $submod = $path[1]; $page = $path[2]; $tab = $path[3]; $url = array(); foreach (array('name', 'from', 'uuid', 'gid', 'bundle_id', 'hostname') as $post) { $url[$post] = $_POST[$post]; } if (isset($tab)) { $url['tab'] = $tab; } if (isset($_POST['coh_id']) && $_POST['coh_id'] != "") { delete_command_on_host($_POST['coh_id']); } elseif (isset($_POST['cmd_id']) && $_POST['cmd_id'] != "") { delete_command($_POST['cmd_id']); } elseif (isset($_POST['bundle_id']) && $_POST['bundle_id'] != "") { delete_bundle($_POST['bundle_id']); } header("Location: " . urlStrRedirect("{$module}/{$submod}/{$page}", $url)); exit; } /* Form displaying */ $f = new PopupForm(_T('Delete this command', 'msc'), 'deletePopupForm'); if (isset($_GET['coh_id'])) { $f->add(new HiddenTpl("coh_id"), array("value" => $_GET['coh_id'], "hide" => True)); } if (isset($_GET['cmd_id'])) { $f->add(new HiddenTpl("cmd_id"), array("value" => $_GET['cmd_id'], "hide" => True)); } if (isset($_GET['bundle_id'])) {