[ Index ]

PHP Cross Reference of Wordpress MU 2.7

title

Body

[close]

/ -> wp-config-sample.php (source)

   1  <?php
   2  /** 

   3   * The base configurations of the WordPress.

   4   *

   5   **************************************************************************

   6   * Do not try to create this file manually. Read the README.txt and run the 

   7   * web installer.

   8   **************************************************************************

   9   *

  10   * This file has the following configurations: MySQL settings, Table Prefix,

  11   * Secret Keys, WordPress Language, and ABSPATH. 

  12   *

  13   * This file is used by the wp-config.php creation script during the

  14   * installation.

  15   *

  16   * @package WordPress

  17   */
  18  
  19  // ** MySQL settings - You can get this info from your web host ** //

  20  /** The name of the database for WordPress */

  21  define('DB_NAME', 'wordpress');
  22  
  23  /** MySQL database username */

  24  define('DB_USER', 'username');
  25  
  26  /** MySQL database password */

  27  define('DB_PASSWORD', 'password');
  28  
  29  /** MySQL hostname */

  30  define('DB_HOST', 'localhost');
  31  
  32  /** Database Charset to use in creating database tables. */

  33  define('DB_CHARSET', 'utf8');
  34  
  35  /** The Database Collate type. Don't change this if in doubt. */

  36  define('DB_COLLATE', '');
  37  define('VHOST', 'VHOSTSETTING'); 
  38  $base = 'BASE';
  39  define('DOMAIN_CURRENT_SITE', 'current_site_domain' );
  40  define('PATH_CURRENT_SITE', 'current_site_path' );
  41  define('BLOGID_CURRENT_SITE', '1' );
  42  
  43  /**#@+

  44   * Authentication Unique Keys.

  45   *

  46   * Change these to different unique phrases!

  47   * You can generate these using the {@link http://api.wordpress.org/secret-key/1.1/ WordPress.org secret-key service}

  48   *

  49   * @since 2.6.0

  50   */
  51  define('AUTH_KEY', 'put your unique phrase here');
  52  define('SECURE_AUTH_KEY', 'put your unique phrase here');
  53  define('LOGGED_IN_KEY', 'put your unique phrase here');
  54  define('NONCE_KEY', 'put your unique phrase here');
  55  define('AUTH_SALT', 'put your unique phrase here');
  56  define('LOGGED_IN_SALT', 'put your unique phrase here');
  57  define('SECURE_AUTH_SALT', 'put your unique phrase here');
  58  /**#@-*/

  59  
  60  /**

  61   * WordPress Database Table prefix.

  62   *

  63   * You can have multiple installations in one database if you give each a unique

  64   * prefix. Only numbers, letters, and underscores please!

  65   */
  66  $table_prefix  = 'wp_';
  67  
  68  /**

  69   * WordPress Localized Language, defaults to English.

  70   *

  71   * Change this to localize WordPress.  A corresponding MO file for the chosen

  72   * language must be installed to wp-content/languages. For example, install

  73   * de.mo to wp-content/languages and set WPLANG to 'de' to enable German

  74   * language support.

  75   */
  76  define ('WPLANG', '');
  77  
  78  // double check $base

  79  if( $base == 'BASE' )
  80      die( 'Problem in wp-config.php - $base is set to BASE when it should be the path like "/" or "/blogs/"! Please fix it!' );
  81  
  82  // uncomment this to enable wp-content/sunrise.php support

  83  //define( 'SUNRISE', 'on' );

  84  
  85  // uncomment to move wp-content/blogs.dir to another relative path

  86  // remember to change WP_CONTENT too.

  87  // define( "UPLOADBLOGSDIR", "fileserver" );

  88  
  89  // If VHOST is 'yes' uncomment and set this to a URL to redirect if a blog does not exist or is a 404 on the main blog. (Useful if signup is disabled)

  90  // For example, the browser will redirect to http://examples.com/ for the following: define( 'NOBLOGREDIRECT', 'http://example.com/' );

  91  // define( 'NOBLOGREDIRECT', '' );

  92  // On a directory based install you can use the 404 handler.

  93  
  94  // Location of mu-plugins

  95  // define( 'WPMU_PLUGIN_DIR', '' );

  96  // define( 'WPMU_PLUGIN_URL', '' );

  97  // define( 'MUPLUGINDIR', 'wp-content/mu-plugins' );

  98  
  99  // Uncomment to disable the site admin bar

 100  //define( 'NOADMINBAR', 1 );

 101  
 102  define( "WP_USE_MULTIPLE_DB", false );
 103  
 104  /* That's all, stop editing! Happy blogging. */

 105  
 106  /** WordPress absolute path to the Wordpress directory. */

 107  if ( !defined('ABSPATH') )
 108      define('ABSPATH', dirname(__FILE__) . '/');
 109  
 110  /** Sets up WordPress vars and included files. */

 111  require_once (ABSPATH . 'wp-settings.php');
 112  ?>


Generated: Thu Mar 5 12:05:07 2009 Cross-referenced by PHPXref 0.7