]> git.mxchange.org Git - friendica.git/blobdiff - bin/console.php
Remove relocation form from Admin Site settings
[friendica.git] / bin / console.php
index edfb8cd285f9c9f1194788c4994c4e5edd3170a8..3e588acd6dc99d16ff779ff149f4aa26c4625e4c 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;