config.manyhosts.inc.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * This example configuration shows how to configure phpMyAdmin for
  4. * many hosts that all have identical configuration otherwise. To add
  5. * a new host, just drop it into $hosts below. Contributed by
  6. * Matthew Hawkins.
  7. */
  8. declare(strict_types=1);
  9. $i = 0;
  10. $hosts = [
  11. 'foo.example.com',
  12. 'bar.example.com',
  13. 'baz.example.com',
  14. 'quux.example.com',
  15. ];
  16. foreach ($hosts as $host) {
  17. $i++;
  18. $cfg['Servers'][$i]['host'] = $host;
  19. $cfg['Servers'][$i]['port'] = '';
  20. $cfg['Servers'][$i]['socket'] = '';
  21. $cfg['Servers'][$i]['compress'] = false;
  22. $cfg['Servers'][$i]['controluser'] = 'pma';
  23. $cfg['Servers'][$i]['controlpass'] = 'pmapass';
  24. $cfg['Servers'][$i]['auth_type'] = 'cookie';
  25. $cfg['Servers'][$i]['user'] = '';
  26. $cfg['Servers'][$i]['password'] = '';
  27. $cfg['Servers'][$i]['only_db'] = '';
  28. $cfg['Servers'][$i]['verbose'] = '';
  29. $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
  30. $cfg['Servers'][$i]['bookmarktable'] = 'pma__bookmark';
  31. $cfg['Servers'][$i]['relation'] = 'pma__relation';
  32. $cfg['Servers'][$i]['table_info'] = 'pma__table_info';
  33. $cfg['Servers'][$i]['table_coords'] = 'pma__table_coords';
  34. $cfg['Servers'][$i]['pdf_pages'] = 'pma__pdf_pages';
  35. $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
  36. $cfg['Servers'][$i]['history'] = 'pma__history';
  37. $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
  38. $cfg['Servers'][$i]['tracking'] = 'pma__tracking';
  39. $cfg['Servers'][$i]['userconfig'] = 'pma__userconfig';
  40. $cfg['Servers'][$i]['recent'] = 'pma__recent';
  41. $cfg['Servers'][$i]['users'] = 'pma__users';
  42. $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
  43. $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
  44. $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
  45. $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
  46. $cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
  47. $cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';
  48. }