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);
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');
'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
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',
'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');
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') {