Last active
January 8, 2016 11:31
-
-
Save vistajess/3ebb5bb658eb13f95aa6 to your computer and use it in GitHub Desktop.
Config_db_cred
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//ini_set('max_execution_time', 1000); //300 seconds = 5 minutes | |
$serverName = $_SERVER['SERVER_NAME']; | |
$isOneSuper = strpos($serverName, 'onesupershop') !== false; | |
$isOneLife = strpos($serverName, 'onelifepremium') !== false; | |
$isOneSuperMart = strpos($serverName, 'onesupermart') !== false; | |
$isLocal = strpos($serverName, 'localhost') !== false; | |
if ($isOneSuper) { | |
define('HostRead', 'haproxy.onesupershop.com'); | |
define('Host', 'db.onesupershop.com'); | |
define('User', 'oneplatform'); | |
define('Password', '0n3pl4tf0rm2015'); | |
define('Database', 'onesuper_db'); | |
//--NEW----------------------------- | |
// define('Host','db.onesupershop.com'); | |
// define('User','oneplatform'); | |
// define('Password','0n3pl4tf0rm'); | |
// define('Database','onesuper_db'); | |
} elseif ($isOneLife || $isOneSuperMart) { | |
define('HostRead', 'db.staging.onesupershop.com'); | |
define('Host', 'db.staging.onesupershop.com'); | |
define('User', 'oneplatform'); | |
define('Password', '0n3pl4tf0rm2015'); | |
define('Database', 'onelifep_db'); | |
} else { | |
// define('HostRead', 'localhost'); | |
// define('Host', 'localhost'); | |
// define('User', 'root'); | |
// define('Password', ''); | |
// define('Database', 'onelifep'); | |
define('HostRead', 'haproxy.onesupershop.com'); | |
define('Host', 'db.onesupershop.com'); | |
define('User', 'oneplatform'); | |
define('Password', '0n3pl4tf0rm2015'); | |
define('Database', 'onesuper_db'); | |
} | |
define('TITLE_USER', 'Welcome To beone jason'); | |
define('Currency', 'Php'); | |
define('CURRENCY', 'Php'); | |
define('Image_Path', 'product_logos'); | |
define('TABLE_PREFIX', ''); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment