diff options
author | Simon Rettberg | 2013-12-17 15:25:12 +0100 |
---|---|---|
committer | Simon Rettberg | 2013-12-17 15:25:12 +0100 |
commit | eec83c9545d8a9a06ac0f63846eca68e2280a83d (patch) | |
tree | a0612b37f7830c779c7dc5c4161904d84a8dd4e0 /apis/getconfig.inc.php | |
parent | Remote client logging (diff) | |
download | slx-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/getconfig.inc.php')
-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"; + |