directory path

This commit is contained in:
HB9HIL
2024-01-30 11:18:58 +01:00
parent 0f7f7272d3
commit a209b6ab5b
2 changed files with 4 additions and 4 deletions

View File

@@ -88,7 +88,7 @@ $db['default'] = array(
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8mb4',
'dbcollat' => 'utf8mb4_0900_ai_ci',
'dbcollat' => 'utf8mb4_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,

View File

@@ -27,7 +27,7 @@ class Core
}
if ($data['directory'] != "") {
if (file_exists($_SERVER['DOCUMENT_ROOT'] . $data['directory'])) {
if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/' . $data['directory'])) {
//pass folders real
$counter++;
} else {
@@ -112,7 +112,7 @@ class Core
// Config path
$template_path = 'config/database.php';
$output_path = $_SERVER['DOCUMENT_ROOT'] . $data['directory'] . '/application/config/database.php';
$output_path = $_SERVER['DOCUMENT_ROOT'] . '/' . $data['directory'] . '/application/config/database.php';
// Open the file
$database_file = file_get_contents($template_path);
@@ -148,7 +148,7 @@ class Core
// Config path
$template_path = 'config/config.php';
$output_path = $_SERVER['DOCUMENT_ROOT'] . $data['directory'] . '/application/config/config.php';
$output_path = $_SERVER['DOCUMENT_ROOT'] . '/' . $data['directory'] . '/application/config/config.php';
// Open the file
$database_file = file_get_contents($template_path);