Example #1
0
                    $validation_errors[] = _('Invalid target') . ': ' . $ip_target;
                }
                if (!$target_error) {
                    $tip_target[] = str_replace('!', '', $target);
                }
            }
        }
    }
    $ip_list = $tip_target;
    // validated targets
    if (count($tip_target) == 0) {
        $validation_errors[] = _('Invalid Targets');
    }
    if (empty($validation_errors)) {
        // save the scan data
        submit_scan($SVRid, $job_name, $ssh_credential, $smb_credential, $schedule_type, $not_resolve, $user, $entity, $targets, $scheduled_status, $hosts_alive, $sid, $send_email, $timeout, $scan_locally, $dayofweek, $dayofmonth, $ROYEAR, $ROMONTH, $ROday, $time_hour, $time_min, $time_interval, $sched_id, $biyear, $bimonth, $biday, $nthweekday, $tz, $daysMap);
        $close = TRUE;
    }
}
$db->close($conn);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title> <?php 
echo gettext('Vulnmeter');
?>
 </title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
	<meta http-equiv="Pragma" content="no-cache"/>
	<?php 
Example #2
0
switch ($disp) {
    //case "auth_request":
    //   auth_request ( $op, $submit, $process );
    //break;
    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;
}