Update website
This commit is contained in:
parent
bb4b0f9be8
commit
011b183e28
4263 changed files with 3014 additions and 720369 deletions
|
@ -1,34 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* phpinfo() wrapper to allow displaying only when configured to do so.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Controllers;
|
||||
|
||||
use function phpinfo;
|
||||
|
||||
use const INFO_CONFIGURATION;
|
||||
use const INFO_GENERAL;
|
||||
use const INFO_MODULES;
|
||||
|
||||
/**
|
||||
* phpinfo() wrapper to allow displaying only when configured to do so.
|
||||
*/
|
||||
class PhpInfoController extends AbstractController
|
||||
{
|
||||
public function __invoke(): void
|
||||
{
|
||||
global $cfg;
|
||||
|
||||
$this->response->disable();
|
||||
$this->response->getHeader()->sendHttpHeaders();
|
||||
|
||||
if (! $cfg['ShowPhpInfo']) {
|
||||
return;
|
||||
}
|
||||
|
||||
phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue