annotate etc/debian-db-roundcube.php @ 38:ac106d4c8961 default tip

flip /etc/roundcube to point here
author Charlie Root
date Sat, 29 Dec 2018 05:39:53 -0500
parents
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 ?>