fix to work with debian/trunk etc (mysql->mysqli)

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1669 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
David Goodwin 11 years ago
parent cc2d9bdd04
commit 7f07e7e59a

@ -12,7 +12,7 @@ Index: postfixadmin/config.inc.php
*/
+// This loads the automatic generated DB credentials from /etc/postfixadmin/dbconfig.inc.php
+require_once('dbconfig.inc.php');
+require_once('/etc/postfixadmin/dbconfig.inc.php');
+if (!isset($dbserver) || empty($dbserver))
+ $dbserver='localhost';
+
@ -32,7 +32,7 @@ Index: postfixadmin/config.inc.php
// mysql = MySQL 3.23 and 4.0, 4.1 or 5
// mysqli = MySQL 4.1+
// pgsql = PostgreSQL
-$CONF['database_type'] = 'mysql';
-$CONF['database_type'] = 'mysqli';
-$CONF['database_host'] = 'localhost';
-$CONF['database_user'] = 'postfix';
-$CONF['database_password'] = 'postfixadmin';

Loading…
Cancel
Save