[新增] 审核后台单个漏洞报告导出 [新增] 审核后台全部漏洞报告导出为报表 [修复] Ueditor上传路径错误导致的文件上传失败问题 [修复] 用户个人中心礼品无法兑换的问题 [修复] 前台安全应急响应中心名称动态不显示的问题 [修复] 跳转页面LOGO不显示的问题
69 lines
1.6 KiB
PHP
69 lines
1.6 KiB
PHP
<?php
|
|
namespace Admin\Controller;
|
|
use Think\Controller;
|
|
|
|
/**
|
|
* @Author: Zhou Yuyang <1009465756@qq.com> 10:28 2017/02/02
|
|
* @Copyright 2015-2020 SISMO
|
|
* @Project homepage https://github.com/CNSISMO
|
|
* @Version 2.0
|
|
*/
|
|
|
|
|
|
class CheckController extends Controller
|
|
{
|
|
/**
|
|
* 导出漏洞报告
|
|
*/
|
|
public function view(){
|
|
$id = I('get.session_id');
|
|
$model = M('post')->where('visible=1')->where(array('session'=>$id))->find();
|
|
$arr['id']= $model['id'];
|
|
$arr['title']= $model['title'];
|
|
$arr['content']= $model['content'];
|
|
$arr['advise']= $model['advise'];
|
|
$arr['time']= $model['time'];
|
|
$arr['type']= $model['type'];
|
|
$this->ajaxReturn ($arr,'JSON');
|
|
}
|
|
|
|
/**
|
|
* 临时查看漏洞报告
|
|
|
|
public function view(){
|
|
$id = I('get.session_id',0,'number_int'); //seesion token防注入
|
|
$model = M('post')->where('session='.$id)->find();
|
|
$flow = M('wflow')->where('session='.$id)->select();
|
|
$this->assign('wflow',$flow);
|
|
$this->assign('model',$model);
|
|
$this->display();
|
|
}
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
* 添加漏洞处理进展
|
|
public function add()
|
|
{
|
|
//默认显示添加表单
|
|
if (!IS_POST) {
|
|
$this->display();
|
|
}
|
|
if (IS_POST) {
|
|
$model = D("wflow");
|
|
if (!$model->create()) {
|
|
$this->error($model->getError());
|
|
exit();
|
|
} else {
|
|
if ($model->add()) {
|
|
$this->success("添加成功", U('post/index'));
|
|
} else {
|
|
$this->error("添加失败", U('post/index'));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
*/
|
|
}
|