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