config.inc.php 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <?php
  2. /**
  3. * Central phpPgAdmin configuration. As a user you may modify the
  4. * settings here for your particular configuration.
  5. *
  6. * $Id: config.inc.php-dist,v 1.55 2008/02/18 21:10:31 xzilla Exp $
  7. */
  8. // An example server. Create as many of these as you wish,
  9. // indexed from zero upwards.
  10. // Display name for the server on the login screen
  11. $conf['servers'][0]['desc'] = 'PostgreSQL';
  12. // Hostname or IP address for server. Use '' for UNIX domain socket.
  13. // use 'localhost' for TCP/IP connection on this computer
  14. $conf['servers'][0]['host'] = 'localhost';
  15. // Database port on server (5432 is the PostgreSQL default)
  16. $conf['servers'][0]['port'] = 5432;
  17. // Database SSL mode
  18. // Possible options: disable, allow, prefer, require
  19. // To require SSL on older servers use option: legacy
  20. // To ignore the SSL mode, use option: unspecified
  21. $conf['servers'][0]['sslmode'] = 'allow';
  22. // Change the default database only if you cannot connect to template1.
  23. // For a PostgreSQL 8.1+ server, you can set this to 'postgres'.
  24. $conf['servers'][0]['defaultdb'] = 'template1';
  25. // Specify the path to the database dump utilities for this server.
  26. // You can set these to '' if no dumper is available.
  27. $conf['servers'][0]['pg_dump_path'] = '/usr/bin/pg_dump';
  28. $conf['servers'][0]['pg_dumpall_path'] = '/usr/bin/pg_dumpall';
  29. // Slony (www.slony.info) support?
  30. $conf['servers'][0]['slony_support'] = false;
  31. // Specify the path to the Slony SQL scripts (where slony1_base.sql is located, etc.)
  32. // No trailing slash.
  33. $conf['servers'][0]['slony_sql'] = '/usr/share/pgsql';
  34. // Example for a second server (PostgreSQL for Windows)
  35. //$conf['servers'][1]['desc'] = 'Test Server';
  36. //$conf['servers'][1]['host'] = '127.0.0.1';
  37. //$conf['servers'][1]['port'] = 5432;
  38. //$conf['servers'][1]['sslmode'] = 'allow';
  39. //$conf['servers'][1]['defaultdb'] = 'template1';
  40. //$conf['servers'][1]['pg_dump_path'] = 'C:\\Program Files\\PostgreSQL\\8.0\\bin\\pg_dump.exe';
  41. //$conf['servers'][1]['pg_dumpall_path'] = 'C:\\Program Files\\PostgreSQL\\8.0\\bin\\pg_dumpall.exe';
  42. //$conf['servers'][1]['slony_support'] = false;
  43. //$conf['servers'][1]['slony_sql'] = 'C:\\Program Files\\PostgreSQL\\8.0\\share';
  44. // Example of groups definition.
  45. // Groups allow administrators to logicaly group servers together under group nodes in the left browser tree
  46. //
  47. // The group '0' description
  48. //$conf['srv_groups'][0]['desc'] = 'group one';
  49. //
  50. // Add here servers indexes belonging to the group '0' seperated by comma
  51. //$conf['srv_groups'][0]['servers'] = '0,1,2';
  52. //
  53. // A server can belong to multi groups
  54. //$conf['srv_groups'][1]['desc'] = 'group two';
  55. //$conf['srv_groups'][1]['servers'] = '3,1';
  56. // Default language. E.g.: 'english', 'polish', etc. See lang/ directory
  57. // for all possibilities. If you specify 'auto' (the default) it will use
  58. // your browser preference.
  59. $conf['default_lang'] = 'auto';
  60. // AutoComplete uses AJAX interaction to list foreign key values
  61. // on insert fields. It currently only works on single column
  62. // foreign keys. You can choose one of the following values:
  63. // 'default on' enables AutoComplete and turns it on by default.
  64. // 'default off' enables AutoComplete but turns it off by default.
  65. // 'disable' disables AutoComplete.
  66. $conf['autocomplete'] = 'default on';
  67. // If extra login security is true, then logins via phpPgAdmin with no
  68. // password or certain usernames (pgsql, postgres, root, administrator)
  69. // will be denied. Only set this false once you have read the FAQ and
  70. // understand how to change PostgreSQL's pg_hba.conf to enable
  71. // passworded local connections.
  72. $conf['extra_login_security'] = true;
  73. // Only show owned databases?
  74. // Note: This will simply hide other databases in the list - this does
  75. // not in any way prevent your users from seeing other database by
  76. // other means. (e.g. Run 'SELECT * FROM pg_database' in the SQL area.)
  77. $conf['owned_only'] = false;
  78. // Display comments on objects? Comments are a good way of documenting
  79. // a database, but they do take up space in the interface.
  80. $conf['show_comments'] = true;
  81. // Display "advanced" objects? Setting this to true will show
  82. // aggregates, types, operators, operator classes, conversions,
  83. // languages and casts in phpPgAdmin. These objects are rarely
  84. // administered and can clutter the interface.
  85. $conf['show_advanced'] = false;
  86. // Display "system" objects?
  87. $conf['show_system'] = false;
  88. // Display reports feature? For this feature to work, you must
  89. // install the reports database as explained in the INSTALL file.
  90. $conf['show_reports'] = true;
  91. // Database and table for reports
  92. $conf['reports_db'] = 'phppgadmin';
  93. $conf['reports_schema'] = 'public';
  94. $conf['reports_table'] = 'ppa_reports';
  95. // Only show owned reports?
  96. // Note: This does not prevent people from accessing other reports by
  97. // other means.
  98. $conf['owned_reports_only'] = false;
  99. // Minimum length users can set their password to.
  100. $conf['min_password_length'] = 1;
  101. // Width of the left frame in pixels (object browser)
  102. $conf['left_width'] = 200;
  103. // Which look & feel theme to use
  104. $conf['theme'] = 'default';
  105. // Show OIDs when browsing tables?
  106. $conf['show_oids'] = false;
  107. // Max rows to show on a page when browsing record sets
  108. $conf['max_rows'] = 30;
  109. // Max chars of each field to display by default in browse mode
  110. $conf['max_chars'] = 50;
  111. // Send XHTML strict headers?
  112. $conf['use_xhtml_strict'] = false;
  113. // Base URL for PostgreSQL documentation.
  114. // '%s', if present, will be replaced with the PostgreSQL version
  115. // (e.g. 8.4 )
  116. $conf['help_base'] = 'http://www.postgresql.org/docs/%s/interactive/';
  117. // Configuration for ajax scripts
  118. // Time in seconds. If set to 0, refreshing data using ajax will be disabled (locks and activity pages)
  119. $conf['ajax_refresh'] = 3;
  120. /*****************************************
  121. * Don't modify anything below this line *
  122. *****************************************/
  123. $conf['version'] = 19;
  124. ?>