diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-07-24 01:04:43 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-07-24 01:04:43 +0000 |
commit | 8e0ca2b967c4c26d3166de8187ccbd787acbfc0d (patch) | |
tree | ece72487c63012b4bf75d8613129faac81083b24 /usr | |
parent | b2ce71ff4043bde5312f56d073e8970a794e6c43 (diff) | |
download | pfsense-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-x | usr/local/www/services_captiveportal_filemanager.php | 17 |
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><img src="test.jpg" width=... height=...></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><img src="captiveportal-test.jpg" width=... height=...></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><a href="/captiveportal-aup.php?redirurl=$PORTAL_REDIRURL$">Acceptable usage policy</a></tt> <br><br> The total size limit for all files is <?=format_bytes($g['captiveportal_element_sizelimit']);?>.</span> </td> |