Commit 2db9f6a7 authored by Ad Schellevis's avatar Ad Schellevis

Merge branch 'master' of github.com:opnsense/core

parents 4a589ec8 ae1b610c
...@@ -213,8 +213,7 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut ...@@ -213,8 +213,7 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut
$message = 0; $message = 0;
include("/var/etc/captiveportal-{$cpzone}-logout.html"); include("/var/etc/captiveportal-{$cpzone}-logout.html");
}
}
return $sessionid; return $sessionid;
} }
...@@ -224,8 +223,8 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut ...@@ -224,8 +223,8 @@ function portal_allow($clientip,$clientmac,$username,$password = null, $attribut
// //
/* reinit will disconnect all users, be careful! */ /* reinit will disconnect all users, be careful! */
function captiveportal_init_rules($reinit = false) { function captiveportal_init_rules($reinit = false)
{
$cpc = new OPNsense\CaptivePortal\CPClient(); $cpc = new OPNsense\CaptivePortal\CPClient();
$cpc->reconfigure(); $cpc->reconfigure();
unset($cpc); unset($cpc);
......
...@@ -3,7 +3,5 @@ socket_filename:/var/run/configd.socket ...@@ -3,7 +3,5 @@ socket_filename:/var/run/configd.socket
pid_filename:/var/run/configd.pid pid_filename:/var/run/configd.pid
[environment] [environment]
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
HOME=/ HOME=/
USER=root
SHELL=/usr/local/etc/rc.initial
...@@ -118,7 +118,7 @@ add 30000 set 0 count ip from any to any ...@@ -118,7 +118,7 @@ add 30000 set 0 count ip from any to any
#====================================================================================== #======================================================================================
# traffic shaping section, authorized traffic # traffic shaping section, authorized traffic
#====================================================================================== #======================================================================================
add 60000 return via any add 60000 return via any
add 65533 pass ip from any to any add 65533 pass ip from any to any
......
...@@ -120,7 +120,7 @@ if (isset($_POST['save'])) { ...@@ -120,7 +120,7 @@ if (isset($_POST['save'])) {
break; break;
} }
} }
$sys_groups = file_get_contents('/etc/group'); $sys_groups = file_get_contents('/etc/group');
foreach (explode("\n",$sys_groups) as $line) { foreach (explode("\n",$sys_groups) as $line) {
if (explode(":",$line)[0] == $_POST['groupname'] ) { if (explode(":",$line)[0] == $_POST['groupname'] ) {
...@@ -128,7 +128,6 @@ if (isset($_POST['save'])) { ...@@ -128,7 +128,6 @@ if (isset($_POST['save'])) {
} }
} }
} }
if (!$input_errors) { if (!$input_errors) {
$group = array(); $group = array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment