diff options
author | Simon Rettberg | 2014-11-06 11:58:19 +0100 |
---|---|---|
committer | Simon Rettberg | 2014-11-06 11:58:19 +0100 |
commit | 8bad25173bbe1a6d047284e27df1d59c6a670eeb (patch) | |
tree | 9cb1d8b6f07b42b0c38b69fbd747a9956394bd30 /apis/getconfig.inc.php | |
parent | Show modules of sysconfig using fancy javascript mouseover effects (diff) | |
download | slx-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.php | 2 |
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"; |