Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aaPanel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
aaPanel
Commits
96f49529
Commit
96f49529
authored
Jun 26, 2019
by
jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some features
parent
57b3a571
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
1 deletion
+43
-1
firewall.html
BTPanel/templates/default/firewall.html
+43
-1
No files found.
BTPanel/templates/default/firewall.html
View file @
96f49529
...
...
@@ -101,6 +101,7 @@
<div
class=
"title c6 plr15"
>
<h3
class=
"f16"
>
{{data['lan']['H4']}}
</h3>
<a
class=
"btn btn-default btn-sm va0"
onclick=
"bt.firewall.clear_logs(function(){firewall.get_log_list()});"
>
{{data['lan']['BTN5']}}
</a>
<span
class=
"btn btn-default btn-sm"
style=
"position: absolute;right: 30px;margin-top: 10px;"
onclick=
"firewall.get_panel_error_logs()"
>
{{data['lan']['PANEL_LOG']}}
</span>
</div>
<div
class=
"divtable pd15"
>
<div
class=
"tablescroll"
>
...
...
@@ -288,6 +289,47 @@
data
:
rdata
.
data
})
})
},
//查看面板运行日志
get_panel_error_logs
:
function
()
{
layer
.
msg
(
lan
.
public
.
the_get
,
{
icon
:
16
,
time
:
0
,
shade
:
[
0.3
,
'
#000
'
]
});
$
.
post
(
'
/config?action=get_panel_error_logs
'
,
{},
function
(
rdata
)
{
layer
.
closeAll
();
if
(
!
rdata
.
status
)
{
layer
.
msg
(
rdata
.
msg
,
{
icon
:
2
});
return
;
};
layer
.
open
({
type
:
1
,
title
:
'
{{data["lan"]["PANEL_LOG"]}}
'
,
area
:
[
'
700px
'
,
'
490px
'
],
shadeClose
:
false
,
closeBtn
:
2
,
content
:
'
<div class="setchmod bt-form pb70">
'
+
'
<pre class="crontab-log" style="overflow: auto; border: 0px none; line-height:23px;padding: 15px; margin: 0px; white-space: pre-wrap; height: 405px; background-color: rgb(51,51,51);color:#f1f1f1;border-radius:0px;font-family:
\
"微软雅黑
\
"">
'
+
(
rdata
.
msg
==
''
?
'
{{data["lan"]["LOG_EMPTY"]}}
'
:
rdata
.
msg
)
+
'
</pre>
'
+
'
<div class="bt-form-submit-btn" style="margin-top: 0px;">
'
+
'
<button type="button" class="btn btn-danger btn-sm btn-title" style="margin-right:15px;" onclick="firewall.clean_panel_error_logs()">
'
+
lan
.
public
.
empty
+
'
</button>
'
+
'
<button type="button" class="btn btn-success btn-sm btn-title" onclick="layer.closeAll()">
'
+
lan
.
public
.
close
+
'
</button>
'
+
'
</div>
'
+
'
</div>
'
});
setTimeout
(
function
()
{
$
(
"
#crontab-log
"
).
text
(
rdata
.
msg
);
var
div
=
document
.
getElementsByClassName
(
'
crontab-log
'
)[
0
]
div
.
scrollTop
=
div
.
scrollHeight
;
},
200
)
}).
error
(
function
()
{
layer
.
closeAll
();
layer
.
msg
(
'
{{data["lan"]["UNABLE_RETRIEVE_LOG"]}}
'
,
{
icon
:
2
});
});
},
//清空面板错误日志
clean_panel_error_logs
:
function
()
{
layer
.
msg
(
lan
.
public
.
the_get
,
{
icon
:
16
,
time
:
0
,
shade
:
[
0.3
,
'
#000
'
]
});
$
.
post
(
'
/config?action=clean_panel_error_logs
'
,
{},
function
(
rdata
)
{
layer
.
closeAll
();
layer
.
msg
(
rdata
.
msg
,
{
icon
:
1
});
});
}
}
firewall
.
get_init
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment