Changeset 13739 in hybrid for branches/releng-11/nanobsd/files/usr/local/www
- Timestamp:
- Jan 18, 2017, 11:15:04 PM (8 years ago)
- Location:
- branches/releng-11/nanobsd/files/usr/local/www/portal
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/releng-11/nanobsd/files/usr/local/www/portal/index.cgi
r13737 r13739 23 23 else 24 24 echo 'Content-Type: text/html' 25 echo 'Cache-Control: no-cache, no-store, must-revalidate' 26 echo 'Pragma: no-cache' 27 echo 'Expires: 0' 25 28 echo '' 26 29 # User is new, present welcome page -
branches/releng-11/nanobsd/files/usr/local/www/portal/login/index.cgi
r13738 r13739 23 23 # Redirect to proper page 24 24 echo 'Content-Type: text/html' 25 echo 'Cache-Control: no-cache, no-store, must-revalidate' 26 echo 'Pragma: no-cache' 27 echo 'Expires: 0' 25 28 echo 'Refresh: 1; url=http://www.wirelessleiden.nl' 26 29 echo '' -
branches/releng-11/nanobsd/files/usr/local/www/portal/logout/index.cgi
r13372 r13739 10 10 REMOTE_MAC=`arp -n $REMOTE_ADDR | awk '{print $4}'` 11 11 12 # Add entry toauthorized list12 # Delete entry from authorized list 13 13 sudo pfctl -q -t wlportal -T delete $REMOTE_ADDR 14 15 # Delete mac from authorized list 16 grep -v $REMOTE_MAC $DB >> $DB.new 17 mv $DB.new $DB 14 18 15 19 # Redirect to proper page 16 20 echo 'Content-Type: text/html' 21 echo 'Cache-Control: no-cache, no-store, must-revalidate' 22 echo 'Pragma: no-cache' 23 echo 'Expires: 0' 17 24 echo 'Refresh: 60; url=/portal/login' 18 25 echo ''
Note:
See TracChangeset
for help on using the changeset viewer.