diff options
Diffstat (limited to 'apis')
-rw-r--r-- | apis/getconfig.inc.php | 4 |
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"; + |