]> git.mxchange.org Git - friendica.git/blobdiff - bin/auth_ejabberd.php
[frio] Fix help TOC display
[friendica.git] / bin / auth_ejabberd.php
index 55917bf6d906e8cb7f55b9d7ca0f65a01bc4d825..a6f30d20193275192d808dc5a9f9190d7d5f5e9e 100755 (executable)
@@ -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 (App\Mode::isNormal()) {
+$a = new App(dirname(__DIR__), $logger);
+
+if ($a->getMode()->isNormal()) {
        $oAuth = new ExAuth();
        $oAuth->readStdin();
-}
\ No newline at end of file
+}