diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-06-06 00:05:25 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-06-06 00:05:25 +0000 |
commit | 16f5fe766bb81387a98ddee28d521af35d1c97b7 (patch) | |
tree | 61c0714e66d87854229ece79e001f7ec08b6f1ed /usr | |
parent | d5b545b5040331eeb613855ae20c545832bfa934 (diff) | |
download | pfsense-16f5fe766bb81387a98ddee28d521af35d1c97b7.zip pfsense-16f5fe766bb81387a98ddee28d521af35d1c97b7.tar.gz |
Add some code to allow images to be seen when viewing current page
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/services_captiveportal.php | 10 |
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; ?> |