*/
use Friendica\App;
-use Friendica\Core\Config;
use Friendica\Util\ExAuth;
if (sizeof($_SERVER["argv"]) == 0) {
$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