Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

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