summaryrefslogtreecommitdiff
path: root/scripts/xmppconfirmhandler.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-06-20 14:58:47 -0700
committerEvan Prodromou <evan@controlyourself.ca>2009-06-20 14:58:47 -0700
commit198afa0a1d61c4db2cf6b66e5801af506462ab9b (patch)
treed42ba4a5afae56af975ebddc784c93be820cbcdb /scripts/xmppconfirmhandler.php
parent45430d2b3b952dda31d232c2726e5980a7e6e56a (diff)
change scripts to take server and path from commandline
Diffstat (limited to 'scripts/xmppconfirmhandler.php')
-rwxr-xr-xscripts/xmppconfirmhandler.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/xmppconfirmhandler.php b/scripts/xmppconfirmhandler.php
index 7f39235fe..fee902320 100755
--- a/scripts/xmppconfirmhandler.php
+++ b/scripts/xmppconfirmhandler.php
@@ -27,6 +27,11 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
define('LACONICA', true);
+// Preset the server at the command line
+
+$server = ($argc > 2) ? $argv[2] : null;
+$path = ($argc > 3) ? $argv[3] : null;
+
require_once(INSTALLDIR . '/lib/common.php');
require_once(INSTALLDIR . '/lib/jabber.php');
require_once(INSTALLDIR . '/lib/xmppqueuehandler.php');
@@ -39,12 +44,12 @@ class XmppConfirmHandler extends XmppQueueHandler
{
var $_id = 'confirm';
-
+
function class_name()
{
return 'XmppConfirmHandler';
}
-
+
function run()
{
if (!$this->start()) {