diff options
author | plegall <plg@piwigo.org> | 2011-09-08 10:46:35 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2011-09-08 10:46:35 +0000 |
commit | ff46db430bd2aa265c16bbd6ff17e0bae710d332 (patch) | |
tree | 32b7a7cbf4a8c01901bb00a2592dd450c047f717 /install | |
parent | 9252e5cb2d0cb9a5b2943049e8bb813285d40cd3 (diff) |
feature 2431: only keep MySQL on installation form
git-svn-id: http://piwigo.org/svn/trunk@12103 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | install.php | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/install.php b/install.php index 695f2371a..9a877a25b 100644 --- a/install.php +++ b/install.php @@ -96,15 +96,6 @@ if( !@get_magic_quotes_gpc() ) define('DEFAULT_PREFIX_TABLE', 'piwigo_'); -// default database engine proposed if severals are available -// choices : sqlite, mysql, pgsql, pdo-sqlite -// see include/dblayer/dblayers.inc.php -define('DEFAULT_DB_ENGINE', 'mysql'); - -// database engine default choice between sqlite (native or via pdo) -// if the twice are available. -define('DEFAULT_DB_SQLITE', 'native'); - if (isset($_POST['install'])) { $prefixeTable = $_POST['prefix']; @@ -150,7 +141,7 @@ $dbhost = (!empty($_POST['dbhost'])) ? $_POST['dbhost'] : 'localhost'; $dbuser = (!empty($_POST['dbuser'])) ? $_POST['dbuser'] : ''; $dbpasswd = (!empty($_POST['dbpasswd'])) ? $_POST['dbpasswd'] : ''; $dbname = (!empty($_POST['dbname'])) ? $_POST['dbname'] : ''; -$dblayer = (!empty($_POST['dblayer'])) ? $_POST['dblayer'] : DEFAULT_DB_ENGINE; +$dblayer = 'mysql'; $admin_name = (!empty($_POST['admin_name'])) ? $_POST['admin_name'] : ''; $admin_pass1 = (!empty($_POST['admin_pass1'])) ? $_POST['admin_pass1'] : ''; @@ -419,8 +410,6 @@ INSERT INTO '.$prefixeTable.'config (param,value,comment) } //------------------------------------------------------ start template output -$dbengines = available_engines(); - foreach ($languages->fs_languages as $language_code => $fs_language) { if ($language == $language_code) @@ -436,8 +425,6 @@ $template->assign( 'T_CONTENT_ENCODING' => 'utf-8', 'RELEASE' => PHPWG_VERSION, 'F_ACTION' => 'install.php?language=' . $language, - 'F_DB_ENGINES' => $dbengines, - 'F_DB_LAYER' => $dblayer, 'F_DB_HOST' => $dbhost, 'F_DB_USER' => $dbuser, 'F_DB_NAME' => $dbname, |