Upgraded phpmyadmin to 4.0.4 (All Languages) - No modifications yet
[openemr.git] / phpmyadmin / setup / frames / config.inc.php
blobc409c64756e733fe08725384c8522ce98033cb8f
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 PMA_displayFormTop('config.php'); ?>
27 <input type="hidden" name="eol" value="<?php echo htmlspecialchars(PMA_ifSetOr($_GET['eol'], 'unix')) ?>" />
28 <?php PMA_displayFieldsetTop('', '', 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
40 if (!$config_writable) {
41 echo ' disabled="disabled"';
42 } ?> />
43 </td>
44 </tr>
45 <?php
46 PMA_displayFieldsetBottomSimple();
47 PMA_displayFormBottom();