Update website
This commit is contained in:
parent
0a686aeb9a
commit
c4ffa0f6ee
4360 changed files with 1727 additions and 718385 deletions
|
@ -1,40 +0,0 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Controllers\Setup;
|
||||
|
||||
use PhpMyAdmin\Setup\ConfigGenerator;
|
||||
|
||||
use function is_string;
|
||||
|
||||
class ConfigController extends AbstractController
|
||||
{
|
||||
/**
|
||||
* @param array $params Request parameters
|
||||
*
|
||||
* @return string HTML
|
||||
*/
|
||||
public function __invoke(array $params): string
|
||||
{
|
||||
$formset = isset($params['formset']) && is_string($params['formset']) ? $params['formset'] : '';
|
||||
$eol = isset($params['eol']) && $params['eol'] === 'win' ? 'win' : 'unix';
|
||||
|
||||
$pages = $this->getPages();
|
||||
|
||||
static $hasCheckPageRefresh = false;
|
||||
if (! $hasCheckPageRefresh) {
|
||||
$hasCheckPageRefresh = true;
|
||||
}
|
||||
|
||||
$config = ConfigGenerator::getConfigFile($this->config);
|
||||
|
||||
return $this->template->render('setup/config/index', [
|
||||
'formset' => $formset,
|
||||
'pages' => $pages,
|
||||
'eol' => $eol,
|
||||
'config' => $config,
|
||||
'has_check_page_refresh' => $hasCheckPageRefresh,
|
||||
]);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue