Revision a4cd8f03
Added by Ermal Luçi over 10 years ago
usr/local/www/services_captiveportal_mac.php | ||
---|---|---|
71 | 71 |
if ($_POST['apply']) { |
72 | 72 |
$retval = 0; |
73 | 73 |
|
74 |
$cpzoneid = $a_cp[$cpzone]['cpzoneid']; |
|
75 |
$rules = captiveportal_passthrumac_configure(); |
|
76 |
@file_put_contents("{$g['tmp_path']}/passthrumac_gui", $rules); |
|
77 |
mwexec("/sbin/ipfw -x {$cpzoneid} {$g['tmp_path']}/passthrumac_gui"); |
|
78 |
$savemsg = get_std_save_message($retval); |
|
79 |
if ($retval == 0) |
|
80 |
clear_subsystem_dirty('passthrumac'); |
|
81 |
@unlink("{$g['tmp_path']}/passthrumac_gui"); |
|
74 |
if (is_array($a_cp[$cpzone]['passthrumac'])) { |
|
75 |
if (count($a_cp[$cpzone]['passthrumac']) > 2000) |
|
76 |
set_time_limit(0); |
|
77 |
$cpzoneid = $a_cp[$cpzone]['cpzoneid']; |
|
78 |
$rules = captiveportal_passthrumac_configure(); |
|
79 |
@file_put_contents("{$g['tmp_path']}/passthrumac_gui", $rules); |
|
80 |
mwexec("/sbin/ipfw -x {$cpzoneid} {$g['tmp_path']}/passthrumac_gui"); |
|
81 |
$savemsg = get_std_save_message($retval); |
|
82 |
if ($retval == 0) |
|
83 |
clear_subsystem_dirty('passthrumac'); |
|
84 |
@unlink("{$g['tmp_path']}/passthrumac_gui"); |
|
85 |
set_time_limit(900); |
|
86 |
} |
|
82 | 87 |
} |
83 | 88 |
|
84 | 89 |
if ($_POST['postafterlogin']) { |
Also available in: Unified diff
Properly handle large passthrough entries even here.