]> 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 e37e330eabb07153b2cfc5effdcb17c464766e2a..5a28c309133a54648024a246b85cb2689b65f9ea 100644 (file)
@@ -19,7 +19,7 @@
 
 if (!defined('LACONICA')) { exit(1); }
 
-define('LACONICA_VERSION', '0.5.0');
+define('LACONICA_VERSION', '0.6.4.1');
 
 define('AVATAR_PROFILE_SIZE', 96);
 define('AVATAR_STREAM_SIZE', 48);
@@ -27,13 +27,21 @@ define('AVATAR_MINI_SIZE', 24);
 define('MAX_AVATAR_SIZE', 256 * 1024);
 
 define('NOTICES_PER_PAGE', 20);
+define('PROFILES_PER_PAGE', 20);
+
+define('FOREIGN_NOTICE_SEND', 1);
+define('FOREIGN_NOTICE_RECV', 2);
+define('FOREIGN_NOTICE_SEND_REPLY', 4);
+
+define('FOREIGN_FRIEND_SEND', 1);
+define('FOREIGN_FRIEND_RECV', 2);
 
 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');
@@ -60,7 +68,9 @@ $config =
                          'broughtby' => NULL,
                          'timezone' => 'UTC',
                          'broughtbyurl' => NULL,
-                         'closed' => false),
+                         'closed' => false,
+                         'inviteonly' => false,
+              'private' => false),
                'syslog' =>
                array('appname' => 'laconica', # for syslog
                          'priority' => 'debug'), # XXX: currently ignored
@@ -74,13 +84,21 @@ $config =
                array('backend' => 'mail',
                          'params' => NULL),
                'nickname' =>
-               array('blacklist' => array()),
+               array('blacklist' => array(),
+                         'featured' => array()),
+               'profile' =>
+               array('banned' => array()),
                'avatar' =>
                array('server' => NULL),
                'public' =>
-               array('localonly' => true),
+               array('localonly' => true,
+                         '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',
@@ -92,18 +110,26 @@ $config =
                          'host' => NULL, # only set if != server
                          'debug' => false, # print extra debug info
                          'public' => array()), # JIDs of users who want to receive the public stream
+        'sphinx' =>
+        array('enabled' => false,
+              'server' => 'localhost',
+              '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)
+                         'port' => 11211),
+               'inboxes' =>
+               array('enabled' => true), # on by default for new sites
                );
 
 $config['db'] = &PEAR::getStaticProperty('DB_DataObject','options');
@@ -133,6 +159,9 @@ require_once(INSTALLDIR.'/lib/util.php');
 require_once(INSTALLDIR.'/lib/action.php');
 require_once(INSTALLDIR.'/lib/theme.php');
 require_once(INSTALLDIR.'/lib/mail.php');
+require_once(INSTALLDIR.'/lib/subs.php');
+require_once(INSTALLDIR.'/lib/Shorturl_api.php');
+require_once(INSTALLDIR.'/lib/twitter.php');
 
 function __autoload($class) {
        if ($class == 'OAuthRequest') {