mirror of https://github.com/midoks/mdserver-web
pull/109/head
parent
3c567ffea0
commit
e275c4a937
Before Width: | Height: | Size: 344 B |
@ -1,17 +0,0 @@ |
||||
<div class="bt-form"> |
||||
<div class="bt-w-main"> |
||||
<div class="bt-w-menu"> |
||||
<p class="bgw" onclick="pluginService('op_firewall');">服务</p> |
||||
<p onclick="pluginConfig('op_firewall');">配置设置</p> |
||||
</div> |
||||
<div class="bt-w-con pd15"> |
||||
<div class="soft-man-con"></div> |
||||
</div> |
||||
</div> |
||||
|
||||
</div> |
||||
<script type="text/javascript"> |
||||
$.getScript( "/plugins/file?name=openrop_firewallesty&f=js/op_firewall.js", function(){ |
||||
pluginService('op_firewall'); |
||||
}); |
||||
</script> |
After Width: | Height: | Size: 2.4 KiB |
@ -0,0 +1,17 @@ |
||||
<div class="bt-form"> |
||||
<div class="bt-w-main"> |
||||
<div class="bt-w-menu"> |
||||
<p class="bgw" onclick="pluginService('op_waf');">服务</p> |
||||
<p onclick="pluginConfig('op_waf');">信息</p> |
||||
</div> |
||||
<div class="bt-w-con pd15"> |
||||
<div class="soft-man-con"></div> |
||||
</div> |
||||
</div> |
||||
|
||||
</div> |
||||
<script type="text/javascript"> |
||||
$.getScript( "/plugins/file?name=openrop_firewallesty&f=js/op_waf.js", function(){ |
||||
pluginService('op_waf'); |
||||
}); |
||||
</script> |
@ -1,12 +1,12 @@ |
||||
{ |
||||
"title":"OP防火墙[dev]", |
||||
"tip":"soft", |
||||
"name":"op_firewall", |
||||
"name":"op_waf", |
||||
"type":"其他插件", |
||||
"ps":"有效防止sql注入/xss/一句话木马等常见渗透攻击", |
||||
"shell":"install.sh", |
||||
"checks":"server/op_firewall", |
||||
"path":"server/op_firewall", |
||||
"checks":"server/op_waf", |
||||
"path":"server/op_waf", |
||||
"author":"loveshell", |
||||
"home":"https://github.com/loveshell/ngx_lua_waf", |
||||
"date":"2019-04-21", |
@ -0,0 +1,16 @@ |
||||
|
||||
function owPost(method, args, callback){ |
||||
var loadT = layer.msg('正在获取...', { icon: 16, time: 0, shade: 0.3 }); |
||||
$.post('/plugins/run', {name:'op_waf', func:method, args:JSON.stringify(args)}, function(data) { |
||||
layer.close(loadT); |
||||
if (!data.status){ |
||||
layer.msg(data.msg,{icon:0,time:2000,shade: [0.3, '#000']}); |
||||
return; |
||||
} |
||||
|
||||
if(typeof(callback) == 'function'){ |
||||
callback(data); |
||||
} |
||||
},'json');
|
||||
} |
||||
|
Loading…
Reference in new issue