config.inc.php 1.1 KB

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