]> git.mxchange.org Git - friendica.git/blobdiff - bin/console.php
Merge pull request #10826 from nupplaphil/bug/run_xgettext
[friendica.git] / bin / console.php
index 27522d8554762bb0a607f21fb38d3020394cb0d4..0684f240e2113b8fe782f69f4ff536faeaf049e7 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/env php
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
  *
  */
 
+if (php_sapi_name() !== 'cli') {
+       header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
+       exit();
+}
+
 use Dice\Dice;
 use Psr\Log\LoggerInterface;