summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-12-10 12:47:22 -0500
committerEvan Prodromou <evan@prodromou.name>2008-12-10 12:47:22 -0500
commita143b6466641901db0536794e51cbfba756c4afd (patch)
tree7c0b8e98b0c5576e645603af257af6153322eae7 /lib
parent1c0a19b4570c99064bc2f43f824c62919711d29d (diff)
edit throttling
darcs-hash:20081210174722-84dde-4c79d7f73230d008195bd19738bc9a6017b940e9.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/common.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/common.php b/lib/common.php
index f7fcffc1c..8543b09c7 100644
--- a/lib/common.php
+++ b/lib/common.php
@@ -41,7 +41,7 @@ define_syslog_variables();
# append our extlib dir as the last-resort place to find libs
set_include_path(get_include_path() . PATH_SEPARATOR . INSTALLDIR . '/extlib/');
-
+
# global configuration object
require_once('PEAR.php');
@@ -92,6 +92,10 @@ $config =
'blacklist' => array()),
'theme' =>
array('server' => NULL),
+ 'throttle' =>
+ array('enabled' => false, // whether to throttle edits; false by default
+ 'count' => 20, // number of allowed messages in timespan
+ 'timespan' => 600), // timespan for throttling
'xmpp' =>
array('enabled' => false,
'server' => 'INVALID SERVER',
@@ -115,7 +119,7 @@ $config =
'group' => false),
'integration' =>
array('source' => 'Laconica'), # source attribute for Twitter
- 'memcached' =>
+ 'memcached' =>
array('enabled' => false,
'server' => 'localhost',
'port' => 11211),