Translated using Weblate (Belarusian)
[phpmyadmin.git] / setup / frames / config.inc.php
blob783961f5b7092a8b47b6451f939b99f8c89c06d1
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Config file view and save screen
6 * @package PhpMyAdmin-Setup
7 */
9 use PMA\setup\lib\ConfigGenerator;
11 if (!defined('PHPMYADMIN')) {
12 exit;
15 /**
16 * Core libraries.
18 require_once './libraries/config/FormDisplay.tpl.php';
19 require_once './setup/lib/index.lib.php';
21 echo '<h2>' , __('Configuration file') , '</h2>';
23 echo PMA_displayFormTop('config.php');
24 echo '<input type="hidden" name="eol" value="'
25 , htmlspecialchars(PMA_ifSetOr($_GET['eol'], 'unix')) , '" />';
26 echo PMA_displayFieldsetTop('config.inc.php', '', null, array('class' => 'simple'));
27 echo '<tr>';
28 echo '<td>';
29 echo '<textarea cols="50" rows="20" name="textconfig" '
30 , 'id="textconfig" spellcheck="false">';
31 echo htmlspecialchars(ConfigGenerator::getConfigFile($GLOBALS['ConfigFile']));
32 echo '</textarea>';
33 echo '</td>';
34 echo '</tr>';
35 echo '<tr>';
36 echo '<td class="lastrow" style="text-align: left">';
37 echo '<input type="submit" name="submit_download" value="'
38 , __('Download') , '" class="green" />';
39 echo '</td>';
40 echo '</tr>';
42 echo PMA_displayFieldsetBottomSimple();
43 echo PMA_displayFormBottom();