]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/common.php
bring lib/noticelist.php into line with PEAR code standards
[quix0rs-gnu-social.git] / lib / common.php
index e710ce4842dbd005dab62ae1c2942198281fbd12..5a28c309133a54648024a246b85cb2689b65f9ea 100644 (file)
@@ -19,7 +19,7 @@
 
 if (!defined('LACONICA')) { exit(1); }
 
-define('LACONICA_VERSION', '0.6.2');
+define('LACONICA_VERSION', '0.6.4.1');
 
 define('AVATAR_PROFILE_SIZE', 96);
 define('AVATAR_STREAM_SIZE', 48);
@@ -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');
@@ -69,7 +69,8 @@ $config =
                          'timezone' => 'UTC',
                          'broughtbyurl' => NULL,
                          'closed' => false,
-                         'inviteonly' => false),
+                         'inviteonly' => false,
+              'private' => false),
                'syslog' =>
                array('appname' => 'laconica', # for syslog
                          'priority' => 'debug'), # XXX: currently ignored
@@ -85,6 +86,8 @@ $config =
                'nickname' =>
                array('blacklist' => array(),
                          'featured' => array()),
+               'profile' =>
+               array('banned' => array()),
                'avatar' =>
                array('server' => NULL),
                'public' =>
@@ -92,6 +95,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',
@@ -109,13 +116,15 @@ $config =
               'port' => 3312),
                'tag' =>
                array('dropoff' => 864000.0),
+               'popular' =>
+               array('dropoff' => 864000.0),
                'daemon' =>
                array('piddir' => '/var/run',
                          'user' => false,
                          'group' => false),
                'integration' =>
                array('source' => 'Laconica'), # source attribute for Twitter
-               'memcached' => 
+               'memcached' =>
                array('enabled' => false,
                          'server' => 'localhost',
                          'port' => 11211),