Revision 666cc3d7
Added by Renato Botelho almost 8 years ago
src/etc/inc/captiveportal.inc | ||
---|---|---|
688 | 688 |
|
689 | 689 |
/* Delete all rules related to specific cpzone */ |
690 | 690 |
function captiveportal_delete_rules() { |
691 |
global $g, $cpzoneid; |
|
691 |
global $g, $cpzoneid, $cpzone;
|
|
692 | 692 |
|
693 | 693 |
$skipto1 = captiveportal_ipfw_ruleno($cpzoneid); |
694 | 694 |
$skipto2 = $skipto1 + $g['captiveportal_rules_interval']; |
... | ... | |
1762 | 1762 |
} |
1763 | 1763 |
|
1764 | 1764 |
function captiveportal_free_dnrules($rulenos_start = 2000, $rulenos_range_max = 64500) { |
1765 |
global $cpzone; |
|
1765 |
global $g, $cpzone;
|
|
1766 | 1766 |
|
1767 | 1767 |
$cpruleslck = lock("captiveportalrulesdn", LOCK_EX); |
1768 | 1768 |
if (file_exists("{$g['vardb_path']}/captiveportaldn.rules")) { |
Also available in: Unified diff
Ticket #7834: Add missing global declarations