From ec9202316f33fd6169756447e2c8230907ec68ab Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 14 Mar 2005 01:37:56 +0000 Subject: Restore 1.2b6's captive portal. --- usr/local/captiveportal/index.php | 92 +++++++++++------------ usr/local/captiveportal/radius_accounting.inc | 30 ++++---- usr/local/www/services_captiveportal.php | 82 +++++++++----------- usr/local/www/services_captiveportal_ip.php | 32 +++----- usr/local/www/services_captiveportal_ip_edit.php | 51 +++++-------- usr/local/www/services_captiveportal_mac.php | 24 ++---- usr/local/www/services_captiveportal_mac_edit.php | 45 +++++------ 7 files changed, 149 insertions(+), 207 deletions(-) (limited to 'usr/local') diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php index 3c8b670..1f35a57 100755 --- a/usr/local/captiveportal/index.php +++ b/usr/local/captiveportal/index.php @@ -1,22 +1,22 @@ #!/usr/local/bin/php -. All rights reserved. - + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - + 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - + 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE @@ -74,7 +74,7 @@ if ($clientmac && portal_mac_fixed($clientmac)) { /* authenticate against radius server */ $radiusservers = captiveportal_get_radius_servers(); - + if ($_POST['auth_user'] && $_POST['auth_pass']) { $auth_val = RADIUS_AUTHENTICATION($_POST['auth_user'], $_POST['auth_pass'], @@ -128,7 +128,7 @@ if ($clientmac && portal_mac_fixed($clientmac)) { Disconnecting... -You have been disconnected. +You've been disconnected.