· 7 years ago · Feb 19, 2018, 01:58 PM
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 */
8define('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
17define('APP_PUBLIC_DIR', APP_ROOT_DIR . '/public/help-advice');
18define('APP_STORAGE_DIR', APP_ROOT_DIR . '/storage');
19define('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 */
24define('DB_NAME', 'redacted');
25
26/** MySQL database username */
27define('DB_USER', 'redacted');
28
29/** MySQL database password */
30define('DB_PASSWORD', 'redacted');
31
32/** MySQL hostname */
33define('DB_HOST', '127.0.0.1');
34
35/** Database Charset to use in creating database tables. */
36define('DB_CHARSET', 'utf8mb4');
37
38/** The Database Collate type. Don't change this if in doubt. */
39define('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 */
50define('AUTH_KEY', 'redacted');
51define('SECURE_AUTH_KEY', 'redacted');
52define('LOGGED_IN_KEY', 'redacted');
53define('NONCE_KEY', 'redacted');
54define('AUTH_SALT', 'redacted');
55define('SECURE_AUTH_SALT', 'redacted');
56define('LOGGED_IN_SALT', 'redacted');
57define('NONCE_SALT', 'redacted');
58
59
60/*
61 * Debugging/errors
62 */
63define('APP_DEBUG', (boolean) getenv('APP_DEBUG'));
64// Always log errors
65ini_set('log_errors', 1);
66ini_set('error_log', APP_LOG_DIR . '/wp_debug.log');
67define('WP_DEBUG', true);
68define('WP_DEBUG_LOG', false);
69define('WP_DEBUG_DISPLAY', APP_DEBUG);
70define('SCRIPT_DEBUG', APP_DEBUG);
71/*
72 * URLs
73 */
74define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'].'/help-advice/wp');
75define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'].'/help-advice');
76/*
77 * Custom Content Directory (/public/help-advice/app)
78 */
79define('CONTENT_DIR', '/app');
80define('WP_CONTENT_DIR', APP_PUBLIC_DIR . CONTENT_DIR);
81define('WP_CONTENT_URL', WP_HOME . CONTENT_DIR);
82
83
84//google analytics
85define('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. */
99if ( !defined('ABSPATH') )
100 define('ABSPATH', dirname(__FILE__) . '/../public/help-advice/wp/');