From a143b6466641901db0536794e51cbfba756c4afd Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 10 Dec 2008 12:47:22 -0500 Subject: edit throttling darcs-hash:20081210174722-84dde-4c79d7f73230d008195bd19738bc9a6017b940e9.gz --- lib/common.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib') 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), -- cgit v1.2.3-54-g00ecf