diff options
Diffstat (limited to 'scripts/pingqueuehandler.php')
-rw-r--r-- | scripts/pingqueuehandler.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/pingqueuehandler.php b/scripts/pingqueuehandler.php index f57752cd2..84ef9be27 100644 --- a/scripts/pingqueuehandler.php +++ b/scripts/pingqueuehandler.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/ping.php'); require_once(INSTALLDIR . '/lib/queuehandler.php'); |