<?php
/**
 * The base configurations of the WordPress.
 *
 * This file has the following configurations: MySQL settings, Table Prefix,
 * Secret Keys, WordPress Language, and ABSPATH. You can find more information
 * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
 * wp-config.php} Codex page. You can get the MySQL settings from your web host.
 *
 * This file is used by the wp-config.php creation script during the
 * installation. You don't have to use the web site, you can just copy this file
 * to "wp-config.php" and fill in the values.
 *
 * @package WordPress
 */


/** The name of the database for WordPress */

$whitelist = array('localhost:8888', 'localhost', '127.0.0.1');

if(!in_array($_SERVER['HTTP_HOST'], $whitelist)){

	define('DB_NAME', 'db_name');

	/** MySQL database username */
	define('DB_USER', 'db_user');

	/** MySQL database password */
	define('DB_PASSWORD', 'db_password');

	/** MySQL hostname */
	define('DB_HOST', 'db_host');

} else {

	// localhost
	define( 'WP_LOCAL_DEV', true );

	define('DB_NAME', 'db_name');

	/** MySQL database username */
	define('DB_USER', 'db_user');

	/** MySQL database password */
	define('DB_PASSWORD', 'db_password');

	/** MySQL hostname */
	define('DB_HOST', 'localhost');

}


# file continues ...