summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-07-24 01:04:43 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-07-24 01:04:43 +0000
commit8e0ca2b967c4c26d3166de8187ccbd787acbfc0d (patch)
treeece72487c63012b4bf75d8613129faac81083b24 /usr
parentb2ce71ff4043bde5312f56d073e8970a794e6c43 (diff)
downloadpfsense-8e0ca2b967c4c26d3166de8187ccbd787acbfc0d.zip
pfsense-8e0ca2b967c4c26d3166de8187ccbd787acbfc0d.tar.gz
Note that the uploaded files must be prefixed with captiveportal- so that lighty knows not to redirect the requests to index.php since we are using mod rewrite to determine this.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/services_captiveportal_filemanager.php17
1 files changed, 11 insertions, 6 deletions
diff --git a/usr/local/www/services_captiveportal_filemanager.php b/usr/local/www/services_captiveportal_filemanager.php
index d4192e7..46fecc8 100755
--- a/usr/local/www/services_captiveportal_filemanager.php
+++ b/usr/local/www/services_captiveportal_filemanager.php
@@ -156,12 +156,17 @@ include("head.inc");
<span class="vexpl"><span class="red"><strong>
Note:<br>
</strong></span>
- Any files that you upload here will be made available in the root directory
- of the captive portal HTTP(S) server. You may reference them directly from
- your portal page HTML code using relative paths. Example: you've uploaded
- an image with the name 'test.jpg' using the file manager. Then you can
- include it in your portal page like this:<br><br>
- <tt>&lt;img src=&quot;test.jpg&quot; width=... height=...&gt;</tt>
+ Any files that you upload here with the filename prefix of captiveportal- will
+ be made available in the root directory of the captive portal HTTP(S) server.
+ You may reference them directly from your portal page HTML code using relative paths.
+ Example: you've uploaded an image with the name 'captiveportal-test.jpg' using the
+ file manager. Then you can include it in your portal page like this:<br><br>
+ <tt>&lt;img src=&quot;captiveportal-test.jpg&quot; width=... height=...&gt;</tt>
+ <br><br>
+ In addition, you can also upload .php files for execution. You can pass the filename
+ to your custom page from the initial page by using text similar to:
+ <br><br>
+ <tt>&lt;a href="/captiveportal-aup.php?redirurl=$PORTAL_REDIRURL$"&gt;Acceptable usage policy&lt/a&gt;</tt>
<br><br>
The total size limit for all files is <?=format_bytes($g['captiveportal_element_sizelimit']);?>.</span>
</td>
OpenPOWER on IntegriCloud