Permalink
Browse files

correct defaults for outputbits and sectionbits, cleanup config

  • Loading branch information...
1 parent e5c89e6 commit da320bb08e04e5a63bf37390dd7f2f9751c00185 @tommyrot committed Dec 27, 2012
Showing with 78 additions and 47 deletions.
  1. +1 −1 base.php
  2. +1 −1 html.php
  3. +76 −45 sss.conf
View
@@ -24,7 +24,7 @@
/**
* Default settings for this script, can be overridden in the config file. These should all appear in $settings_list[] along with their type.
*/
- protected $outputbits = 1;
+ protected $outputbits = 7;
/**
* Variables that shouldn't be tampered with.
View
@@ -38,7 +38,7 @@
private $maxrows_recenturls = 25;
private $minrows = 3;
private $rows_domains_tlds = 10;
- private $sectionbits = 127;
+ private $sectionbits = 255;
private $stylesheet = 'sss.css';
private $userstats = false;
View
@@ -1,51 +1,82 @@
+# ----------------------------------------
+# Configuration file for superseriousstats
+# ----------------------------------------
#
-# This file contains all of sss' settings along with their defaults.
-# All values must be placed between double quotes, even empty ones.
+# Options in this file must be specified in the format: name = "value"
#
-################################# REQUIRED ###################################
-
-channel = "" # Name of the IRC channel.
-timezone = "UTC" # Timezone the logs are in. Used for time offset
- # calculations and conversions.
- # See http://php.net/manual/en/timezones.php
-db_host = "127.0.0.1" # IP address or FQDN of the MySQL server.
-db_port = "3306" # Port the MySQL server is listening on.
+# Comments start with the number sign "#" anywhere on a line.
+# The commented-out settings shown in this file represent their default value.
+
+
+# ----------------------------------------
+# Required settings
+# ----------------------------------------
+
+# Name of the IRC channel for which stats are being made.
+channel = ""
+
+# The timezone which the logs are in. Used for time offset calculations and
+# conversions. See http://php.net/manual/en/timezones.php for valid values.
+#timezone = "UTC"
+
+# Database connection settings.
+#db_host = "127.0.0.1" # IP address or FQDN of the MySQL server.
+#db_port = "3306" # Port the MySQL server is listening on.
db_user = "" # MySQL user.
db_pass = "" # MySQL password.
-db_name = "sss" # Name of the MySQL database used for sss.
-parser = "" # The parser to use depending on logfile format.
- # e.g. "parser_irssi" or "parser_eggdrop"
-
-# This string contains the format of the date within a logfile filename.
-# Examples:
-# filename: #chatroom.20030131 dateformat: *.Ymd
-# filename: #chatroom.20030131 dateformat: \#c\h\atroo\m.Ymd
-# filename: chatroom.log-31012003 dateformat: *.*-dmY
-# filename: chatroom.log-31012003.gz dateformat: *.*-dmY.\g\z
-# filename: chatroom.log-31012003.gz dateformat: *.*-dmY.*
-# See http://php.net/date_create_from_format for more specific syntax options.
+#db_name = "sss" # Name of the MySQL database used for superseriousstats.
+
+# Logfile parser to use. Valid values are: "parser_eggdrop", "parser_hexchat",
+# "parser_irssi", "parser_limechat", "parser_mirc6", "parser_nodelog",
+# "parser_supybot", "parser_textual" and "parser_znc".
+parser = ""
+
+# This string contains the format of the date within a logfile filename. See
+# http://php.net/date_create_from_format for a complete list of format options.
+# Some examples:
+# filename: #superseriousstats.20120731 dateformat: *.Ymd
+# filename: #superseriousstats.log.20120731 dateformat: *.*.Ymd
+# filename: #superseriousstats-31072012.gz dateformat: *-dmY.*
+# filename: #superseriousstats31072012.gz dateformat: *dmY.*
+#
logfile_dateformat = ""
-################################# OPTIONAL ###################################
-cid = "" # Channel ID. Used to identify and load channel settings
- # from vars.php. When empty it defaults to channel.
-addhtml_head = "" # HTML file to include at the top of the statspage.
-addhtml_foot = "" # HTML file to include at the bottom of the statspage.
-stylesheet = "sss.css" # Filename of the CSS file used.
-history = "false" # Create links on the main statspage to history.php.
-userstats = "false" # Create links on the main statspage to user.php.
-autolinknicks = "true" # Automatically link nicks which are likely to belong
- # to the same user.
-wordtracking = "true" # Keep track of how many times each word is used.
- # Increases parse times in exchange for more stats.
+# ----------------------------------------
+# Optional settings
+# ----------------------------------------
+
+# Channel ID. Used to identify and load channel settings from vars.php. When
+# empty it defaults to the channel name.
+#cid = ""
+
+# HTML files to include at the top and/or bottom of the stats page.
+#addhtml_head = ""
+#addhtml_foot = ""
+
+# Filename of the CSS file used.
+#stylesheet = "sss.css"
+
+# Have superseriousstats create links on the main stats page to history.php
+# and/or user.php.
+# Enable (true) or disable (false).
+#history = "false"
+#userstats = "false"
+
+# Automatically link nicks which are likely to belong to the same user.
+# Enable (true) or disable (false).
+#autolinknicks = "true"
+
+# Keep track of how many times each word is used.
+# Enable (true) or disable (false).
+#wordtracking = "true"
# Add up the bits (numbers) of the message types you want to display.
# 1 Critical events
# 2 Warnings
# 4 Notices
# 8 Debug messages
-outputbits = "7" # 7 means: Critical + Warnings + Notices
+#outputbits = "7"
# Add up the bits (numbers) of the sections you want to show on the statspage.
# 1 Activity
@@ -56,15 +87,15 @@ outputbits = "7" # 7 means: Critical + Warnings + Notices
# 32 URLs
# 64 Words
# 128 Milestones
-sectionbits = "255" # 255 means: all of the above
+#sectionbits = "255"
# Settings to control how many rows will be displayed for various tables.
-minrows = "3" # Applies to generic tables.
-maxrows = "5" # Applies to generic tables.
-maxrows_people_alltime = "30" # Most Talkative People - Alltime
-maxrows_people2 = "10" # Less Talkative People - Alltime
-maxrows_people_year = "10" # Most Talkative People - Year
-maxrows_people_month = "10" # Most Talkative People - Month
-maxrows_people_timeofday = "10" # Most Talkative People by Time of Day
-rows_domains_tlds = "10" # Fixed amount of rows for Domains and TLDs
-maxrows_recenturls = "25" # Most Recent URLs
+#minrows = "3" # Applies to generic tables.
+#maxrows = "5" # Applies to generic tables.
+#maxrows_people_alltime = "30" # Most Talkative People - Alltime
+#maxrows_people2 = "10" # Less Talkative People - Alltime
+#maxrows_people_year = "10" # Most Talkative People - Year
+#maxrows_people_month = "10" # Most Talkative People - Month
+#maxrows_people_timeofday = "10" # Most Talkative People by Time of Day
+#rows_domains_tlds = "10" # Fixed amount of rows for Domains and TLDs
+#maxrows_recenturls = "25" # Most Recent URLs

0 comments on commit da320bb

Please sign in to comment.