| 1 |
|
| 2 |
$databases['default']['default'] = array(
|
| 3 |
'driver' => urldecode($_SERVER['db_type']),
|
| 4 |
'database' => urldecode($_SERVER['db_name']),
|
| 5 |
'username' => urldecode($_SERVER['db_user']),
|
| 6 |
'password' => urldecode($_SERVER['db_passwd']),
|
| 7 |
'host' => urldecode($_SERVER['db_host']),
|
| 8 |
);
|
| 9 |
$db_url = "<?php print strtr("%db_type://%db_user:%db_passwd@%db_host/%db_name", array(
|
| 10 |
'%db_type' => '$_SERVER[db_type]',
|
| 11 |
'%db_user' => '$_SERVER[db_user]',
|
| 12 |
'%db_passwd' => '$_SERVER[db_passwd]',
|
| 13 |
'%db_host' => '$_SERVER[db_host]',
|
| 14 |
'%db_name' => '$_SERVER[db_name]')); ?>";
|
| 15 |
|
| 16 |
$profile = "<?php print $profile ?>";
|
| 17 |
/**
|
| 18 |
* PHP settings:
|
| 19 |
*
|
| 20 |
* To see what PHP settings are possible, including whether they can
|
| 21 |
* be set at runtime (ie., when ini_set() occurs), read the PHP
|
| 22 |
* documentation at http://www.php.net/manual/en/ini.php#ini.list
|
| 23 |
* and take a look at the .htaccess file to see which non-runtime
|
| 24 |
* settings are used there. Settings defined here should not be
|
| 25 |
* duplicated there so as to avoid conflict issues.
|
| 26 |
*/
|
| 27 |
@ini_set('arg_separator.output', '&');
|
| 28 |
@ini_set('magic_quotes_runtime', 0);
|
| 29 |
@ini_set('magic_quotes_sybase', 0);
|
| 30 |
@ini_set('session.cache_expire', 200000);
|
| 31 |
@ini_set('session.cache_limiter', 'none');
|
| 32 |
@ini_set('session.cookie_lifetime', 0);
|
| 33 |
@ini_set('session.gc_maxlifetime', 200000);
|
| 34 |
@ini_set('session.save_handler', 'user');
|
| 35 |
@ini_set('session.use_only_cookies', 1);
|
| 36 |
@ini_set('session.use_trans_sid', 0);
|
| 37 |
@ini_set('url_rewriter.tags', '');
|
| 38 |
|
| 39 |
/**
|
| 40 |
* Set the umask so that new directories created by Drupal have the correct permissions
|
| 41 |
*/
|
| 42 |
umask(0002);
|
| 43 |
|
| 44 |
|
| 45 |
global $conf;
|
| 46 |
$conf['file_directory_path'] = 'sites/<?php print $site_url ?>/files';
|
| 47 |
$conf['file_directory_temp'] = 'sites/<?php print $site_url ?>/files/tmp';
|
| 48 |
$conf['file_downloads'] = 1;
|
| 49 |
$conf['cache'] = 1;
|
| 50 |
$conf['clean_url'] = 1;
|
| 51 |
|
| 52 |
<?php print $extra_config; ?>
|
| 53 |
|
| 54 |
/**
|
| 55 |
* This was added from Drupal 5.2 onwards.
|
| 56 |
*/
|
| 57 |
/**
|
| 58 |
* We try to set the correct cookie domain. If you are experiencing problems
|
| 59 |
* try commenting out the code below or specifying the cookie domain by hand.
|
| 60 |
*/
|
| 61 |
if (isset($_SERVER['HTTP_HOST'])) {
|
| 62 |
$domain = '.'. preg_replace('`^www.`', '', $_SERVER['HTTP_HOST']);
|
| 63 |
// Per RFC 2109, cookie domains must contain at least one dot other than the
|
| 64 |
// first. For hosts such as 'localhost', we don't set a cookie domain.
|
| 65 |
if (count(explode('.', $domain)) > 2) {
|
| 66 |
@ini_set('session.cookie_domain', $domain);
|
| 67 |
}
|
| 68 |
}
|
| 69 |
|
| 70 |
# Additional host wide configuration settings. Useful for safely specifying configuration settings.
|
| 71 |
if (file_exists('<?php print $config_path ?>/includes/global.inc')) {
|
| 72 |
include_once('<?php print $config_path ?>/includes/global.inc');
|
| 73 |
}
|