iwla

iwla Git Source Tree

Root/plugins/display/track_users.py

1# -*- coding: utf-8 -*-
2#
3# Copyright Grégory Soutadé 2015
4
5# This file is part of iwla
6
7# iwla is free software: you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by
9# the Free Software Foundation, either version 3 of the License, or
10# (at your option) any later version.
11#
12# iwla is distributed in the hope that it will be useful,
13# but WITHOUT ANY WARRANTY; without even the implied warranty of
14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15# GNU General Public License for more details.
16#
17# You should have received a copy of the GNU General Public License
18# along with iwla. If not, see <http://www.gnu.org/licenses/>.
19#
20
21from iwla import IWLA
22from iplugin import IPlugin
23from display import *
24
25import awstats_data
26
27"""
28Display hook
29
30Track users
31
32Plugin requirements :
33 None
34
35Conf values needed :
36 tracked_ip
37 create_tracked_page*
38
39Output files :
40 OUTPUT_ROOT/year/month/index.html
41 OUTPUT_ROOT/year/month/tracked_users.html
42
43Statistics creation :
44 None
45
46Statistics update :
47 None
48
49Statistics deletion :
50 None
51"""
52
53class IWLADisplayTrackUsers(IPlugin):
54 def __init__(self, iwla):
55 super(IWLADisplayTrackUsers, self).__init__(iwla)
56 self.API_VERSION = 1
57
58 def load(self):
59 raise Exception('Track users is deprecated, use filter_users instead')
60
61 def hook(self):
62 pass

Archive Download this file

Branches

Tags