mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 07:18:17 +02: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();
|
|
}
|
|
}
|