From 986a32223177a759b0ef071822d227011ee1b3c7 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 7 Mar 2009 09:43:50 -0800 Subject: Limit duplicate notices in a particular time period (default 60s) We disallow posting a notice with duplicate content more than once a minute. Conflicts: config.php.sample --- config.php.sample | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config.php.sample') diff --git a/config.php.sample b/config.php.sample index a6cada77a..c2b27408c 100644 --- a/config.php.sample +++ b/config.php.sample @@ -159,3 +159,9 @@ $config['sphinx']['port'] = 3312; # Add Google Analytics # require_once('plugins/GoogleAnalyticsPlugin.php'); # $ga = new GoogleAnalyticsPlugin('your secret code'); + +#Don't allow saying the same thing more than once per hour +#$config['site']['dupelimit'] = 3600; +#Don't enforce the dupe limit +#$config['site']['dupelimit'] = -1; + -- cgit v1.2.3-54-g00ecf From 5caeeabfc266985c8ac2cc19a2143092f9e1b5fd Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Tue, 10 Mar 2009 16:24:46 -0700 Subject: Updated config.php.sample with example Tag URI configs --- config.php.sample | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config.php.sample') diff --git a/config.php.sample b/config.php.sample index c2b27408c..e9052bbf9 100644 --- a/config.php.sample +++ b/config.php.sample @@ -165,3 +165,9 @@ $config['sphinx']['port'] = 3312; #Don't enforce the dupe limit #$config['site']['dupelimit'] = -1; +#Base string for minting Tag URIs in Atom feeds. Defaults to +#"yourserver,2009". This needs to be configured properly for your Atom +#feeds to validate. See: http://www.faqs.org/rfcs/rfc4151.html and +#http://taguri.org/ Examples: +#$config['integration']['taguri'] = 'example.net,2008'; +#$config['integration']['taguri'] = 'admin@example.net,2009-03-09' -- cgit v1.2.3-54-g00ecf From 70d5fc46845804507640e354c9d9e06367a53fb0 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 11 Mar 2009 16:21:10 -0400 Subject: Document the site-logo configuration option The configuration option for site logo wasn't well documented, so I added it to the README file, config.php.sample, and common.php. --- README | 2 ++ config.php.sample | 3 +++ lib/common.php | 1 + 3 files changed, 6 insertions(+) (limited to 'config.php.sample') diff --git a/README b/README index 07957c09e..1c2cbe681 100644 --- a/README +++ b/README @@ -884,6 +884,8 @@ notice: A plain string that will appear on every page. A good place be escaped. dupelimit: Time in which it's not OK for the same person to post the same notice; default = 60 seconds. +logo: URL of an image file to use as the logo for the site. Overrides + the logo in the theme, if any. db -- diff --git a/config.php.sample b/config.php.sample index e9052bbf9..529e86f15 100644 --- a/config.php.sample +++ b/config.php.sample @@ -37,6 +37,9 @@ $config['site']['path'] = 'laconica'; # Enables extra log information, for example full details of PEAR DB errors #$config['site']['logdebug'] = true; +#To set your own logo, overriding the one in the theme +#$config['site']['logo'] = '/mylogo.png'; + # This is a PEAR DB DSN, see http://pear.php.net/manual/en/package.database.db.intro-dsn.php # Set it to match your actual database diff --git a/lib/common.php b/lib/common.php index c3d697aee..7739d9475 100644 --- a/lib/common.php +++ b/lib/common.php @@ -73,6 +73,7 @@ $config = 'theme' => 'default', 'path' => $_path, 'logfile' => null, + 'logo' => null, 'logdebug' => false, 'fancy' => false, 'locale_path' => INSTALLDIR.'/locale', -- cgit v1.2.3-54-g00ecf