]> git.mxchange.org Git - friendica.git/blobdiff - bin/auth_ejabberd.php
AutoInstall Test fix
[friendica.git] / bin / auth_ejabberd.php
index 10b9d874f1f1825b7a242c107728bd9d218df2ba..1f03b94af90017fb164221b2d6eab38a5d391aa9 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->getMode()->isNormal()) {
+       $oAuth = new ExAuth();
+       $oAuth->readStdin();
+}