annotate etc/debian-db-roundcube.php @ 41:d2414df68d78

Updated by Alex S Grebenschikov (www.poralix.com) to make it compatible with RoundCube 1.3.0
author Charlie Root
date Fri, 24 Jan 2025 14:20:15 -0500
parents ac106d4c8961
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
1 <?php
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
2 include_once("/etc/roundcube/debian-db.php");
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
3
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
4 switch ($dbtype) {
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
5 case "sqlite":
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
6 case "sqlite3":
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
7 $config['db_dsnw'] = "sqlite:///$basepath/$dbname?mode=0640";
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
8 break;
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
9 default:
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
10 if ($dbport != '') $dbport=":$dbport";
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
11 if ($dbserver == '') $dbserver="localhost";
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
12 $config['db_dsnw'] = "$dbtype://$dbuser:$dbpass@$dbserver$dbport/$dbname";
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
13 break;
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
14 }
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
15 ?>