[ Root ] [ Search ] [ Index ]

PHP Cross Reference of WordPress MU 2.9.2

Provided by Yoast

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. You can find more information by

  12   * visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing

  13   * wp-config.php} Codex page. You can get the MySQL settings from your web host.

  14   *

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

  16   * installation.

  17   *

  18   * @package WordPress

  19   */
  20  
  21  // ** MySQL settings - You can get this info from your web host ** //

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

  23  define('DB_NAME', 'wordpress');
  24  
  25  /** MySQL database username */

  26  define('DB_USER', 'username');
  27  
  28  /** MySQL database password */

  29  define('DB_PASSWORD', 'password');
  30  
  31  /** MySQL hostname */

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

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

  38  define('DB_COLLATE', '');
  39  define('VHOST', 'VHOSTSETTING'); 
  40  $base = 'BASE';
  41  define('DOMAIN_CURRENT_SITE', 'current_site_domain' );
  42  define('PATH_CURRENT_SITE', 'current_site_path' );
  43  define('SITE_ID_CURRENT_SITE', 1);
  44  define('BLOGID_CURRENT_SITE', '1' );
  45  
  46  /* Uncomment to allow blog admins to edit their users. See http://trac.mu.wordpress.org/ticket/1169 */

  47  //define( "EDIT_ANY_USER", true );

  48  /* Uncomment to enable post by email options. See http://trac.mu.wordpress.org/ticket/1084 */

  49  //define( "POST_BY_EMAIL", true );

  50  
  51  /**#@+

  52   * Authentication Unique Keys.

  53   *

  54   * Change these to different unique phrases!

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

  56   * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.

  57   *

  58   * @since 2.6.0

  59   */
  60  define('AUTH_KEY', 'put your unique phrase here');
  61  define('SECURE_AUTH_KEY', 'put your unique phrase here');
  62  define('LOGGED_IN_KEY', 'put your unique phrase here');
  63  define('NONCE_KEY', 'put your unique phrase here');
  64  define('AUTH_SALT', 'put your unique phrase here');
  65  define('LOGGED_IN_SALT', 'put your unique phrase here');
  66  define('SECURE_AUTH_SALT', 'put your unique phrase here');
  67  /**#@-*/

  68  
  69  /**

  70   * WordPress Database Table prefix.

  71   *

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

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

  74   */
  75  $table_prefix  = 'wp_';
  76  
  77  /**

  78   * WordPress Localized Language, defaults to English.

  79   *

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

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

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

  83   * language support.

  84   */
  85  define ('WPLANG', '');
  86  
  87  // double check $base

  88  if( $base == 'BASE' )
  89      die( 'Problem in wp-config.php - $base is set to BASE when it should be the path like "/" or "/blogs/"! Please fix it!' );
  90  
  91  // uncomment this to enable WP_CONTENT_DIR/sunrise.php support

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

  93  
  94  // uncomment to move wp-content/blogs.dir to another relative path

  95  // remember to change WP_CONTENT too.

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

  97  
  98  // 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)

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

 100  // Set this value to %siteurl% to redirect to the root of the site

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

 102  // On a directory based install you must use the theme 404 handler.

 103  
 104  // Location of mu-plugins

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

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

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

 108  
 109  define( "WP_USE_MULTIPLE_DB", false );
 110  
 111  /* That's all, stop editing! Happy blogging. */

 112  
 113  /** Absolute path to the WordPress directory. */

 114  if ( !defined('ABSPATH') )
 115      define('ABSPATH', dirname(__FILE__) . '/');
 116  
 117  /** Sets up WordPress vars and included files. */

 118  require_once (ABSPATH . 'wp-settings.php');


Generated: Mon May 3 12:25:32 2010 Cross-referenced by PHPXref 0.7