Update mysql to mysqli in installer (#4)

* Update install.php

* Update install.php

* Update install.php

* Update configs.html

* Update functions_install.php
This commit is contained in:
Hani Rouatbi
2022-08-20 16:00:19 +01:00
committed by GitHub
parent c9e664e31a
commit 23b21ef271
5 changed files with 8 additions and 8 deletions

View File

@@ -114,13 +114,13 @@ function kleeja_eval($code)
* @param mixed $nm
* @param mixed $prf
*/
function do_config_export($srv, $usr, $pass, $nm, $prf, $type = 'mysql')
function do_config_export($srv, $usr, $pass, $nm, $prf, $type = 'mysqli')
{
$data = '<?php' . "\n\n" . '//fill these variables with your data' . "\n";
$data .= '//for more information about this file, visit: ' . "\n";
$data .= '//https://github.com/kleeja-official/kleeja/wiki/config.php-file' . "\n\n";
if(!empty($type) && $type != 'mysql')
if(!empty($type) && $type != 'mysqli')
{
if ($type == 'sqlite' && strpos($nm, '.') === false)
{

View File

@@ -9,7 +9,7 @@
<td class="TdConf">{{echo $lang['DB_TYPE']}}</td>
<td class="TdInput">
<select name="db_type" id="db_type" style="text-align:left;direction:ltr">
<option value="mysql" selected>{{echo $lang['DB_TYPE_MYSQL']}}</option>
<option value="mysqli" selected>{{echo $lang['DB_TYPE_MYSQLI']}}</option>
{{if ($sqlite3_exists):}}
<option value="sqlite">{{echo $lang['DB_TYPE_SQLITE']}}</option>
{{endif;}}