]> git.mxchange.org Git - friendica.git/blobdiff - bin/wait-for-connection
Update style.css
[friendica.git] / bin / wait-for-connection
index 35560feb2a8ae8899a455593a67ef07758379153..6b3dbc674bc8752f863140049d569ea50d61ee81 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/php
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
  * 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;