mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-15 20:49:41 +01:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;}}
|
||||
|
||||
Reference in New Issue
Block a user