]> git.mxchange.org Git - friendica.git/commitdiff
Removing unused "use"
authorMichael <heluecht@pirati.ca>
Tue, 2 Nov 2021 02:52:16 +0000 (02:52 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 2 Nov 2021 02:52:16 +0000 (02:52 +0000)
bin/auth_ejabberd.php
bin/console.php
bin/daemon.php
bin/testargs.php
bin/wait-for-connection
bin/worker.php

index 22087ed017479efd3c092da826ca95d04528e9f2..88e5d034cb34d86101bf0ebe3bd1fbe0c011c831 100755 (executable)
@@ -51,8 +51,6 @@
  *
  */
 
-use Friendica\Network\HTTPException\ForbiddenException;
-
 if (php_sapi_name() !== 'cli') {
        header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
        exit();
index 8305176157661a4dc5f5e345d95a97d9094a2dc8..35f0b5feefcf3820bfaca4739cca5eaee7e64e49 100755 (executable)
@@ -20,8 +20,6 @@
  *
  */
 
-use Friendica\Network\HTTPException\ForbiddenException;
-
 if (php_sapi_name() !== 'cli') {
        header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
        exit();
index 78eb74001d1726ae7bc5f56ef6b84d772f060772..7d4945fe0378771ce1e04406f5d2f6e78d1e3bfb 100755 (executable)
@@ -23,8 +23,6 @@
  * This script was taken from http://php.net/manual/en/function.pcntl-fork.php
  */
 
-use Friendica\Network\HTTPException\ForbiddenException;
-
 if (php_sapi_name() !== 'cli') {
        header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
        exit();
index dbfd05a13070c098cbbe9cf850794feb95672d5f..55197f63a3d2641dea57aa6db314b25270a7cd7c 100644 (file)
@@ -26,8 +26,6 @@
  *
  */
 
-use Friendica\Network\HTTPException\ForbiddenException;
-
 if (php_sapi_name() !== 'cli') {
        header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
        exit();
index 35560feb2a8ae8899a455593a67ef07758379153..f0fd8cc60fd9fc71692490e9c682edc40b523272 100755 (executable)
  * Usage: php bin/wait-for-connection {HOST} {PORT} [{TIMEOUT}]
  */
 
-use Friendica\Network\HTTPException\ForbiddenException;
-
 if (php_sapi_name() !== 'cli') {
-       throw new ForbiddenException();
+       header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
+       exit();
 }
 
 $timeout = 60;
index ad70bb176a2a4efd39a8a1b76b0e55a2af031052..2fe03cb4b215320abab1a78f00ea748ba9c57b75 100755 (executable)
@@ -21,8 +21,6 @@
  * Starts the background processing
  */
 
-use Friendica\Network\HTTPException\ForbiddenException;
-
 if (php_sapi_name() !== 'cli') {
        header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
        exit();