PageRenderTime 473ms CodeModel.GetById 221ms app.highlight 2ms RepoModel.GetById 179ms app.codeStats 0ms

/docs/examples/wordpress/wp-config.php

https://bitbucket.org/ianb/silverlining/
PHP | 76 lines | 16 code | 12 blank | 48 comment | 1 complexity | cd63478bdd117f96e5c336cc45515edc MD5 | raw file
 1<?php
 2/**
 3 * The base configurations of the WordPress.
 4 *
 5 * This file has the following configurations: MySQL settings, Table Prefix,
 6 * Secret Keys, WordPress Language, and ABSPATH. You can find more information by
 7 * visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
 8 * wp-config.php} Codex page. You can get the MySQL settings from your web host.
 9 *
10 * This file is used by the wp-config.php creation script during the
11 * installation. You don't have to use the web site, you can just copy this file
12 * to "wp-config.php" and fill in the values.
13 *
14 * @package WordPress
15 */
16
17// ** MySQL settings - You can get this info from your web host ** //
18/** The name of the database for WordPress */
19define('DB_NAME', $_SERVER['CONFIG_MYSQL_DBNAME']);
20
21/** MySQL database username */
22define('DB_USER', $_SERVER['CONFIG_MYSQL_USER']);
23
24/** MySQL database password */
25define('DB_PASSWORD', $_SERVER['CONFIG_MYSQL_PASSWORD']);
26
27/** MySQL hostname */
28define('DB_HOST', $_SERVER['CONFIG_MYSQL_HOST']);
29
30/** Database Charset to use in creating database tables. */
31define('DB_CHARSET', 'utf8');
32
33/** The Database Collate type. Don't change this if in doubt. */
34define('DB_COLLATE', '');
35
36/**#@+
37 * Authentication Unique Keys.
38 *
39 * Change these to different unique phrases!
40 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/ WordPress.org secret-key service}
41 * 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.
42 *
43 * @since 2.6.0
44 */
45define('AUTH_KEY', '1' . SILVER_SECRET);
46define('SECURE_AUTH_KEY', '2' . SILVER_SECRET);
47define('LOGGED_IN_KEY', '3' . SILVER_SECRET);
48define('NONCE_KEY', '4' . SILVER_SECRET);
49/**#@-*/
50
51/**
52 * WordPress Database Table prefix.
53 *
54 * You can have multiple installations in one database if you give each a unique
55 * prefix. Only numbers, letters, and underscores please!
56 */
57$table_prefix  = 'wp_';
58
59/**
60 * WordPress Localized Language, defaults to English.
61 *
62 * Change this to localize WordPress.  A corresponding MO file for the chosen
63 * language must be installed to wp-content/languages. For example, install
64 * de.mo to wp-content/languages and set WPLANG to 'de' to enable German
65 * language support.
66 */
67define ('WPLANG', '');
68
69/* That's all, stop editing! Happy blogging. */
70
71/** Absolute path to the WordPress directory. */
72if ( !defined('ABSPATH') )
73	define('ABSPATH', dirname(__FILE__) . '/');
74
75/** Sets up WordPress vars and included files. */
76require_once(ABSPATH . 'wp-settings.php');