X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fauth_ejabberd.php;h=a6f30d20193275192d808dc5a9f9190d7d5f5e9e;hb=21f9d8fcc9ad3db40a33cdd9a46cd6328824ef2a;hp=7ad28c96f5660c3c8da843c91c97b3b308404426;hpb=fd7179ee6cbc154af0db9d41114bc671deeba08c;p=friendica.git diff --git a/bin/auth_ejabberd.php b/bin/auth_ejabberd.php index 7ad28c96f5..a6f30d2019 100755 --- a/bin/auth_ejabberd.php +++ b/bin/auth_ejabberd.php @@ -34,6 +34,7 @@ use Friendica\App; use Friendica\Util\ExAuth; +use Friendica\Util\LoggerFactory; if (sizeof($_SERVER["argv"]) == 0) { die(); @@ -49,12 +50,13 @@ $directory = realpath($directory . DIRECTORY_SEPARATOR . ".."); chdir($directory); -require_once "boot.php"; -require_once "include/dba.php"; +require dirname(__DIR__) . '/vendor/autoload.php'; -$a = new App(dirname(__DIR__)); +$logger = LoggerFactory::create('auth_ejabberd'); -if ($a->mode === App::MODE_NORMAL) { +$a = new App(dirname(__DIR__), $logger); + +if ($a->getMode()->isNormal()) { $oAuth = new ExAuth(); $oAuth->readStdin(); -} \ No newline at end of file +}