]> git.mxchange.org Git - friendica.git/blobdiff - bin/testargs.php
Show month/halfyear usage
[friendica.git] / bin / testargs.php
index b7d7125f7a0fb6081ac0426b1d75449d376f4ae1..fd671828a8e28833c4d64af6b7b57d5bf7585cb5 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
  *
  */
 
+if (php_sapi_name() !== 'cli') {
+       header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
+       exit();
+}
 
 if (($_SERVER["argc"] > 1) && isset($_SERVER["argv"][1])) {
        echo $_SERVER["argv"][1];