mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-16 04:59:42 +01:00
fixes
This commit is contained in:
@@ -135,9 +135,13 @@ function do_config_export($srv, $usr, $pass, $nm, $prf, $type = 'mysql')
|
||||
$data .= '$dbname = \'' . str_replace("'", "\'", $nm) . "'; // database name \n";
|
||||
$data .= '$dbprefix = \'' . str_replace("'", "\'", $prf) . "'; // if you use prefix for tables , fill it \n";
|
||||
|
||||
if (file_put_contents(PATH . 'config.php', $data, LOCK_EX) !== false)
|
||||
|
||||
if (is_writable(PATH . 'config.php'))
|
||||
{
|
||||
return true;
|
||||
if (@file_put_contents(PATH . 'config.php', $data, LOCK_EX) !== false)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (defined('CLI') && CLI)
|
||||
@@ -145,7 +149,6 @@ function do_config_export($srv, $usr, $pass, $nm, $prf, $type = 'mysql')
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
header('Content-Type: text/x-delimtext; name="config.php"');
|
||||
header('Content-disposition: attachment; filename=config.php');
|
||||
echo $data;
|
||||
|
||||
@@ -11,7 +11,14 @@
|
||||
|
||||
{{if($GLOBALS['no_connection']): $GLOBALS['submit_disabled'] = true;}}
|
||||
<div class="notice">
|
||||
<p class="error2"><img src="style/images/k_info.png" class="img" alt=" " />{{echo $lang['INST_CONNCET_ERR']}}</p>
|
||||
<p class="error2">
|
||||
<img src="style/images/k_info.png" class="img" alt=" " />
|
||||
{{echo $lang['INST_CONNCET_ERR']}}
|
||||
{{if(! empty($GLOBALS['dbtype']) && $GLOBALS['dbtype'] == 'sqlite'):}}
|
||||
<br>
|
||||
{{echo $lang['INST_CONNCET_ERR_SQLITE']}}
|
||||
{{endif;}}
|
||||
</p>
|
||||
</div>
|
||||
{{endif}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user