]> git.mxchange.org Git - friendica.git/blobdiff - bin/auth_ejabberd.php
simplifying unittests (#5395)
[friendica.git] / bin / auth_ejabberd.php
index 10b9d874f1f1825b7a242c107728bd9d218df2ba..7ad28c96f5660c3c8da843c91c97b3b308404426 100755 (executable)
@@ -33,7 +33,6 @@
  */
 
 use Friendica\App;
-use Friendica\Core\Config;
 use Friendica\Util\ExAuth;
 
 if (sizeof($_SERVER["argv"]) == 0) {
@@ -55,10 +54,7 @@ require_once "include/dba.php";
 
 $a = new App(dirname(__DIR__));
 
-@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();
\ No newline at end of file
+if ($a->mode === App::MODE_NORMAL) {
+       $oAuth = new ExAuth();
+       $oAuth->readStdin();
+}
\ No newline at end of file