summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-27 17:33:22 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-27 17:33:22 +0000
commit0d6fa4f4726dbab3d32b9cedb6b9ff54d477f9d3 (patch)
tree0fa7e6a5e932157bde83a8c7636e1d23b1a82b81 /etc/inc
parent3cbbc3e50ddff82f16fd67119ecb792930c80ee3 (diff)
downloadpfsense-0d6fa4f4726dbab3d32b9cedb6b9ff54d477f9d3.zip
pfsense-0d6fa4f4726dbab3d32b9cedb6b9ff54d477f9d3.tar.gz
Fix Fatal error: Cannot redeclare captiveportal_get_next_ipfw_ruleno() (previously declared in /etc/inc/captiveportal.inc:957) in /etc/inc/captiveportal.inc on line 985
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/captiveportal.inc29
1 files changed, 0 insertions, 29 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index 1b2bfca..9b1b94d 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -946,35 +946,6 @@ function captiveportal_write_elements() {
return 0;
}
-
-/**
- * This function will calculate the lowest free firewall ruleno
- * within the range specified based on the actual installed rules
- *
- */
-
-function captiveportal_get_next_ipfw_ruleno($rulenos_start = 10000, $rulenos_range_max = 9899) {
-
- $fwrules = "";
- $matches = "";
-
- exec("/sbin/ipfw show", $fwrules);
- foreach ($fwrules as $fwrule) {
- preg_match("/^(\d+)\s+/", $fwrule, $matches);
- $rulenos_used[] = $matches[1];
- }
- $rulenos_used = array_unique($rulenos_used);
- $rulenos_range = count($rulenos_used);
- if ($rulenos_range > $rulenos_range_max) {
- return NULL;
- }
- $rulenos_pool = range($rulenos_start, ($rulenos_start + $rulenos_range));
- $rulenos_free = array_diff($rulenos_pool, $rulenos_used);
- $ruleno = array_shift($rulenos_free);
-
- return $ruleno;
-}
-
/*
* This function will calculate the lowest free firewall ruleno
* within the range specified based on the actual installed rules
OpenPOWER on IntegriCloud