diff options
author | Chris Buechler <cmb@pfsense.org> | 2008-04-13 23:09:59 +0000 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2008-04-13 23:09:59 +0000 |
commit | 4993f81ce6daf893efddd7879e23db0efb4b8032 (patch) | |
tree | 618bb63881a2e2c6c380cc3468e275dd962bd235 /usr/local/captiveportal | |
parent | 89a14760ace4890cd4a0d1f03f47dbdb1d4a9fa1 (diff) | |
download | pfsense-4993f81ce6daf893efddd7879e23db0efb4b8032.zip pfsense-4993f81ce6daf893efddd7879e23db0efb4b8032.tar.gz |
changes from Dimitri Rodis
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-x | usr/local/captiveportal/index.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php index 71a2d53..e4fcb42 100755 --- a/usr/local/captiveportal/index.php +++ b/usr/local/captiveportal/index.php @@ -174,12 +174,12 @@ EOD; portal_allow($clientip, $clientmac, "unauthenticated"); } else { /* display captive portal page */ - portal_reply_page($redirurl, "login"); + portal_reply_page($redirurl, "login",null,$clientmac,$clientip); } exit; -function portal_reply_page($redirurl, $type = null, $message = null) { +function portal_reply_page($redirurl, $type = null, $message = null, $clientmac = null, $clientip = null) { global $g, $config; /* Get captive portal layout */ @@ -196,6 +196,8 @@ function portal_reply_page($redirurl, $type = null, $message = null) { $htmltext = str_replace("\$PORTAL_REDIRURL\$", htmlspecialchars($redirurl), $htmltext); $htmltext = str_replace("\$PORTAL_MESSAGE\$", htmlspecialchars($message), $htmltext); + $htmltext = str_replace("\$CLIENT_MAC\$", htmlspecialchars($clientmac), $htmltext); + $htmltext = str_replace("\$CLIENT_IP\$", htmlspecialchars($clientip), $htmltext); echo $htmltext; } |