]> git.mxchange.org Git - friendica.git/blobdiff - bin/auth_ejabberd.php
Adding more Logger entries in case of update process
[friendica.git] / bin / auth_ejabberd.php
index 901d4a4ceb68bb37873a9bd136ff4ab17ed17743..1f03b94af90017fb164221b2d6eab38a5d391aa9 100755 (executable)
@@ -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 "config/.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();
+}