2018-10-24 20:45:58 +00:00
|
|
|
<?php
|
2018-10-25 20:10:01 +00:00
|
|
|
# DB Config style taken from the Debian maintainers, making things simpler
|
|
|
|
# as PHP is easier to manage here than bash substituion magic.
|
|
|
|
|
2018-10-24 20:45:58 +00:00
|
|
|
include_once("/var/roundcube/config/db.inc.php");
|
|
|
|
|
|
|
|
switch ($dbtype) {
|
|
|
|
case "sqlite":
|
2018-10-25 20:10:01 +00:00
|
|
|
$config['db_dsnw'] = "sqlite:///var/roundcube/config/sqlite.db?mode=0640";
|
2018-10-24 20:45:58 +00:00
|
|
|
break;
|
|
|
|
default:
|
|
|
|
if ($dbport != '') $dbport=":$dbport";
|
|
|
|
$config['db_dsnw'] = "$dbtype://$dbuser:$dbpass@$dbserver$dbport/$dbname";
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|