summaryrefslogtreecommitdiffstats
path: root/apis
diff options
context:
space:
mode:
authorSimon Rettberg2013-12-17 15:25:12 +0100
committerSimon Rettberg2013-12-17 15:25:12 +0100
commiteec83c9545d8a9a06ac0f63846eca68e2280a83d (patch)
treea0612b37f7830c779c7dc5c4161904d84a8dd4e0 /apis
parentRemote client logging (diff)
downloadslx-admin-eec83c9545d8a9a06ac0f63846eca68e2280a83d.tar.gz
slx-admin-eec83c9545d8a9a06ac0f63846eca68e2280a83d.tar.xz
slx-admin-eec83c9545d8a9a06ac0f63846eca68e2280a83d.zip
Deliver remote log url to clients via config
Diffstat (limited to 'apis')
-rw-r--r--apis/getconfig.inc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apis/getconfig.inc.php b/apis/getconfig.inc.php
index 6edb55be..2ef02a6b 100644
--- a/apis/getconfig.inc.php
+++ b/apis/getconfig.inc.php
@@ -1,5 +1,6 @@
<?php
+// Dump config from DB
$res = Database::simpleQuery('SELECT setting.setting, setting.defaultvalue, setting.permissions, setting.description, tbl.value
FROM setting
LEFT JOIN setting_global AS tbl USING (setting)
@@ -8,3 +9,6 @@ while ($row = $res->fetch(PDO::FETCH_ASSOC)) {
if (empty($row['value'])) $row['value'] = $row['defaultvalue'];
echo $row['setting'] . "='" . str_replace("'", "'\"'\"'", $row['value']) . "'\n";
}
+// Additional "intelligent" config
+echo "SLX_REMOTE_LOG='http://${_SERVER['SERVER_ADDR']}/slxadmin/api.php?do=clientlog'\n";
+