mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 05:20:30 +03:00
Move all runtime configs to "configs" dir
This commit is contained in:
parent
b84a6b1855
commit
99a4ca6192
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,7 +3,7 @@ src/absent_*
|
||||
src/release*
|
||||
|
||||
# Do not index actual configuration files
|
||||
src/mibew/libs/config.php
|
||||
src/mibew/configs/config.php
|
||||
src/tests/server_side/mibew/libs/config.php
|
||||
|
||||
# Do not index avatars
|
||||
|
@ -13,8 +13,8 @@ INSTALLATION
|
||||
2. Upload all the files contained in this archive (retaining the directory structure) into created folder.
|
||||
Be sure to chmod the mibew folder to 755 and the install folder to 644.
|
||||
3. Add a MySQL database with the name 'mibew'
|
||||
4. Copy /mibew/libs/default_config.php to /mibew/libs/config.php
|
||||
5. Edit /mibew/libs/config.php to the information needed to connect to the database
|
||||
4. Copy /mibew/configs/default_config.php to /mibew/configs/config.php
|
||||
5. Edit /mibew/configs/config.php to the information needed to connect to the database
|
||||
6. Using your web browser visit http://<yourdomain>/mibew/install/ and
|
||||
hit 'Create tables'
|
||||
7. Remove /mibew/install/ directory from your server
|
||||
@ -32,7 +32,7 @@ The owner should have all rights on the folder /mibew/files/avatar
|
||||
|
||||
UPDATE
|
||||
|
||||
1. Backup your /mibew/libs/config.php
|
||||
1. Backup your /mibew/configs/config.php
|
||||
2. Backup your /mibew/files/avatar folder.
|
||||
3. Delete the items in the mibew folder on the server.
|
||||
4. Upload all the files contained in the downloaded archive (retaining the directory structure) into mibew folder.
|
||||
|
@ -370,7 +370,7 @@ class Installer
|
||||
$this->errors[] = getlocal(
|
||||
"Please, check file {0}<br/>Wrong value of \$mibewroot variable, should be \"{1}\"",
|
||||
array(
|
||||
$real_base_path . "/libs/config.php",
|
||||
$real_base_path . "/configs/config.php",
|
||||
$real_base_path
|
||||
)
|
||||
);
|
||||
@ -730,7 +730,7 @@ class Installer
|
||||
*/
|
||||
protected function getDatabaseSchema()
|
||||
{
|
||||
return $this->parser->parse(file_get_contents(MIBEW_FS_ROOT . '/libs/database_schema.yml'));
|
||||
return $this->parser->parse(file_get_contents(MIBEW_FS_ROOT . '/configs/database_schema.yml'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -102,7 +102,7 @@ class RouteCollectionLoader
|
||||
*/
|
||||
protected function loadCoreRoutes()
|
||||
{
|
||||
return $this->loader->load('libs/routing.yml');
|
||||
return $this->loader->load('configs/routing.yml');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -113,7 +113,7 @@ class RouteCollectionLoader
|
||||
*/
|
||||
protected function loadInstallationRoutes()
|
||||
{
|
||||
return $this->loader->load('libs/routing_install.yml');
|
||||
return $this->loader->load('configs/routing_install.yml');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -29,7 +29,7 @@ function load_system_configs()
|
||||
if (is_null($configs)) {
|
||||
// Load and "parse" configs file. While configs are written in a php
|
||||
// file include is the only option to load and parse them.
|
||||
include(MIBEW_FS_ROOT . "/libs/config.php");
|
||||
include(MIBEW_FS_ROOT . "/configs/config.php");
|
||||
|
||||
$configs = array(
|
||||
'mibew_root' => $mibewroot,
|
||||
|
@ -27,7 +27,7 @@ define('LOCALE_COOKIE_NAME', 'mibew_locale');
|
||||
|
||||
/**
|
||||
* Verified value of the $default_locale configuration parameter (see
|
||||
* "libs/default_config.php" for details)
|
||||
* "configs/default_config.php" for details)
|
||||
*/
|
||||
define(
|
||||
'DEFAULT_LOCALE',
|
||||
@ -38,7 +38,7 @@ define(
|
||||
|
||||
/**
|
||||
* Verified value of the $home_locale configuration parameter (see
|
||||
* "libs/default_config.php" for details)
|
||||
* "configs/default_config.php" for details)
|
||||
*/
|
||||
define(
|
||||
'HOME_LOCALE',
|
||||
|
@ -91,7 +91,7 @@ if (!installation_in_progress()) {
|
||||
|
||||
if (!empty($configs['plugins'])) {
|
||||
// A list of plugins is defined in $plugins_list variable in
|
||||
// libs/config.php
|
||||
// configs/config.php
|
||||
\Mibew\Plugin\Manager::loadPlugins($configs['plugins']);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user