mirror of
https://github.com/friendica/friendica
synced 2025-04-07 17:20:14 +00:00
24 lines
480 B
PHP
24 lines
480 B
PHP
<?php
|
|
|
|
// Copyright (C) 2010-2024, the Friendica project
|
|
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
namespace Friendica\Module\Admin;
|
|
|
|
use Friendica\Core\System;
|
|
use Friendica\Module\BaseAdmin;
|
|
|
|
class PhpInfo extends BaseAdmin
|
|
{
|
|
protected function rawContent(array $request = [])
|
|
{
|
|
self::checkAdminAccess();
|
|
|
|
self::checkFormSecurityTokenForbiddenOnError('phpinfo', 't');
|
|
|
|
phpinfo();
|
|
System::exit();
|
|
}
|
|
}
|