From 4c4892f8c9d1742df877f40b18700e6755340e16 Mon Sep 17 00:00:00 2001 From: brettp Date: Wed, 8 Sep 2010 12:43:33 +0000 Subject: Refs #2450: Documented db-related $CONFIG vars. git-svn-id: http://code.elgg.org/elgg/trunk@6917 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/settings.example.php | 74 +++++++++++++++++++++++++++++++-------------- 1 file changed, 51 insertions(+), 23 deletions(-) (limited to 'engine') diff --git a/engine/settings.example.php b/engine/settings.example.php index 30d832456..b47d9ba74 100644 --- a/engine/settings.example.php +++ b/engine/settings.example.php @@ -1,11 +1,17 @@ dbuser + */ $CONFIG->dbuser = '{{CONFIG_DBUSER}}'; -// Database password +/** + * The database password + * + * @global string $CONFIG->dbpass + */ $CONFIG->dbpass = '{{CONFIG_DBPASS}}'; -// Database name +/** + * The database name + * + * @global string $CONFIG->dbname + */ $CONFIG->dbname = '{{CONFIG_DBNAME}}'; -// Database server -// (For most configurations, you can leave this as 'localhost') +/** + * The database host. + * + * For most installations, this is 'localhost' + * + * @global string $CONFIG->dbhost + */ $CONFIG->dbhost = '{{CONFIG_DBHOST}}'; -// Database table prefix -// If you're sharing a database with other applications, you will want to use this -// to differentiate Elgg's tables. +/** + * The database prefix + * + * This prefix will be appended to all Elgg tables. If you're sharing + * a database with other applications, use a database prefix to namespace tables + * in order to avoid table name collisions. + * + * @global string $CONFIG->dbprefix + */ $CONFIG->dbprefix = '{{CONFIG_DBPREFIX}}'; -/* +/** * Multiple database connections * * Here you can set up multiple connections for reads and writes. To do this, uncomment out * the lines below. + * + * @todo Does this work? */ /* @@ -112,15 +143,12 @@ $CONFIG->db['write']->dbhost = "localhost"; //); /** - * Some work-around flags. + * Use non-standard headers for broken MTAs. + * + * The default header EOL for headers is \r\n. This causes problems + * on some broken MTAs. Setting this to TRUE will cause Elgg to use + * \n, which will fix some problems sending email on broken MTAs. + * + * @global bool $CONFIG->broken_mta */ - -// Try uncommenting the below if your notification emails are not being sent -// $CONFIG->broken_mta = true; - -/** - * Url - I am not sure if this will be here ? - **/ - -// URL -$CONFIG->url = ""; \ No newline at end of file +$CONFIG->broken_mta = FALSE; -- cgit v1.2.3