summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-06-06 00:05:25 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-06-06 00:05:25 +0000
commit16f5fe766bb81387a98ddee28d521af35d1c97b7 (patch)
tree61c0714e66d87854229ece79e001f7ec08b6f1ed /usr/local/www/services_captiveportal.php
parentd5b545b5040331eeb613855ae20c545832bfa934 (diff)
downloadpfsense-16f5fe766bb81387a98ddee28d521af35d1c97b7.zip
pfsense-16f5fe766bb81387a98ddee28d521af35d1c97b7.tar.gz
Add some code to allow images to be seen when viewing current page
Diffstat (limited to 'usr/local/www/services_captiveportal.php')
-rwxr-xr-xusr/local/www/services_captiveportal.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr/local/www/services_captiveportal.php b/usr/local/www/services_captiveportal.php
index eed5f31..a0dcd7d 100755
--- a/usr/local/www/services_captiveportal.php
+++ b/usr/local/www/services_captiveportal.php
@@ -499,8 +499,16 @@ to access after they've authenticated.</td>
<td width="22%" valign="top" class="vncellreq">Portal page contents</td>
<td width="78%" class="vtable">
<?=$mandfldhtml;?><input type="file" name="htmlfile" class="formfld" id="htmlfile"><br>
+ <?php
+ list($host) = explode(":", $_SERVER['HTTP_HOST']);
+ if(isset($config['captiveportal']['httpslogin'])) {
+ $href = "https://$host:8001";
+ } else {
+ $href = "http://$host:8000";
+ }
+ ?>
<?php if ($config['captiveportal']['page']['htmltext']): ?>
- <a href="?act=viewhtml" target="_blank">View current page</a> NOTE: images will be broken.
+ <a href="<?=$href?>" target="_new">View current page</a>
<br>
<br>
<?php endif; ?>
OpenPOWER on IntegriCloud