X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fauth_ejabberd.php;h=7ad28c96f5660c3c8da843c91c97b3b308404426;hb=2d0446bd38b8954247def42e70da735667cc2ed2;hp=06d8488df84d82d64813deb2037b247bf5a0d2e1;hpb=4d8d5ca6a58af9aa98cd7f6ca38da5176c621f0d;p=friendica.git diff --git a/bin/auth_ejabberd.php b/bin/auth_ejabberd.php old mode 100644 new mode 100755 index 06d8488df8..7ad28c96f5 --- a/bin/auth_ejabberd.php +++ b/bin/auth_ejabberd.php @@ -33,8 +33,6 @@ */ use Friendica\App; -use Friendica\BaseObject; -use Friendica\Core\Config; use Friendica\Util\ExAuth; if (sizeof($_SERVER["argv"]) == 0) { @@ -55,12 +53,8 @@ require_once "boot.php"; require_once "include/dba.php"; $a = new App(dirname(__DIR__)); -BaseObject::setApp($a); -@include ".htconfig.php"; -dba::connect($db_host, $db_user, $db_pass, $db_data); -unset($db_host, $db_user, $db_pass, $db_data); - -$oAuth = new ExAuth(); - -$oAuth->readStdin(); +if ($a->mode === App::MODE_NORMAL) { + $oAuth = new ExAuth(); + $oAuth->readStdin(); +} \ No newline at end of file