X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fauth_ejabberd.php;h=1f03b94af90017fb164221b2d6eab38a5d391aa9;hb=d9b558a8ede11be1c486d562dfe0495902b57e6e;hp=06d8488df84d82d64813deb2037b247bf5a0d2e1;hpb=27d94023eef0263a3ce9750f79a73ac941a25304;p=friendica.git diff --git a/bin/auth_ejabberd.php b/bin/auth_ejabberd.php old mode 100644 new mode 100755 index 06d8488df8..1f03b94af9 --- 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->getMode()->isNormal()) { + $oAuth = new ExAuth(); + $oAuth->readStdin(); +}