<?php
/**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
namespace Friendica\Module\Admin;
+use Friendica\Core\System;
use Friendica\Module\BaseAdmin;
class PhpInfo extends BaseAdmin
{
- public static function rawContent(array $parameters = [])
+ protected function rawContent(array $request = [])
{
- parent::rawContent($parameters);
+ self::checkAdminAccess();
phpinfo();
- exit();
+ System::exit();
}
}