[ Index ]
 

Code source de phpMyAdmin 2.10.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/ -> config.inc.php (source)

   1  <?php
   2  /**
   3   * Please, do not edit this file. The configuration file for Debian
   4   * is located in the /etc/phpmyadmin directory.
   5   */
   6  
   7  // Load secret generated on postinst
   8  include('/var/lib/phpmyadmin/blowfish_secret.inc.php');
   9  
  10  // Load autoconf local config
  11  include('/var/lib/phpmyadmin/config.inc.php');
  12  
  13  // Load user's local config
  14  include('/etc/phpmyadmin/config.inc.php');
  15  
  16  // Set the default server if there is no defined
  17  if (!isset($cfg['Servers'])) {
  18      $cfg['Servers'][1]['host'] = 'localhost';
  19  }
  20  
  21  // Set the default values for $cfg['Servers'] entries
  22  for ($i=1; (!empty($cfg['Servers'][$i]['host']) || (isset($cfg['Servers'][$i]['connect_type']) && $cfg['Servers'][$i]['connect_type'] == 'socket')); $i++) {
  23      if (!isset($cfg['Servers'][$i]['auth_type'])) {
  24          $cfg['Servers'][$i]['auth_type'] = 'cookie';
  25      }
  26      if (!isset($cfg['Servers'][$i]['host'])) {
  27          $cfg['Servers'][$i]['host'] = 'localhost';
  28      }
  29      if (!isset($cfg['Servers'][$i]['connect_type'])) {
  30          $cfg['Servers'][$i]['connect_type'] = 'tcp';
  31      }
  32      if (!isset($cfg['Servers'][$i]['compress'])) {
  33          $cfg['Servers'][$i]['compress'] = false;
  34      }
  35      if (!isset($cfg['Servers'][$i]['extension'])) {
  36          $cfg['Servers'][$i]['extension'] = 'mysql';
  37      }
  38  }
  39  


Généré le : Mon Nov 26 15:18:20 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics