]> git.mxchange.org Git - friendica.git/blobdiff - bin/wait-for-connection
Coding standards
[friendica.git] / bin / wait-for-connection
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;