Changelog entry for patch #3313326
[phpmyadmin/ammaryasirr.git] / setup / frames / config.inc.php
blobe56898fa0c42ca359f8aa45bc015278eed93a7b0
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 if (!defined('PHPMYADMIN')) {
10 exit;
13 /**
14 * Core libraries.
16 require_once './libraries/config/FormDisplay.class.php';
17 require_once './setup/lib/index.lib.php';
18 require_once './setup/lib/ConfigGenerator.class.php';
20 $config_readable = false;
21 $config_writable = false;
22 $config_exists = false;
23 check_config_rw($config_readable, $config_writable, $config_exists);
25 <h2><?php echo __('Configuration file') ?></h2>
26 <?php display_form_top('config.php'); ?>
27 <input type="hidden" name="eol" value="<?php echo htmlspecialchars(PMA_ifSetOr($_GET['eol'], 'unix')) ?>" />
28 <?php display_fieldset_top('', '', null, array('class' => 'simple')); ?>
29 <tr>
30 <td>
31 <textarea cols="50" rows="20" name="textconfig" id="textconfig" spellcheck="false"><?php
32 echo htmlspecialchars(ConfigGenerator::getConfigFile())
33 ?></textarea>
34 </td>
35 </tr>
36 <tr>
37 <td class="lastrow" style="text-align: left">
38 <input type="submit" name="submit_download" value="<?php echo __('Download') ?>" class="green" />
39 <input type="submit" name="submit_save" value="<?php echo __('Save') ?>"<?php if (!$config_writable) echo ' disabled="disabled"' ?> />
40 </td>
41 </tr>
42 <?php
43 display_fieldset_bottom_simple();
44 display_form_bottom();