diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-05-01 09:42:38 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-05-01 09:42:38 -0700 |
commit | b12e72ae312488caf7cb1e1a396eb05dd38326a9 (patch) | |
tree | d6fc83a33ffa3701d43a2306af9d6ab55b3b6eaf /plugins/Comet/CometPlugin.php | |
parent | 5affe093aba97a0e4ac559b685a240d568929ffb (diff) |
optionally add a username/password on server side for Comet
Diffstat (limited to 'plugins/Comet/CometPlugin.php')
-rw-r--r-- | plugins/Comet/CometPlugin.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/Comet/CometPlugin.php b/plugins/Comet/CometPlugin.php index 0f2fcd701..45251c66f 100644 --- a/plugins/Comet/CometPlugin.php +++ b/plugins/Comet/CometPlugin.php @@ -45,9 +45,11 @@ class CometPlugin extends Plugin { var $server = null; - function __construct($server=null) + function __construct($server=null, $username=null, $password=null) { - $this->server = $server; + $this->server = $server; + $this->username = $username; + $this->password = $password; parent::__construct(); } @@ -131,7 +133,7 @@ class CometPlugin extends Plugin $json = $this->noticeAsJson($notice); // Bayeux? Comet? Huh? These terms confuse me - $bay = new Bayeux($this->server); + $bay = new Bayeux($this->server, $this->user, $this->password); foreach ($timelines as $timeline) { $this->log(LOG_INFO, "Posting notice $notice->id to '$timeline'."); |