12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?php
- require_once(__DIR__.'/vendor/autoload.php');
- $dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
- $dotenv->load();
- define('ENVIRONMENT_DEV', 'dev');
- define('ENVIRONMENT_STAGE', 'stage');
- define('ENVIRONMENT_PROD', 'prod');
- define('ENVIRONMENT', getenv('ENVIRONMENT'));
- define('DB_NAME', getenv('DB_NAME'));
- define('DB_USER', getenv('DB_USER'));
- define('DB_PASSWORD', getenv('DB_PASSWORD'));
- define('DB_HOST', getenv('DB_HOST'));
- define('DB_CHARSET', 'utf8');
- define('DB_COLLATE', '');
- define('AUTH_KEY', getenv('AUTH_KEY'));
- define('SECURE_AUTH_KEY', getenv('SECURE_AUTH_KEY'));
- define('LOGGED_IN_KEY', getenv('LOGGED_IN_KEY'));
- define('NONCE_KEY', getenv('NONCE_KEY'));
- define('AUTH_SALT', getenv('AUTH_SALT'));
- define('SECURE_AUTH_SALT', getenv('SECURE_AUTH_SALT'));
- define('LOGGED_IN_SALT', getenv('LOGGED_IN_SALT'));
- define('NONCE_SALT', getenv('NONCE_SALT'));
- $table_prefix = getenv('TABLE_PREFIX');
- define( 'WPLANG', '' );
- define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/app' );
- define( 'WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/wp/app' );
- define( 'PLUGINDIR', dirname(__FILE__) . '/app/plugins' );
- //define ( 'WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST'] . '/' );
- //define( 'WP_ALLOW_MULTISITE', true );
- //define( 'DISALLOW_FILE_EDIT', true );
- //define(‘FORCE_SSL_ADMIN’, true);
- //define(‘FORCE_SSL_LOGIN’, true);
- //define('WP_HTTP_BLOCK_EXTERNAL', true);
- //define('DISALLOW_FILE_EDIT',true);
- //define('DISALLOW_FILE_MODS', true);
- define('WP_DEBUG', getenv('WP_DEBUG'));
- define( 'WP_DEBUG_DISPLAY', true );
- define( 'SAVEQUERIES', true );
- define( 'SCRIPT_DEBUG', true );
- define( 'WP_CACHE', false );
- @ini_set( 'log_errors', 'On' );
- @ini_set( 'display_errors', 'On' );
- @ini_set( 'error_log', '/php_error.log' );
- @ini_set( 'error_reporting', E_ALL );
- if (ENVIRONMENT === ENVIRONMENT_PROD) {
- error_reporting(0);
- @ini_set('display_errors', 0);
- }
- define('AUTOSAVE_INTERVAL', 720 );
- define('WP_POST_REVISIONS', 2);
- define('WP_MEMORY_LIMIT', '128M');
- //if ( file_exists( dirname( __FILE__ ) . '/memcached.php' ) )
- // $memcached_servers = include( dirname( __FILE__ ) . '/memcached.php' );
- if ( !defined('ABSPATH') )
- define('ABSPATH', dirname(__FILE__) . '/wp/');
- require_once(ABSPATH . 'wp-settings.php');
- ?>
|