/wp-config.php

https://github.com/jevs/ahmal · PHP · 92 lines · 29 code · 11 blank · 52 comment · 5 complexity · 207d24e6cec676d03c6888143ac7d713 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
  7. * by 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. // ** MySQL settings - You can get this info from your web host ** //
  17. /** The name of the database for WordPress */
  18. if (isset($_SERVER['ENVIRONMENT']) && $_SERVER['ENVIRONMENT'] == 'PAGODA') {
  19. define('DB_NAME', $_SERVER['DB_NAME']);
  20. define('DB_USER', $_SERVER['DB_USER']);
  21. define('DB_PASSWORD', $_SERVER['DB_PASSWORD']);
  22. define('DB_HOST', $_SERVER['DB_HOST']);
  23. }
  24. else {
  25. define('DB_NAME', 'yourlocaldb');
  26. define('DB_USER', 'root');
  27. define('DB_PASSWORD', 'root');
  28. define('DB_HOST', 'localhost');
  29. }
  30. /** Database Charset to use in creating database tables. */
  31. define('DB_CHARSET', 'utf8');
  32. /** The Database Collate type. Don't change this if in doubt. */
  33. define('DB_COLLATE', '');
  34. /**#@+
  35. * Authentication Unique Keys and Salts.
  36. *
  37. * Change these to different unique phrases!
  38. * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
  39. * 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.
  40. *
  41. * @since 2.6.0
  42. */
  43. define('AUTH_KEY', 'put your unique phrase here');
  44. define('SECURE_AUTH_KEY', 'put your unique phrase here');
  45. define('LOGGED_IN_KEY', 'put your unique phrase here');
  46. define('NONCE_KEY', 'put your unique phrase here');
  47. define('AUTH_SALT', 'put your unique phrase here');
  48. define('SECURE_AUTH_SALT', 'put your unique phrase here');
  49. define('LOGGED_IN_SALT', 'put your unique phrase here');
  50. define('NONCE_SALT', 'put your unique phrase here');
  51. /**#@-*/
  52. /**
  53. * WordPress Database Table prefix.
  54. *
  55. * You can have multiple installations in one database if you give each a unique
  56. * prefix. Only numbers, letters, and underscores please!
  57. */
  58. $table_prefix = 'wp_';
  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_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
  65. * language support.
  66. */
  67. define('WPLANG', '');
  68. /**
  69. * For developers: WordPress debugging mode.
  70. *
  71. * Change this to true to enable the display of notices during development.
  72. * It is strongly recommended that plugin and theme developers use WP_DEBUG
  73. * in their development environments.
  74. */
  75. define('WP_DEBUG', false);
  76. /* That's all, stop editing! Happy blogging. */
  77. /** Absolute path to the WordPress directory. */
  78. if ( !defined('ABSPATH') )
  79. define('ABSPATH', dirname(__FILE__) . '/');
  80. /** Sets up WordPress vars and included files. */
  81. require_once(ABSPATH . 'wp-settings.php');