X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=bin%2Fauth_ejabberd.php;h=bf6d069d12bb58f1507f9d9ee6e0c14763c6e08e;hb=73835118550f4bf9c0df510283c905f89224d612;hp=55917bf6d906e8cb7f55b9d7ca0f65a01bc4d825;hpb=3564daf24dd66c6eeba2ef86722a7c80b076e3fa;p=friendica.git diff --git a/bin/auth_ejabberd.php b/bin/auth_ejabberd.php index 55917bf6d9..bf6d069d12 100755 --- a/bin/auth_ejabberd.php +++ b/bin/auth_ejabberd.php @@ -32,7 +32,7 @@ * */ -use Friendica\App; +use Friendica\Factory; use Friendica\Util\ExAuth; if (sizeof($_SERVER["argv"]) == 0) { @@ -49,12 +49,11 @@ $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__)); +$a = Factory\DependencyFactory::setUp('auth_ejabbered', dirname(__DIR__)); -if (App\Mode::isNormal()) { +if ($a->getMode()->isNormal()) { $oAuth = new ExAuth(); $oAuth->readStdin(); -} \ No newline at end of file +}