Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
ops
jumpserver
Commits
d84ff970
Commit
d84ff970
authored
Apr 20, 2015
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ƴbug
parent
8b50e525
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
8 deletions
+21
-8
require.txt
docs/require.txt
+12
-0
log_offline.html
templates/jlog/log_offline.html
+5
-4
log_online.html
templates/jlog/log_online.html
+4
-4
No files found.
docs/require.txt
0 → 100644
View file @
d84ff970
pexpect==3.3
sphinx-me==0.3
django==1.6
python-ldap==2.4.18
paramiko==1.15.1
pycrypto==2.6.1
ecdsa>=0.11
MySQL-python==1.2.5
readline
django-uuidfield
psutil
\ No newline at end of file
templates/jlog/log_offline.html
View file @
d84ff970
...
@@ -128,15 +128,16 @@
...
@@ -128,15 +128,16 @@
var
div_username
=
' 用户名: '
+
'<span class="text-info">'
+
username
+
''
+
'</span>'
;
var
div_username
=
' 用户名: '
+
'<span class="text-info">'
+
username
+
''
+
'</span>'
;
var
div_ip
=
' 主机: '
+
'<span class="text-info">'
+
ip
+
'</span>'
;
var
div_ip
=
' 主机: '
+
'<span class="text-info">'
+
ip
+
'</span>'
;
var
div_time
=
' 开始时间: '
+
'<span class="text-info">'
+
start_time
+
'</span>'
+
' 结束时间: '
+
'<span class="text-info">'
+
end_time
+
'</span'
var
div_time
=
' 开始时间: '
+
'<span class="text-info">'
+
start_time
+
'</span>'
+
' 结束时间: '
+
'<span class="text-info">'
+
end_time
+
'</span'
var
title
=
'JumpServer命令统计 '
+
div_username
+
div_ip
+
div_time
var
title
=
'JumpServer命令统计 '
+
div_username
+
div_ip
+
div_time
;
$
.
ajax
({
url
:
url
,
success
:
function
(
data
){
$
.
ajax
({
url
:
url
,
success
:
function
(
data
){
BootstrapDialog
.
show
({
title
:
title
,
message
:
data
});
var
tag
=
$
(
'<div style="height: 500px;overflow: auto;background-color: rgba(0, 0, 0, 0);"></div>'
).
html
(
data
.
replace
(
/
\n
/g
,
"<b r />"
));
BootstrapDialog
.
show
({
title
:
title
,
message
:
tag
[
0
]});
}});
}});
return
false
;
return
false
;
})
})
;
globalConfig
=
{
globalConfig
=
{
SOCKET_HOST
:
"{{ web_socket_host }}"
SOCKET_HOST
:
"{{ web_socket_host }}"
}
}
;
function
log_search
(){
function
log_search
(){
$
.
ajax
({
$
.
ajax
({
...
...
templates/jlog/log_online.html
View file @
d84ff970
...
@@ -136,11 +136,11 @@
...
@@ -136,11 +136,11 @@
BootstrapDialog
.
show
({
message
:
function
(){
BootstrapDialog
.
show
({
message
:
function
(){
var
option
,
exsit_message
;
var
option
,
exsit_message
;
var
escapeString
=
function
(
html
){
var
escapeString
=
function
(
html
){
var
elem
=
document
.
createElement
(
'div'
)
var
elem
=
document
.
createElement
(
'div'
)
;
var
txt
=
document
.
createTextNode
(
html
)
var
txt
=
document
.
createTextNode
(
html
)
;
elem
.
appendChild
(
txt
)
elem
.
appendChild
(
txt
)
;
return
elem
.
innerHTML
;
return
elem
.
innerHTML
;
}
}
;
var
tag
=
$
(
'<div id="log" style="height: 500px;overflow: auto;background-color: rgba(0, 0, 0, 0);"></div>'
);
var
tag
=
$
(
'<div id="log" style="height: 500px;overflow: auto;background-color: rgba(0, 0, 0, 0);"></div>'
);
//告诉服务器端有用户登录
//告诉服务器端有用户登录
socket
.
emit
(
'login'
,
{
userid
:
message
.
id
,
filename
:
message
.
filename
});
socket
.
emit
(
'login'
,
{
userid
:
message
.
id
,
filename
:
message
.
filename
});
...
...
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