summaryrefslogtreecommitdiffstats
path: root/apis/getconfig.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2014-11-06 11:58:19 +0100
committerSimon Rettberg2014-11-06 11:58:19 +0100
commit8bad25173bbe1a6d047284e27df1d59c6a670eeb (patch)
tree9cb1d8b6f07b42b0c38b69fbd747a9956394bd30 /apis/getconfig.inc.php
parentShow modules of sysconfig using fancy javascript mouseover effects (diff)
downloadslx-admin-8bad25173bbe1a6d047284e27df1d59c6a670eeb.tar.gz
slx-admin-8bad25173bbe1a6d047284e27df1d59c6a670eeb.tar.xz
slx-admin-8bad25173bbe1a6d047284e27df1d59c6a670eeb.zip
Create slxlog URL dynamically depending on current script's directory
Diffstat (limited to 'apis/getconfig.inc.php')
-rw-r--r--apis/getconfig.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apis/getconfig.inc.php b/apis/getconfig.inc.php
index 164c1ac4..be35f5f3 100644
--- a/apis/getconfig.inc.php
+++ b/apis/getconfig.inc.php
@@ -25,7 +25,7 @@ while ($row = $res->fetch(PDO::FETCH_ASSOC)) {
// Additional "intelligent" config
// Remote log URL
-echo "SLX_REMOTE_LOG='http://" . escape($_SERVER['SERVER_ADDR']) . "/slxadmin/api.php?do=clientlog'\n";
+echo "SLX_REMOTE_LOG='http://" . escape($_SERVER['SERVER_ADDR']) . escape($_SERVER['SCRIPT_NAME']) . "?do=clientlog'\n";
// vm list url
echo "SLX_VMCHOOSER_BASE_URL='http://" . escape($_SERVER['SERVER_ADDR']) . "/vmchooser/'\n";