diff options
author | Darren Murphy <darren@victoriajd.com> | 2012-03-23 06:10:55 +0100 |
---|---|---|
committer | Darren Murphy <darren@victoriajd.com> | 2012-03-23 06:10:55 +0100 |
commit | 8e9692b5f8a39eea12521f7ae9ad9b62c28ae6f5 (patch) | |
tree | 323f7a3d0e2b0bdf414f6dac2ad5623155f15a4a | |
parent | 50333cf052a6fc2ed29f16639ac1d0c891978b38 (diff) | |
download | smokeping-8e9692b5f8a39eea12521f7ae9ad9b62c28ae6f5.tar.gz smokeping-8e9692b5f8a39eea12521f7ae9ad9b62c28ae6f5.tar.xz |
Template support for HTTP auth user
* Updated doc
* Added section to basepage.html.dist
-rw-r--r-- | doc/smokeping_install.pod | 2 | ||||
-rw-r--r-- | etc/basepage.html.dist | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/doc/smokeping_install.pod b/doc/smokeping_install.pod index f3b81bd..0c922d9 100644 --- a/doc/smokeping_install.pod +++ b/doc/smokeping_install.pod @@ -175,6 +175,8 @@ Edit the html template to your likings. Please do not remove the link to the SmokePing counter and my name from the template. The content of the template will be renderd by smokeping.cgi. This means that all embedded links must be relative to smokeping.cgi. +If you are using HTTP authentication, then the template variable C<authuser> will be populated +from the C<$ENV{REMOTE_USER}> environment variable. =item F<etc/smokemail> diff --git a/etc/basepage.html.dist b/etc/basepage.html.dist index ff347c1..fbf0d55 100644 --- a/etc/basepage.html.dist +++ b/etc/basepage.html.dist @@ -66,6 +66,7 @@ a.menulink:hover { <TR> <TD class="menubar" align="left" width="130" valign="top"> <P></P> + <P><h3>Logged in as <##authuser##></h3></P> <P><B>SmokePing Targets:</B> </P> <P><##menu##></P> <br/> |