/templates/wp-config.php

https://github.com/travisp/moonshine_wordpress · PHP · 82 lines · 19 code · 15 blank · 48 comment · 1 complexity · a0cd425a54e278b1b36e06f31eaf66ca 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. // ** MySQL settings - You can get this info from your web host ** //
  17. /** The name of the database for WordPress */
  18. define('DB_NAME', '<%= options[:db][:name] %>');
  19. /** MySQL database username */
  20. define('DB_USER', '<%= options[:db][:username] %>');
  21. /** MySQL database password */
  22. define('DB_PASSWORD', '<%= options[:db][:password] %>');
  23. /** MySQL hostname */
  24. define('DB_HOST', 'localhost');
  25. /** Database Charset to use in creating database tables. */
  26. define('DB_CHARSET', '<%= options[:db][:charset] || 'UTF8' %>');
  27. /** The Database Collate type. Don't change this if in doubt. */
  28. define('DB_COLLATE', '<%= options[:db][:collate] %>');
  29. /** Super Fast Caching. */
  30. define('WP_CACHE', '<%= options[:db][:cache] %>');
  31. /**#@+
  32. * Authentication Unique Keys.
  33. *
  34. * Change these to different unique phrases!
  35. * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/ WordPress.org secret-key service}
  36. *
  37. * @since 2.6.0
  38. */
  39. define('AUTH_KEY', '<%= options[:auth_key] || 'replace_with_your_key' %>');
  40. define('SECURE_AUTH_KEY', '<%= options[:secure_auth_key] || 'replace_with_your_secure_auth_key' %>');
  41. define('LOGGED_IN_KEY', '<%= options[:logged_in_key] || 'replace_with_your_logged_in_key' %>');
  42. define('NONCE_KEY', '<%= options[:nonce_key] || 'replace_with_your_nonce_key' %>');
  43. /**#@-*/
  44. /**
  45. * WordPress Database Table prefix.
  46. *
  47. * You can have multiple installations in one database if you give each a unique
  48. * prefix. Only numbers, letters, and underscores please!
  49. */
  50. $table_prefix = '<%= options[:table_prefix] || 'wp_' %>';
  51. /**
  52. * WordPress Localized Language, defaults to English.
  53. *
  54. * Change this to localize WordPress. A corresponding MO file for the chosen
  55. * language must be installed to wp-content/languages. For example, install
  56. * de.mo to wp-content/languages and set WPLANG to 'de' to enable German
  57. * language support.
  58. */
  59. define ('WPLANG', '<%= options[:wplang] %>');
  60. <%= options[:extra] %>
  61. /* That's all, stop editing! Happy blogging. */
  62. /** WordPress absolute path to the Wordpress directory. */
  63. if ( !defined('ABSPATH') )
  64. define('ABSPATH', dirname(__FILE__) . '/');
  65. /** Sets up WordPress vars and included files. */
  66. require_once(ABSPATH . 'wp-settings.php');
  67. ?>