forked from tommyrot/superseriousstats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMANUAL
54 lines (44 loc) · 2.2 KB
/
MANUAL
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
usage: php sss.php [-c <file>] [-i <file|directory>]
[-o <file> [-b <numbits>]] [-q]
php sss.php [-c <file>] [-e <file>] [-q]
php sss.php [-c <file>] [-n <file>] [-q]
php sss.php [-c <file>] [-s]
options:
-b <numbits>
Specifies which sections to display on the stats page. Add up
the bits corresponding to the sections you want to enable:
1 Activity
2 General Chat
4 Modes
8 Events
16 Smileys
32 URLs
64 Words
128 Milestones
This option overrides the value from the configuration file.
-c <file>
Read settings from <file>. By default "./sss.conf" is read.
-e <file>
Export all user relations from the database to <file>.
-i <file|directory>
Parse logfile <file>, or all logfiles in <directory>. Gzipped
logfiles with the ".gz" extension can be processed by the parser
if so desired. After the last logfile has been parsed database
maintenance will commence to verify, sort and index data.
-n <file>
Import user relations from <file> into the database. Existing
relationships will be unset prior to any updates made. It is
highly recommended to keep an export as backup. Nicks contained
in <file> are treated as case insensitive and nicks which don't
exist in the database will be ignored.
-o <file>
Generate statistics and output to <file>.
-q
Quiet mode. Output only errors.
-s
Export settings from the configuration file in the format
"vars.php" accepts them. See "vars.php" for details.
examples:
Parse all logfiles found in "/home/foo/bar/" and create a stats page
named "/var/www/foobar.html" containing only Activity and URLs data:
$ php sss.php -i /home/foo/bar/ -o /var/www/foobar.html -b 33