French update
[phpmyadmin/crack.git] / setup / frames / config.inc.php
blobd2cec90c83b62f25b5d4194ddb1aef658072e21c
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 require_once './setup/lib/FormDisplay.class.php';
16 require_once './setup/lib/index.lib.php';
18 $config_readable = false;
19 $config_writable = false;
20 $config_exists = false;
21 check_config_rw($config_readable, $config_writable, $config_exists);
23 <h2><?php echo $GLOBALS['strSetupConfigurationFile'] ?></h2>
24 <?php display_form_top('config.php?type=post'); ?>
25 <input type="hidden" name="eol" value="<?php echo htmlspecialchars(PMA_ifSetOr($_GET['eol'], 'unix')) ?>" />
26 <?php display_fieldset_top('', '', null, array('class' => 'simple')); ?>
27 <tr>
28 <td>
29 <textarea cols="50" rows="20" name="textconfig" id="textconfig" spellcheck="false"><?php
30 echo htmlspecialchars(ConfigFile::getInstance()->getConfigFile())
31 ?></textarea>
32 </td>
33 </tr>
34 <tr>
35 <td class="lastrow" style="text-align: left">
36 <input type="submit" name="submit_download" value="<?php echo $GLOBALS['strSetupDownload'] ?>" class="green" />
37 <input type="submit" name="submit_save" value="<?php echo $GLOBALS['strSave'] ?>"<?php if (!$config_writable) echo ' disabled="disabled"' ?> />
38 &nbsp; &nbsp;
39 <input type="reset" value="<?php echo $GLOBALS['strReset'] ?>" />
40 </td>
41 </tr>
42 <?php
43 display_fieldset_bottom_simple();
44 display_form_bottom();