Advertisement
Guest User

myphpadmin

a guest
Apr 30th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  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.  
  9. if (!defined('PHPMYADMIN')) {
  10. exit;
  11. }
  12.  
  13. /**
  14. * Core libraries.
  15. */
  16. require_once './libraries/config/FormDisplay.class.php';
  17. require_once './setup/lib/index.lib.php';
  18. require_once './setup/lib/ConfigGenerator.class.php';
  19.  
  20. $config_readable = false;
  21. $config_writable = false;
  22. $config_exists = false;
  23. check_config_rw($config_readable, $config_writable, $config_exists);
  24. ?>
  25. <h2><?php echo __('Configuration file') ?></h2>
  26. <?php display_form_top('config.php'); ?>
  27. <input type="hidden" name="eol" value="<?php echo htmlspecialchars(PMA_ifSetOr($_GET['eol'], 'unix')) ?>" />
  28. <?php display_fieldset_top('', '', 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 if (!$config_writable) echo ' disabled="disabled"' ?> />
  40. </td>
  41. </tr>
  42. <?php
  43. display_fieldset_bottom_simple();
  44. display_form_bottom();
  45. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement