]> git.mxchange.org Git - friendica.git/blobdiff - bin/auth_ejabberd.php
Added description
[friendica.git] / bin / auth_ejabberd.php
index fd1b40cc848e0783a0c402735ec2fc1f3e3859d8..14ed7b0b2808b1f7bd2f1858aa7ff7654dd9b508 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/env php
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
  *
  */
 
-use Friendica\Network\HTTPException\ForbiddenException;
-
 if (php_sapi_name() !== 'cli') {
-       throw new ForbiddenException();
+       header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
+       exit();
 }
 
 use Dice\Dice;