summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/page.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2019-03-14 16:10:30 +0100
committerSimon Rettberg2019-03-14 16:10:30 +0100
commitf041514bfeacfe65d773a9d3a6300e31ad38c905 (patch)
tree0f62f4c3bc9d755018ffe9364de1732141c98752 /modules-available/locationinfo/page.inc.php
parent[serversetup-bwlp-ipxe] Fix: Module name is locations, not location (diff)
downloadslx-admin-f041514bfeacfe65d773a9d3a6300e31ad38c905.tar.gz
slx-admin-f041514bfeacfe65d773a9d3a6300e31ad38c905.tar.xz
slx-admin-f041514bfeacfe65d773a9d3a6300e31ad38c905.zip
[locationinfo] Add black/whitelist stuff for URL panels
Diffstat (limited to 'modules-available/locationinfo/page.inc.php')
-rw-r--r--modules-available/locationinfo/page.inc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php
index b082c0f4..3e17976d 100644
--- a/modules-available/locationinfo/page.inc.php
+++ b/modules-available/locationinfo/page.inc.php
@@ -391,6 +391,8 @@ class Page_LocationInfo extends Page
'url' => Request::post('url', 'https://www.bwlehrpool.de/', 'string'),
'insecure-ssl' => Request::post('insecure-ssl', 0, 'int'),
'reload-minutes' => max(0, Request::post('reloadminutes', 0, 'int')),
+ 'iswhitelist' => Request::post('iswhitelist', 0, 'int'),
+ 'urllist' => preg_replace("/[\r\n\\s]+/ms", ' ', Request::post('urllist', '', 'string')),
);
return array('config' => $conf, 'locationids' => []);
}
@@ -988,6 +990,8 @@ class Page_LocationInfo extends Page
'url' => $config['url'],
'ssl_checked' => $config['insecure-ssl'] ? 'checked' : '',
'reloadminutes' => (int)$config['reload-minutes'],
+ 'iswhitelist_' . $config['iswhitelist'] . '_checked' => 'checked',
+ 'urllist' => str_replace(' ', "\r\n", $config['urllist']),
));
} else {
Render::addTemplate('page-config-panel-summary', array(