Feature 1460 : Customize form installation depending on database engine

- sqlite is proposed by default if severals
    database engine are available (cf conf)
- sqlite is proposed before pdo-sqlite
- remove host, user and password for sqlite

git-svn-id: http://piwigo.org/svn/trunk@4985 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
nikrou
2010-02-27 20:00:00 +00:00
parent 4986d620e3
commit d4287e2ad8
5 changed files with 69 additions and 12 deletions
+10
View File
@@ -520,6 +520,16 @@ $conf['user_fields'] = array(
'email' => 'mail_address'
);
// database engine default choice between sqlite (native or via pdo)
// if the twice are available.
// $conf['db_sqlite_default'] = 'pdo';
$conf['db_sqlite_default'] = 'native';
// default database engine proposed if severals are available
// choices : sqlite, mysql, pgsql, pdo-sqlite
// see include/dblayer/dblayers.inc.php
$conf['dbengine_select_default'] = 'sqlite';
// pass_convert : function to crypt or hash the clear user password to store
// it in the database
$conf['pass_convert'] = create_function('$s', 'return md5($s);');