Skip to content

Instantly share code, notes, and snippets.

@ss23
Created June 26, 2013 06:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ss23/5865132 to your computer and use it in GitHub Desktop.
Save ss23/5865132 to your computer and use it in GitHub Desktop.
<?php
/**
* Environemnt Settings - either specified in this file directly, or included from ../_ss_environment.php
* e.g. require_once('conf/ConfigureFromEnv.php');
*/
require_once('conf/ConfigureFromEnv.php');
// Database Configuration
global $database;
$database = 'SS_foo';
global $databaseConfig;
$databaseConfig['type'] = 'MSSQLDatabase';
if(defined('SS_MSSQL_DATABASE_SERVER')) $databaseConfig['server'] = SS_MSSQL_DATABASE_SERVER;
if(defined('SS_MSSQL_DATABASE_USERNAME')) $databaseConfig['username'] = SS_MSSQL_DATABASE_USERNAME;
if(defined('SS_MSSQL_DATABASE_PASSWORD')) $databaseConfig['password'] = SS_MSSQL_DATABASE_PASSWORD;
if(defined('SS_MSSQL_DATABASE_SUFFIX')) $databaseConfig['database'] .= SS_MSSQL_DATABASE_SUFFIX;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment