1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 09:04:38 +02:00

Issue #5120 Return to multi-dimensional format for multisite plugin compatibility.

This commit is contained in:
camer0n
2024-04-08 16:02:44 -07:00
parent 145d1dea80
commit 8711f503a1
6 changed files with 78 additions and 34 deletions

View File

@@ -1531,6 +1531,59 @@ if($this->pdo == true)
}*/
// New format e107 v2.4+
$config_file = "<?php
/*
* e107 website system
*
* Copyright (C) 2008-".date('Y')." e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* e107 configuration file
*
* This file has been generated by the installation script on ".date('r').".
*/
// -- Optional --
// const e_EMAIL_CRITICAL = '{$this->previous_steps['admin']['email']}'; // email the admin (and share no details with the user) if a critical error occurs.
// const e_LOG_CRITICAL = true; // log critical errors but do not display them to user. (similar to above, but no email is sent - instead error goes into a log file)
// const e_DEBUG = true; // Enable debug mode to allow displaying of errors
// const e_HTTP_STATIC = 'https://static.mydomain.com/'; // Use a static subdomain for js/css/images etc.
// const e_MOD_REWRITE_STATIC = true; // Rewrite static image urls.
// const e_GIT = 'path-to-git'; // Path to GIT for developers
// const X_FRAME_SAMEORIGIN = false; // Option to override X-Frame-Options
return [
'database' => [
'server' => '{$this->previous_steps['mysql']['server']}',
'user' => '{$this->previous_steps['mysql']['user']}',
'password' => '{$this->previous_steps['mysql']['password']}',
'defaultdb'=> '{$this->previous_steps['mysql']['db']}',
'prefix' => '{$this->previous_steps['mysql']['prefix']}',
'charset' => 'utf8mb4',
],
'paths' => [
'admin' => '{$this->e107->e107_dirs['ADMIN_DIRECTORY']}',
'files' => '{$this->e107->e107_dirs['FILES_DIRECTORY']}',
'images' => '{$this->e107->e107_dirs['IMAGES_DIRECTORY']}',
'themes' => '{$this->e107->e107_dirs['THEMES_DIRECTORY']}',
'plugins' => '{$this->e107->e107_dirs['PLUGINS_DIRECTORY']}',
'handlers' => '{$this->e107->e107_dirs['HANDLERS_DIRECTORY']}',
'languages' => '{$this->e107->e107_dirs['LANGUAGES_DIRECTORY']}',
'help' => '{$this->e107->e107_dirs['HELP_DIRECTORY']}',
'media' => '{$this->e107->e107_dirs['MEDIA_DIRECTORY']}',
'system' => '{$this->e107->e107_dirs['SYSTEM_DIRECTORY']}',
],
'site' => [
'site_path' => '{$this->previous_steps['paths']['hash']}',
]
];
";
$config_result = $this->write_config($config_file);
if ($config_result)