iwla

iwla Commit Details

Date:2014-11-28 16:02:04 (6 years 7 months ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:1b4f9c0ad590199ba1486a1f7138f3b5b7488015
Parents: 3858127a6dbba4c27b5269d2b7ba0ade9d27658a
Message:Add First CSS

Changes:
Aresources/css/iwla.css (full)
Mdisplay.py (1 diff)
Miwla.py (3 diffs)
Mplugins/display/all_visits.py (1 diff)
Mplugins/display/top_visitors.py (1 diff)

File differences

display.py
169169
170170
171171
172
172173
173174
174175
f.write('<html>')
f.write('<head>')
f.write('<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />')
f.write('<link rel="stylesheet" href="iwla.css"/>')
if self.title:
f.write('<title>%s</title>' % (self.title))
f.write('</head>')
iwla.py
144144
145145
146146
147
148
147149
148150
149151
......
232234
233235
234236
235
237
236238
237239
238240
......
391393
392394
393395
394
396
397
395398
396399
397400
def _appendHit(self, hit):
remote_addr = hit['remote_addr']
if not remote_addr: return
if not remote_addr in self.current_analysis['visits'].keys():
self._createVisitor(hit)
return
page = DisplayHTMLPage(title, filename)
days = DisplayHTMLBlockTable('By day', ['Day', 'Visits', 'Pages', 'Hits', 'Bandwidth', 'Not viewed Bandwidth'])
days.setColsCSSClass(['', 'iwla_visit', 'iwla_page', 'iwla_hit', 'iwla_bandwith', 'iwla_bandwith'])
days.setColsCSSClass(['', 'iwla_visit', 'iwla_page', 'iwla_hit', 'iwla_bandwidth', 'iwla_bandwidth'])
keys = self.current_analysis['days_stats'].keys()
keys.sort()
nb_visits = 0
if not self._decodeHTTPRequest(hit): return False
for k in hit.keys():
if hit[k] == '-': hit[k] = ''
if hit[k] == '-' or hit[k] == '*':
hit[k] = ''
self._appendHit(hit)
plugins/display/all_visits.py
2222
2323
2424
25
25
2626
2727
2828
page = DisplayHTMLPage(title, path)
table = DisplayHTMLBlockTable('Last seen', ['Host', 'Pages', 'Hits', 'Bandwidth', 'Last seen'])
table.setColsCSSClass(['', 'iwla_page', 'iwla_hit', 'iwla_bandwith', ''])
table.setColsCSSClass(['', 'iwla_page', 'iwla_hit', 'iwla_bandwidth', ''])
for super_hit in last_access:
address = super_hit['remote_addr']
plugins/display/top_visitors.py
2121
2222
2323
24
24
2525
2626
2727
index = self.iwla.getDisplayIndex()
table = DisplayHTMLBlockTable('Top visitors', ['Host', 'Pages', 'Hits', 'Bandwidth', 'Last seen'])
table.setColsCSSClass(['', 'iwla_page', 'iwla_hit', 'iwla_bandwith', ''])
table.setColsCSSClass(['', 'iwla_page', 'iwla_hit', 'iwla_bandwidth', ''])
for super_hit in top_visitors:
address = super_hit['remote_addr']
if display_visitor_ip and\
resources/css/iwla.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
body
{
font: 11px verdana, arial, helvetica, sans-serif;
background-color: #FFFFFF;
}
.iwla_block
{
display:block;
margin: 2em;
}
.iwla_block_title {
font: 13px verdana, arial, helvetica, sans-serif;
font-weight: bold;
background-color: #CCCCDD;
text-align: center;
color: #000000;
width: 60%;
}
.iwla_block_title > a
{
font: 11px verdana, arial, helvetica, sans-serif;
font-weight: normal;
text-decoration: none;
}
.iwla_block_value
{
border-width : 0.2em;
border-color : #CCCCDD;
border-style : solid;
}
/* .iwla_block_value table tr th */
th
{
padding : 0.5em;
background : #ECECEC;
font-weight: normal;
white-space: nowrap;
}
td
{
text-align:center;
vertical-align:middle;
}
td:first-child
{
text-align:left;
/* width : 100%; */
}
.iwla_visitor { background : #FFAA66; }
.iwla_visit { background : #F4F090; }
.iwla_page { background : #4477DD; }
.iwla_hit { background : #66DDEE; }
.iwla_bandwidth { background : #2EA495; }
.iwla_search { background : #F4F090; }

Archive Download the corresponding diff file

Branches

Tags