$action = $_GET['action']; } } $sendinterval_arr = array(3600 => 'Every Hour', 7200 => 'Every 2 Hours', 14400 => 'Every 4 Hours', 21600 => 'Every 6 Hours', 43200 => 'Every 12 Hours', 86400 => 'Every Day', 432000 => 'Every Week', 864000 => 'Every 2 Weeks', 1728000 => 'Every Month'); $schedule_edit = array("title" => array("friendly_name" => "Title", "method" => "textbox", "default" => "New Schedule", "description" => "Enter a Report Title for the FlowView Schedule.", "value" => "|arg1:title|", "max_length" => 128, "size" => 60), "enabled" => array("friendly_name" => "Enabled", "method" => "checkbox", "default" => "on", "description" => "Whether or not this Netflow Scan will be sent.", "value" => "|arg1:enabled|"), "savedquery" => array("method" => "drop_sql", "friendly_name" => "Filter Name", "description" => "Name of the query to run.", "value" => "|arg1:savedquery|", "sql" => "SELECT id, name FROM plugin_flowview_queries"), "sendinterval" => array("friendly_name" => "Send Interval", "description" => "How often to send this Netflow Report?", "value" => "|arg1:sendinterval|", "method" => "drop_array", 'default' => '0', "array" => $sendinterval_arr), "start" => array("method" => "textbox", "friendly_name" => "Start Time", "description" => "This is the first date / time to send the Netflow Scan email. All future sendings will be calculated off of this time plus the interval given above.", "value" => "|arg1:start|", "max_length" => '26', "size" => 20, "default" => date("Y-m-d G:i:s", time())), "email" => array("method" => "textarea", "friendly_name" => "Email Addresses", "description" => "Email addresses (command delimitinated) to send this Netflow Scan to.", "textarea_rows" => 4, "textarea_cols" => 60, "class" => "textAreaNotes", "value" => "|arg1:email|"), "id" => array("method" => "hidden_zero", "value" => "|arg1:id|")); switch ($action) { case 'actions': actions_schedules(); break; case 'save': save_schedules(); break; case 'edit': include_once "./plugins/flowview/general_header.php"; display_tabs(); edit_schedule(); include_once "./include/bottom_footer.php"; break; default: include_once "./plugins/flowview/general_header.php"; display_tabs(); show_schedules(); include_once "./include/bottom_footer.php"; break; } function actions_schedules() { global $colors, $sched_actions, $config; if (isset($_POST["selected_items"])) { $selected_items = unserialize(stripslashes($_POST["selected_items"])); if ($_POST["drp_action"] == "1") {
case "create": if ($error_message != "") { echo "<br/><div class='ossim_error' style='width:80%;'><div>" . _("We found the following errors:") . "</div<div style='padding-left: 10px;'>{$error_message}</div></div><br>"; main_page($job_id, $op); } else { if ($entity != "" && $entity != "none") { $username = $entity; } if ($user != "" && $user != "none") { $username = $user; } submit_scan($op, $sched_id, $sname, $notify_email, $schedule_type, $ROYEAR, $ROMONTH, $ROday, $time_hour, $time_min, $dayofweek, $dayofmonth, $timeout, $SVRid, $sid, $tarSel, $ip_list, $ip_exceptions_list, $ip_start, $ip_end, $named_list, $cidr, $subnet, $system, $cred_type, $credid, $acc, $domain, $accpass, $acctype, $passtype, $passstore, $wpolicies, $wfpolicies, $upolicies, $custadd_type, $cust_plugins, $is_enabled, $hosts_alive, $scan_locally, $nthweekday, $semail, $not_resolve); } break; case "edit_sched": edit_schedule($sched_id); break; case "delete_scan": delete_scan($job_id); break; case "rerun": rerun($job_id); break; default: main_page($job_id, $op); break; } function createHiddenDiv($name, $num, $data) { $text = ""; $style = "";