Changeset 5239
- Timestamp:
- Mar 22, 2010, 12:41:19 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions_install.inc.php
r5220 r5239 105 105 } 106 106 107 if ($engines['sqlite']['available'] &&$engines['pdo-sqlite']['available'])107 if ($engines['sqlite']['available'] and !$engines['pdo-sqlite']['available']) 108 108 { 109 if ($GLOBALS['conf']['db_sqlite_default']=='native') 110 { 111 unset($engines['pdo-sqlite']); 112 } 113 else 114 { 115 unset($engines['sqlite']); 116 } 109 unset($engines['pdo-sqlite']); 110 } 111 elseif ($engines['pdo-sqlite']['available'] and !$engines['sqlite']['available']) 112 { 113 unset($engines['sqlite']); 114 } 115 elseif (DEFAULT_DB_SQLITE=='native') 116 { 117 unset($engines['pdo-sqlite']); 118 } 119 else 120 { 121 unset($engines['sqlite']); 117 122 } 118 123 -
trunk/include/config_default.inc.php
r5220 r5239 528 528 'email' => 'mail_address' 529 529 ); 530 531 // database engine default choice between sqlite (native or via pdo)532 // if the twice are available.533 // $conf['db_sqlite_default'] = 'pdo';534 $conf['db_sqlite_default'] = 'native';535 536 // default database engine proposed if severals are available537 // choices : sqlite, mysql, pgsql, pdo-sqlite538 // see include/dblayer/dblayers.inc.php539 $conf['dbengine_select_default'] = 'mysql';540 530 541 531 // pass_convert : function to crypt or hash the clear user password to store -
trunk/include/dblayer/dblayers.inc.php
r5196 r5239 35 35 ); 36 36 37 $dblayers['pdo-sqlite'] = array('engine' => ' PDO::SQLite',37 $dblayers['pdo-sqlite'] = array('engine' => 'SQLite', 38 38 'class_available' => 'PDO' 39 39 ); -
trunk/install.php
r5236 r5239 99 99 define('DEFAULT_PREFIX_TABLE', 'piwigo_'); 100 100 101 // default database engine proposed if severals are available 102 // choices : sqlite, mysql, pgsql, pdo-sqlite 103 // see include/dblayer/dblayers.inc.php 104 define('DEFAULT_DB_ENGINE', 'mysql'); 105 106 // database engine default choice between sqlite (native or via pdo) 107 // if the twice are available. 108 define('DEFAULT_DB_SQLITE', 'native'); 109 101 110 if (isset($_POST['install'])) 102 111 { … … 116 125 $dbpasswd = (!empty($_POST['dbpasswd'])) ? $_POST['dbpasswd'] : ''; 117 126 $dbname = (!empty($_POST['dbname'])) ? $_POST['dbname'] : ''; 118 $dblayer = (!empty($_POST['dblayer'])) ? $_POST['dblayer'] : $conf['dbengine_select_default'];127 $dblayer = (!empty($_POST['dblayer'])) ? $_POST['dblayer'] : DEFAULT_DB_ENGINE; 119 128 120 129 $admin_name = (!empty($_POST['admin_name'])) ? $_POST['admin_name'] : '';
Note: See TracChangeset
for help on using the changeset viewer.