*/ require '../../include/init.inc.php'; $page_no = $start_date = $end_date = $ajaxMethod = $command = $projectType = $projectName = $vulType = $levelName = ""; $_GET['start_date'] = empty($_GET['start_date']) ? date("Y-m-d", time() - 86400 * 30) : $_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['projectType'] = empty($_GET['projectType']) ? '' : $_GET['projectType']; $_GET['projectName'] = empty($_GET['projectName']) ? '' : $_GET['projectName']; $_GET['vulType'] = empty($_GET['vulType']) ? '' : $_GET['vulType']; $_GET['levelName'] = empty($_GET['levelName']) ? '' : $_GET['levelName']; extract($_GET, EXTR_IF_EXISTS); if (isset($_SERVER["HTTP_X_REQUESTED_WITH"]) && strtolower($_SERVER["HTTP_X_REQUESTED_WITH"]) == "xmlhttprequest") { if ($ajaxMethod == 'showSafevalDetail') { $list = array(); $list = EtcSafeVul::getProjectSafeVulDetail($start_date, $end_date, $projectName); $res = array(); $res['list'] = $list; $res = json_encode($res); exit($res); } if ($ajaxMethod == 'showSafevalTypeDetail') { $list = array(); $list = EtcSafeVul::getSafeVulTypeDetail($start_date, $end_date, $projectType, $vulType); $res = array(); $res['list'] = $list; $res = json_encode($res); exit($res); } if ($ajaxMethod == 'showSafevalLevelDetail') { $list = array();