Detect SuiteCRM only with global variable ['sugarcrm']
This commit is contained in:
parent
052824e4b7
commit
3249260653
6 changed files with 153 additions and 147 deletions
|
@ -7,88 +7,13 @@
|
|||
* This file may have been set to read-only by Drupal. If you make changes to
|
||||
* this file, be sure to protect it again after making your modifications.
|
||||
* Failure to remove write permission to this file is a security risk.
|
||||
*
|
||||
* The configuration file to be loaded is based upon the rules below.
|
||||
*
|
||||
* The configuration directory will be discovered by stripping the website's
|
||||
* hostname from left to right and pathname from right to left. The first
|
||||
* configuration file found will be used and any others will be ignored. If no
|
||||
* other configuration file is found then the default configuration file at
|
||||
* 'config/default' will be used. For example, for a fictitious site installed
|
||||
* at http://www.example.org/mysite/test the 'settings.php' is searched in the
|
||||
* following directories:
|
||||
*
|
||||
* 1. config/www.example.org.mysite.test
|
||||
* 2. config/example.org.mysite.test
|
||||
* 3. config/org.mysite.test
|
||||
*
|
||||
* 4. config/www.example.org.mysite
|
||||
* 5. config/example.org.mysite
|
||||
* 6. config/org.mysite
|
||||
*
|
||||
* 7. config/www.example.org
|
||||
* 8. config/example.org
|
||||
* 9. config/org
|
||||
*
|
||||
* 10. config/default
|
||||
*
|
||||
* If you are installing on a non-standard port number, prefix the hostname with
|
||||
* that number. For example, http://www.example.org:8080/mysite/test could be
|
||||
* loaded from config/8080.www.drupal.org.mysite.test directory.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Database settings.
|
||||
*
|
||||
* Note that the $db_url variable gets parsed using PHP's built-in URL parser
|
||||
* (i.e. using the "parse_url()" function) so make sure not to confuse the
|
||||
* parser. If your username, password or database name contain characters used
|
||||
* to delineate $db_url parts, you can escape them via URI hex encodings:
|
||||
*
|
||||
* : = %3a / = %2f @ = %40
|
||||
* + = %2b ( = %28 ) = %29
|
||||
* ? = %3f = = %3d & = %26
|
||||
*
|
||||
* To specify multiple connections to use in your site (i.e. for complex custom
|
||||
* modules) you can also specify an associative array of $db_url variables with
|
||||
* the 'default' element used until otherwise requested.
|
||||
*
|
||||
* If you prefix some or all database table names, you can use the $db_prefix
|
||||
* setting and each table name will be prepended with its value. Be sure to use
|
||||
* valid database characters only, usually alphanumeric and underscore. If no
|
||||
* prefixes are desired, leave it as an empty string ''.
|
||||
*
|
||||
* To have all database names prefixed, set $db_prefix as a string:
|
||||
*
|
||||
* $db_prefix = 'main_';
|
||||
*
|
||||
* To provide prefixes for specific tables set $db_prefix as an array where keys
|
||||
* are the table names and the values are the prefixes. The 'default' element
|
||||
* holds the prefix for any tables not specified elsewhere in the array:
|
||||
*
|
||||
* $db_prefix = array(
|
||||
* 'default' => 'main_',
|
||||
* 'users' => 'shared_',
|
||||
* 'sessions' => 'shared_',
|
||||
* 'role' => 'shared_',
|
||||
* 'authmap' => 'shared_',
|
||||
* );
|
||||
*
|
||||
* Database URL format:
|
||||
* $db_url = 'mysql://username:password@localhost/databasename';
|
||||
* $db_url = 'mysqli://username:password@localhost/databasename';
|
||||
* $db_url = 'pgsql://username:password@localhost/databasename';
|
||||
*/
|
||||
$db_url = 'mysql://username:password@localhost/databasename';
|
||||
// Database settings:
|
||||
$db_url['default'] = 'mysql://username:password@localhost/databasename';
|
||||
$db_prefix = '';
|
||||
|
||||
/**
|
||||
* SuiteCRM (a fork of SugarCRM) access.
|
||||
*
|
||||
* Don't forget to assign TRUE to this variable and uncomment to provide the
|
||||
* SuiteCRM database connection.
|
||||
*/
|
||||
$conf['storm_suitecrm'] = FALSE;
|
||||
// SuiteCRM (a fork of SugarCRM) database access:
|
||||
# $db_url['sugarcrm'] = 'mysql://username:password@localhost/databasename';
|
||||
|
||||
/**
|
||||
|
|
Reference in a new issue