config.inc.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. use PhpMyAdmin\Config\FormDisplayTemplate;
  9. use PhpMyAdmin\Core;
  10. use PhpMyAdmin\Setup\ConfigGenerator;
  11. if (!defined('PHPMYADMIN')) {
  12. exit;
  13. }
  14. echo '<h2>' , __('Configuration file') , '</h2>';
  15. echo FormDisplayTemplate::displayFormTop('config.php');
  16. echo '<input type="hidden" name="eol" value="'
  17. , htmlspecialchars(Core::ifSetOr($_GET['eol'], 'unix')) , '" />';
  18. echo FormDisplayTemplate::displayFieldsetTop('config.inc.php', '', null, array('class' => 'simple'));
  19. echo '<tr>';
  20. echo '<td>';
  21. echo '<textarea cols="50" rows="20" name="textconfig" '
  22. , 'id="textconfig" spellcheck="false">';
  23. echo htmlspecialchars(ConfigGenerator::getConfigFile($GLOBALS['ConfigFile']));
  24. echo '</textarea>';
  25. echo '</td>';
  26. echo '</tr>';
  27. echo '<tr>';
  28. echo '<td class="lastrow" style="text-align: left">';
  29. echo '<input type="submit" name="submit_download" value="'
  30. , __('Download') , '" class="green" />';
  31. echo '</td>';
  32. echo '</tr>';
  33. echo FormDisplayTemplate::displayFieldsetBottom(false);
  34. echo FormDisplayTemplate::displayFormBottom();