public static function database_config_attributes() { $host = $_SERVER['HTTP_HOST']; if ($host == 'your_domain.com') { # Put your credentials of database in production here self::$host = null; self::$dbname = null; self::$username = null; self::$password = null; } else { # Put your credentials of database localhost here self::$host = ''; self::$dbname = ''; self::$username = ''; self::$password = ''; } }
public static function database_config_attributes() { $host = $_SERVER['HTTP_HOST']; if ($host == 'offir.gov') { # Put your credentials of database in production here self::$host = null; self::$dbname = null; self::$username = null; self::$password = null; } elseif ($host == 'offir.com.br') { # Put your credentials of database in production here self::$host = null; self::$dbname = null; self::$username = null; self::$password = null; } else { # Put your credentials of database localhost here self::$host = 'localhost'; self::$dbname = 'help_desk'; self::$username = '******'; self::$password = null; } }