summaryrefslogtreecommitdiffstats
path: root/apis/getconfig.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'apis/getconfig.inc.php')
-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";
+