summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-10-30 17:02:09 +0100
committerSimon Rettberg2019-10-30 17:02:09 +0100
commit8a9e5deeeb4c5ca450ac8e9c70941983f882878c (patch)
treec492946a54210af54cbccf37ff6edb4be2f0d5fa
parent[baseconfig] Properly handle recusion for getconfig.inc.php hooks (diff)
downloadslx-admin-8a9e5deeeb4c5ca450ac8e9c70941983f882878c.tar.gz
slx-admin-8a9e5deeeb4c5ca450ac8e9c70941983f882878c.tar.xz
slx-admin-8a9e5deeeb4c5ca450ac8e9c70941983f882878c.zip
[baseconfig] Remove unused save-on-server feature
-rw-r--r--modules-available/baseconfig/api.inc.php29
1 files changed, 2 insertions, 27 deletions
diff --git a/modules-available/baseconfig/api.inc.php b/modules-available/baseconfig/api.inc.php
index 5fa4427e..7cf4d1b8 100644
--- a/modules-available/baseconfig/api.inc.php
+++ b/modules-available/baseconfig/api.inc.php
@@ -175,33 +175,8 @@ foreach ($defaults as $setting => $value) {
}
// All done, now output
-
-if (Request::any('save') === 'true') {
- // output AND save to disk: Generate contents
- $lines = '';
- foreach (ConfigHolder::getConfig() as $setting => $value) {
- $lines .= $setting . "='" . escape($value) . "'\n";
- }
- // Save to all the locations
- $data = Property::getVersionCheckInformation();
- if (is_array($data) && isset($data['systems'])) {
- foreach ($data['systems'] as $system) {
- $path = CONFIG_HTTP_DIR . '/' . $system['id'] . '/config';
- if (file_put_contents($path, $lines) > 0) {
- echo "# Saved config to $path\n";
- } else {
- echo "# Error saving config to $path\n";
- }
- echo "SLX_NOW='", time(), "'\n";
- }
- }
- // Output to browser
- echo $lines;
-} else {
- // Only output to client
- ConfigHolder::add('SLX_NOW', time(), PHP_INT_MAX);
- ConfigHolder::outputConfig();
-}
+ConfigHolder::add('SLX_NOW', time(), PHP_INT_MAX);
+ConfigHolder::outputConfig();
// For quick testing or custom extensions: Include external file that should do nothing
// more than outputting more key-value-pairs. It's expected in the webroot of slxadmin