3.3.7-rc1 release
[phpmyadmin/madhuracj.git] / setup / frames / config.inc.php
blobcb4a9b43e0532be9a57ef8c42f32219fc8f9863f
1 <?php
2 /**
3 * Config file view and save screen
5 * @package phpMyAdmin-setup
6 * @author Piotr Przybylski <piotrprz@gmail.com>
7 * @license http://www.gnu.org/licenses/gpl.html GNU GPL 2.0
8 * @version $Id$
9 */
11 if (!defined('PHPMYADMIN')) {
12 exit;
15 /**
16 * Core libraries.
18 require_once './setup/lib/FormDisplay.class.php';
19 require_once './setup/lib/index.lib.php';
21 $config_readable = false;
22 $config_writable = false;
23 $config_exists = false;
24 check_config_rw($config_readable, $config_writable, $config_exists);
26 <h2><?php echo $GLOBALS['strSetupConfigurationFile'] ?></h2>
27 <?php display_form_top('config.php'); ?>
28 <input type="hidden" name="eol" value="<?php echo htmlspecialchars(PMA_ifSetOr($_GET['eol'], 'unix')) ?>" />
29 <?php display_fieldset_top('', '', null, array('class' => 'simple')); ?>
30 <tr>
31 <td>
32 <textarea cols="50" rows="20" name="textconfig" id="textconfig" spellcheck="false"><?php
33 echo htmlspecialchars(ConfigFile::getInstance()->getConfigFile())
34 ?></textarea>
35 </td>
36 </tr>
37 <tr>
38 <td class="lastrow" style="text-align: left">
39 <input type="submit" name="submit_download" value="<?php echo $GLOBALS['strSetupDownload'] ?>" class="green" />
40 <input type="submit" name="submit_save" value="<?php echo $GLOBALS['strSave'] ?>"<?php if (!$config_writable) echo ' disabled="disabled"' ?> />
41 </td>
42 </tr>
43 <?php
44 display_fieldset_bottom_simple();
45 display_form_bottom();