From 12607e78b07e6bd9479b9c92ebc1d7aa24b167b2 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Mon, 21 Jan 2008 08:01:30 +0000 Subject: [PATCH] Added sapphire/conf/ConfigureFromEnv.php for making use of _ss_environment.php git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@48352 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- conf/ConfigureFromEnv.php | 52 +++++++++++++++++++++++++++++++++++++++ conf/_manifest_exclude | 0 2 files changed, 52 insertions(+) create mode 100644 conf/ConfigureFromEnv.php create mode 100644 conf/_manifest_exclude diff --git a/conf/ConfigureFromEnv.php b/conf/ConfigureFromEnv.php new file mode 100644 index 000000000..c71e840c2 --- /dev/null +++ b/conf/ConfigureFromEnv.php @@ -0,0 +1,52 @@ + "MySQLDatabase", + "server" => defined('SS_DATABASE_SERVER') ? SS_DATABASE_SERVER : 'localhost', + "username" => SS_DATABASE_USERNAME, + "password" => SS_DATABASE_PASSWORD, + "database" => (defined('SS_DATABASE_PREFIX') ? SS_DATABASE_PREFIX : '') + . $database + . (defined('SS_DATABASE_SUFFIX') ? SS_DATABASE_SUFFIX : ''), +); + +if(defined('SS_SEND_ALL_EMAILS_TO')) { + Email::send_all_emails_to(SS_SEND_ALL_EMAILS_TO); +} diff --git a/conf/_manifest_exclude b/conf/_manifest_exclude new file mode 100644 index 000000000..e69de29bb