Initial commit

This commit is contained in:
Gregory Soutade 2014-11-19 08:01:12 +01:00
parent ac211e30ea
commit d2d37d9c90
5 changed files with 159 additions and 216 deletions

View File

@ -12,7 +12,7 @@ display_visitor_ip = True
# Hooks used # Hooks used
pre_analysis_hooks = ['page_to_hit', 'robots'] pre_analysis_hooks = ['page_to_hit', 'robots']
post_analysis_hooks = ['referers', 'top_pages', 'top_downloads', 'top_hits']#, 'reverse_dns'] post_analysis_hooks = ['referers', 'top_pages', 'top_downloads', 'top_hits']#, 'reverse_dns']
display_hooks = ['top_visitors', 'all_visits', 'referers', 'top_pages', 'top_downloads', 'top_hits', 'referers_diff'] display_hooks = ['top_visitors', 'all_visits', 'referers', 'top_pages', 'top_downloads', 'top_hits']
# Reverse DNS timeout # Reverse DNS timeout
reverse_dns_timeout = 0.2 reverse_dns_timeout = 0.2

View File

@ -175,6 +175,34 @@ iwla
None None
plugins.display.top_downloads
-----------------------------
Display hook
Create TOP downloads page
Plugin requirements :
post_analysis/top_downloads
Conf values needed :
max_downloads_displayed*
create_all_downloads_page*
Output files :
OUTPUT_ROOT/year/month/top_downloads.html
OUTPUT_ROOT/year/month/index.html
Statistics creation :
None
Statistics update :
None
Statistics deletion :
None
plugins.display.all_visits plugins.display.all_visits
-------------------------- --------------------------
@ -202,6 +230,34 @@ plugins.display.all_visits
None None
plugins.display.top_hits
------------------------
Display hook
Create TOP hits page
Plugin requirements :
post_analysis/top_hits
Conf values needed :
max_hits_displayed*
create_all_hits_page*
Output files :
OUTPUT_ROOT/year/month/top_hits.html
OUTPUT_ROOT/year/month/index.html
Statistics creation :
None
Statistics update :
None
Statistics deletion :
None
plugins.display.referers plugins.display.referers
------------------------ ------------------------
@ -233,50 +289,20 @@ plugins.display.referers
None None
plugins.display.top_downloads plugins.display.top_visitors
----------------------------- ----------------------------
Display hook Display hook
Create TOP downloads page Create TOP visitors block
Plugin requirements : Plugin requirements :
post_analysis/top_downloads None
Conf values needed : Conf values needed :
max_downloads_displayed* display_visitor_ip*
create_all_downloads_page*
Output files : Output files :
OUTPUT_ROOT/year/month/top_downloads.html
OUTPUT_ROOT/year/month/index.html
Statistics creation :
None
Statistics update :
None
Statistics deletion :
None
plugins.display.top_hits
------------------------
Display hook
Create TOP hits page
Plugin requirements :
post_analysis/top_hits
Conf values needed :
max_hits_displayed*
create_all_hits_page*
Output files :
OUTPUT_ROOT/year/month/top_hits.html
OUTPUT_ROOT/year/month/index.html OUTPUT_ROOT/year/month/index.html
Statistics creation : Statistics creation :
@ -317,41 +343,43 @@ plugins.display.top_pages
None None
plugins.display.top_visitors plugins.post_analysis.top_downloads
---------------------------- -----------------------------------
Display hook Post analysis hook
Create TOP visitors block Count TOP downloads
Plugin requirements : Plugin requirements :
None None
Conf values needed : Conf values needed :
display_visitor_ip* None
Output files : Output files :
OUTPUT_ROOT/year/month/index.html None
Statistics creation : Statistics creation :
None None
Statistics update : Statistics update :
None month_stats:
top_downloads =>
uri
Statistics deletion : Statistics deletion :
None None
plugins.display.referers_diff plugins.post_analysis.top_hits
----------------------------- ------------------------------
Display hook Post analysis hook
Enlight new and updated key phrases in in all_key_phrases.html Count TOP hits
Plugin requirements : Plugin requirements :
display/referers None
Conf values needed : Conf values needed :
None None
@ -363,7 +391,9 @@ plugins.display.referers_diff
None None
Statistics update : Statistics update :
None month_stats:
top_hits =>
uri
Statistics deletion : Statistics deletion :
None None
@ -435,62 +465,6 @@ plugins.post_analysis.reverse_dns
None None
plugins.post_analysis.top_downloads
-----------------------------------
Post analysis hook
Count TOP downloads
Plugin requirements :
None
Conf values needed :
None
Output files :
None
Statistics creation :
None
Statistics update :
month_stats:
top_downloads =>
uri
Statistics deletion :
None
plugins.post_analysis.top_hits
------------------------------
Post analysis hook
Count TOP hits
Plugin requirements :
None
Conf values needed :
None
Output files :
None
Statistics creation :
None
Statistics update :
month_stats:
top_hits =>
uri
Statistics deletion :
None
plugins.post_analysis.top_pages plugins.post_analysis.top_pages
------------------------------- -------------------------------

View File

@ -83,6 +83,34 @@ iwla
None None
plugins.display.top_downloads
-----------------------------
Display hook
Create TOP downloads page
Plugin requirements :
post_analysis/top_downloads
Conf values needed :
max_downloads_displayed*
create_all_downloads_page*
Output files :
OUTPUT_ROOT/year/month/top_downloads.html
OUTPUT_ROOT/year/month/index.html
Statistics creation :
None
Statistics update :
None
Statistics deletion :
None
plugins.display.all_visits plugins.display.all_visits
-------------------------- --------------------------
@ -110,6 +138,34 @@ plugins.display.all_visits
None None
plugins.display.top_hits
------------------------
Display hook
Create TOP hits page
Plugin requirements :
post_analysis/top_hits
Conf values needed :
max_hits_displayed*
create_all_hits_page*
Output files :
OUTPUT_ROOT/year/month/top_hits.html
OUTPUT_ROOT/year/month/index.html
Statistics creation :
None
Statistics update :
None
Statistics deletion :
None
plugins.display.referers plugins.display.referers
------------------------ ------------------------
@ -141,50 +197,20 @@ plugins.display.referers
None None
plugins.display.top_downloads plugins.display.top_visitors
----------------------------- ----------------------------
Display hook Display hook
Create TOP downloads page Create TOP visitors block
Plugin requirements : Plugin requirements :
post_analysis/top_downloads None
Conf values needed : Conf values needed :
max_downloads_displayed* display_visitor_ip*
create_all_downloads_page*
Output files : Output files :
OUTPUT_ROOT/year/month/top_downloads.html
OUTPUT_ROOT/year/month/index.html
Statistics creation :
None
Statistics update :
None
Statistics deletion :
None
plugins.display.top_hits
------------------------
Display hook
Create TOP hits page
Plugin requirements :
post_analysis/top_hits
Conf values needed :
max_hits_displayed*
create_all_hits_page*
Output files :
OUTPUT_ROOT/year/month/top_hits.html
OUTPUT_ROOT/year/month/index.html OUTPUT_ROOT/year/month/index.html
Statistics creation : Statistics creation :
@ -225,41 +251,43 @@ plugins.display.top_pages
None None
plugins.display.top_visitors plugins.post_analysis.top_downloads
---------------------------- -----------------------------------
Display hook Post analysis hook
Create TOP visitors block Count TOP downloads
Plugin requirements : Plugin requirements :
None None
Conf values needed : Conf values needed :
display_visitor_ip* None
Output files : Output files :
OUTPUT_ROOT/year/month/index.html None
Statistics creation : Statistics creation :
None None
Statistics update : Statistics update :
None month_stats:
top_downloads =>
uri
Statistics deletion : Statistics deletion :
None None
plugins.display.referers_diff plugins.post_analysis.top_hits
----------------------------- ------------------------------
Display hook Post analysis hook
Enlight new and updated key phrases in in all_key_phrases.html Count TOP hits
Plugin requirements : Plugin requirements :
display/referers None
Conf values needed : Conf values needed :
None None
@ -271,7 +299,9 @@ plugins.display.referers_diff
None None
Statistics update : Statistics update :
None month_stats:
top_hits =>
uri
Statistics deletion : Statistics deletion :
None None
@ -343,62 +373,6 @@ plugins.post_analysis.reverse_dns
None None
plugins.post_analysis.top_downloads
-----------------------------------
Post analysis hook
Count TOP downloads
Plugin requirements :
None
Conf values needed :
None
Output files :
None
Statistics creation :
None
Statistics update :
month_stats:
top_downloads =>
uri
Statistics deletion :
None
plugins.post_analysis.top_hits
------------------------------
Post analysis hook
Count TOP hits
Plugin requirements :
None
Conf values needed :
None
Output files :
None
Statistics creation :
None
Statistics update :
month_stats:
top_hits =>
uri
Statistics deletion :
None
plugins.post_analysis.top_pages plugins.post_analysis.top_pages
------------------------------- -------------------------------

View File

@ -190,14 +190,14 @@ class IWLADisplayReferers(IPlugin):
# All key phrases in a file # All key phrases in a file
if self.create_all_key_phrases: if self.create_all_key_phrases:
title = createCurTitle(self.iwla, u'All Key Phrases') title = createCurTitle(self.iwla, u'Key Phrases')
filename = 'key_phrases.html' filename = 'key_phrases.html'
path = self.iwla.getCurDisplayPath(filename) path = self.iwla.getCurDisplayPath(filename)
total_search = [0]*2 total_search = [0]*2
page = display.createPage(title, path, self.iwla.getConfValue('css_path', [])) page = display.createPage(title, path, self.iwla.getConfValue('css_path', []))
table = display.createBlock(DisplayHTMLBlockTable, self.iwla._(u'Key phrases'), [self.iwla._(u'Key phrase'), self.iwla._(u'Search')]) table = display.createBlock(DisplayHTMLBlockTable, self.iwla._(u'Top key phrases'), [self.iwla._(u'Key phrase'), self.iwla._(u'Search')])
table.setColsCSSClass(['', 'iwla_search']) table.setColsCSSClass(['', 'iwla_search'])
new_list = self.max_key_phrases and top_key_phrases[:self.max_key_phrases] or top_key_phrases new_list = self.max_key_phrases and top_key_phrases[:self.max_key_phrases] or top_key_phrases
for phrase in new_list: for phrase in new_list:

View File

@ -69,9 +69,6 @@ td:first-child
.iwla_weekend { background : #ECECEC; } .iwla_weekend { background : #ECECEC; }
.iwla_curday { font-weight: bold; } .iwla_curday { font-weight: bold; }
.iwla_others { color: #668; } .iwla_others { color: #668; }
.iwla_update { background : orange; }
.iwla_new { background : green }
.iwla_graph_table .iwla_graph_table
{ {
margin-left:auto; margin-left:auto;
@ -88,5 +85,3 @@ table.iwla_graph_table td
{ {
text-align:center; text-align:center;
} }
iframe {outline:none; border:0px; width:100%; height:500px; display:block;}