Reverting some parts because wouldn't work

This commit is contained in:
Michael 2021-10-30 09:13:06 +00:00
parent 4236a9a105
commit ec5bd9a756
6 changed files with 10 additions and 6 deletions

View File

@ -54,7 +54,8 @@
use Friendica\Network\HTTPException\ForbiddenException;
if (php_sapi_name() !== 'cli') {
throw new ForbiddenException();
header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
exit();
}
use Dice\Dice;

View File

@ -23,7 +23,8 @@
use Friendica\Network\HTTPException\ForbiddenException;
if (php_sapi_name() !== 'cli') {
throw new ForbiddenException();
header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
exit();
}
use Dice\Dice;

View File

@ -26,7 +26,8 @@
use Friendica\Network\HTTPException\ForbiddenException;
if (php_sapi_name() !== 'cli') {
throw new ForbiddenException();
header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
exit();
}
use Dice\Dice;

View File

@ -29,7 +29,8 @@
use Friendica\Network\HTTPException\ForbiddenException;
if (php_sapi_name() !== 'cli') {
throw new ForbiddenException();
header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
exit();
}
if (($_SERVER["argc"] > 1) && isset($_SERVER["argv"][1])) {

View File

@ -24,7 +24,8 @@
use Friendica\Network\HTTPException\ForbiddenException;
if (php_sapi_name() !== 'cli') {
throw new ForbiddenException();
header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
exit();
}
use Dice\Dice;

View File

@ -30,7 +30,6 @@ use Friendica\Database\PostUpdate;
use Friendica\DI;
use Friendica\Model\User;
use Friendica\Network\HTTPException;
use Friendica\Network\HTTPException\ImATeapotException;
use Friendica\Protocol\ActivityPub;
/**