From a070cbe9627fcc29ef2f91b8f7578080203e6ad1 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Wed, 1 Jun 2011 10:33:34 -0700 Subject: Removing the config file from the codebase. --- .gitignore | 1 + htdocs/src/config.inc.php | 32 -------------------------------- htdocs/src/config.inc.php.example | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 32 deletions(-) delete mode 100644 htdocs/src/config.inc.php create mode 100644 htdocs/src/config.inc.php.example diff --git a/.gitignore b/.gitignore index ea6de6c..0560ef4 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ htdocs/emails.log tags uploads/ +config.inc.php diff --git a/htdocs/src/config.inc.php b/htdocs/src/config.inc.php deleted file mode 100644 index 829c632..0000000 --- a/htdocs/src/config.inc.php +++ /dev/null @@ -1,32 +0,0 @@ - - * - */ - -$CONFIG = array( - // Database Information - 'dbhost' => '127.0.0.1', - 'dbuser' => 'p4scommunity', - 'dbpass' => 'password', - 'dbname' => 'p4scommunity', - - // Site Information - 'sitetitle' => 'Foursquare Community', - 'email_from' => 'community@myfoursquarechurch.com', - - 'urlroot' => '/~jesse/p4s/community/htdocs', - 'root' => '/home/jesse/Development/p4square/community/htdocs', - 'uploads' => '/home/jesse/Development/p4square/community/uploads', - - 'debug' => true, - 'production' => true, -); - -set_include_path(get_include_path() . PATH_SEPARATOR . $CONFIG['root'].'/src'); - -?> diff --git a/htdocs/src/config.inc.php.example b/htdocs/src/config.inc.php.example new file mode 100644 index 0000000..d0d912c --- /dev/null +++ b/htdocs/src/config.inc.php.example @@ -0,0 +1,35 @@ + + * + */ + +$CONFIG = array( + // Database Information + 'dbhost' => '127.0.0.1', + 'dbuser' => 'p4scommunity', + 'dbpass' => 'password', + 'dbname' => 'p4scommunity', + + // Site Information + 'sitetitle' => 'Foursquare Community', + 'email_from' => 'community@myfoursquarechurch.com', + 'emaildomain' => 'listandshare.com', + + 'urlroot' => '/~jesse/p4s/community/htdocs', + 'root' => '/Users/jesse/Development/P4Square/community/htdocs', + 'uploads' => '/Users/jesse/Development/P4Square/community/uploads', + + 'expiretime' => 7, // days + + 'debug' => true, + 'production' => false, +); + +set_include_path(get_include_path() . PATH_SEPARATOR . $CONFIG['root'].'/src'); + +?> -- cgit v1.2.3