require '../../include/init.inc.php'; $page_no = $start_date = $end_date = $ajaxMethod = $command = $projectType = $queryType = ""; $_GET['start_date'] = empty($_GET['start_date']) ? date("Y-01-01", time()) : $_GET['start_date']; $_GET['end_date'] = empty($_GET['end_date']) ? date("Y-m-d", time() + 86400) : $_GET['end_date']; $_GET['ajaxMethod'] = empty($_GET['ajaxMethod']) ? '' : $_GET['ajaxMethod']; $_GET['command'] = empty($_GET['command']) ? '' : $_GET['command']; $_GET['queryType'] = empty($_GET['queryType']) ? 2 : $_GET['queryType']; $_GET['projectType'] = empty($_GET['projectType']) ? '' : $_GET['projectType']; extract($_GET, EXTR_IF_EXISTS); if (isset($_SERVER["HTTP_X_REQUESTED_WITH"]) && strtolower($_SERVER["HTTP_X_REQUESTED_WITH"]) == "xmlhttprequest") { } else { //漏洞数 $safevalReport = array(); $safevalReportChart = array(); if ($queryType == 1) { $safevalReport = EtcSafeVul::getSafeVulMonthlyReport($start_date, $end_date, $projectType); $sCount = count($safevalReport); if ($sCount > 0) { //$i=0; foreach ($safevalReport as $item) { $safevalReportChart["repdate"][] = $item['REP_DATE']; $safevalReportChart["num"][] = $item['NUM']; // $i++; } } else { $safevalReportChart["repdate"] = array(''); $safevalReportChart["num"] = array(0); } } else { if ($queryType == 2) { $safevalReport = EtcSafeVul::getSafeVulWeekReport($start_date, $end_date, $projectType);