Advertisement
le_9k

application.php

Feb 19th, 2018
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.99 KB | None | 0 0
  1. <?php
  2.  
  3. //This file pulls in data for WP and is included in the wp-config.php file within help-advice
  4.  
  5. /*
  6. * Base paths
  7. */
  8. define('APP_ROOT_DIR', dirname(__DIR__));
  9.  
  10. // $dotenv = new Dotenv\Dotenv(APP_ROOT_DIR);
  11. // $dotenv->load();
  12. // this one above works but causes this file to run twice causing errors, the one below errors
  13. // if (file_exists(APP_ROOT_DIR . '/.env')) {
  14. // Dotenv\Dotenv::load(APP_ROOT_DIR);
  15. // }
  16.  
  17. define('APP_PUBLIC_DIR', APP_ROOT_DIR . '/public/help-advice');
  18. define('APP_STORAGE_DIR', APP_ROOT_DIR . '/storage');
  19. define('APP_LOG_DIR', APP_STORAGE_DIR . '/logs');
  20.  
  21.  
  22. // ** MySQL settings - You can get this info from your web host ** //
  23. /** The name of the database for WordPress */
  24. define('DB_NAME', 'redacted');
  25.  
  26. /** MySQL database username */
  27. define('DB_USER', 'redacted');
  28.  
  29. /** MySQL database password */
  30. define('DB_PASSWORD', 'redacted');
  31.  
  32. /** MySQL hostname */
  33. define('DB_HOST', '127.0.0.1');
  34.  
  35. /** Database Charset to use in creating database tables. */
  36. define('DB_CHARSET', 'utf8mb4');
  37.  
  38. /** The Database Collate type. Don't change this if in doubt. */
  39. define('DB_COLLATE', '');
  40.  
  41. /**#@+
  42. * Authentication Unique Keys and Salts.
  43. *
  44. * Change these to different unique phrases!
  45. * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
  46. * 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.
  47. *
  48. * @since 2.6.0
  49. */
  50. define('AUTH_KEY', 'redacted');
  51. define('SECURE_AUTH_KEY', 'redacted');
  52. define('LOGGED_IN_KEY', 'redacted');
  53. define('NONCE_KEY', 'redacted');
  54. define('AUTH_SALT', 'redacted');
  55. define('SECURE_AUTH_SALT', 'redacted');
  56. define('LOGGED_IN_SALT', 'redacted');
  57. define('NONCE_SALT', 'redacted');
  58.  
  59.  
  60. /*
  61. * Debugging/errors
  62. */
  63. define('APP_DEBUG', (boolean) getenv('APP_DEBUG'));
  64. // Always log errors
  65. ini_set('log_errors', 1);
  66. ini_set('error_log', APP_LOG_DIR . '/wp_debug.log');
  67. define('WP_DEBUG', true);
  68. define('WP_DEBUG_LOG', false);
  69. define('WP_DEBUG_DISPLAY', APP_DEBUG);
  70. define('SCRIPT_DEBUG', APP_DEBUG);
  71. /*
  72. * URLs
  73. */
  74. define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'].'/help-advice/wp');
  75. define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'].'/help-advice');
  76. /*
  77. * Custom Content Directory (/public/help-advice/app)
  78. */
  79. define('CONTENT_DIR', '/app');
  80. define('WP_CONTENT_DIR', APP_PUBLIC_DIR . CONTENT_DIR);
  81. define('WP_CONTENT_URL', WP_HOME . CONTENT_DIR);
  82.  
  83.  
  84. //google analytics
  85. define('GA_PROPERTY_ID',getenv('GA_PROPERTY_ID'));
  86. /**#@-*/
  87.  
  88. /**
  89. * WordPress Database Table prefix.
  90. *
  91. * You can have multiple installations in one database if you give each
  92. * a unique prefix. Only numbers, letters, and underscores please!
  93. */
  94. $table_prefix = 'wp_';
  95.  
  96. /* That's all, stop editing! Happy blogging. */
  97.  
  98. /** Absolute path to the WordPress directory. */
  99. if ( !defined('ABSPATH') )
  100. define('ABSPATH', dirname(__FILE__) . '/../public/help-advice/wp/');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement