summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-09-16 17:08:13 -0400
committerEvan Prodromou <evan@prodromou.name>2008-09-16 17:08:13 -0400
commiteb4df223e6bb63c4a81e744c74b2f7fae335a8a0 (patch)
tree9dd6806d23898d5032f6f45d486f3ad1a6e1fc06
parent219927cb7924a33a4e73aabe78218c0dc22bfc0c (diff)
integrate local changes with Zach's
darcs-hash:20080916210813-84dde-c2cadb63b09f59ac6c76dc1205a56687de9483ce.gz
-rw-r--r--htaccess.sample5
-rw-r--r--lib/common.php8
-rwxr-xr-xscripts/xmppdaemon.php5
3 files changed, 11 insertions, 7 deletions
diff --git a/htaccess.sample b/htaccess.sample
index af7925b1d..ce380666e 100644
--- a/htaccess.sample
+++ b/htaccess.sample
@@ -35,8 +35,9 @@ RewriteRule ^main/recoverpassword$ index.php?action=recoverpassword [L,QSA]
RewriteRule ^main/recoverpassword/(.*)$ index.php?action=recoverpassword&code=$1 [L,QSA]
RewriteRule ^main/invite$ index.php?action=invite [L,QSA]
-RewriteRule ^settings/avatar$ index.php?action=avatar [L,QSA]
-RewriteRule ^settings/password$ index.php?action=password [L,QSA]
+RewriteRule ^main/favor$ index.php?action=favor [L,QSA]
+RewriteRule ^main/disfavor$ index.php?action=disfavor [L,QSA]
+
RewriteRule ^settings/profile$ index.php?action=profilesettings [L,QSA]
RewriteRule ^settings/openid$ index.php?action=openidsettings [L,QSA]
RewriteRule ^settings/im$ index.php?action=imsettings [L,QSA]
diff --git a/lib/common.php b/lib/common.php
index 8ea8fa0fa..71a75ff10 100644
--- a/lib/common.php
+++ b/lib/common.php
@@ -97,7 +97,13 @@ $config =
'daemon' =>
array('piddir' => '/var/run',
'user' => false,
- 'group' => false)
+ 'group' => false),
+ 'integration' =>
+ array('source' => 'Laconica'), # source attribute for Twitter
+ 'memcached' =>
+ array('enabled' => false,
+ 'server' => 'localhost',
+ 'port' => 11211)
);
$config['db'] = &PEAR::getStaticProperty('DB_DataObject','options');
diff --git a/scripts/xmppdaemon.php b/scripts/xmppdaemon.php
index d5f543b40..8c2e6c168 100755
--- a/scripts/xmppdaemon.php
+++ b/scripts/xmppdaemon.php
@@ -301,7 +301,4 @@ $resource = ($argc > 1) ? $argv[1] : (common_config('xmpp','resource') . '-liste
$daemon = new XMPPDaemon($resource);
-if ($daemon->connect()) {
- $daemon->set_status("Send me a message to post a notice");
- $daemon->handle();
-}
+$daemon->runOnce();