diff options
author | Erik Fonnesbeck <efonnes@gmail.com> | 2010-11-10 22:58:30 -0700 |
---|---|---|
committer | Erik Fonnesbeck <efonnes@gmail.com> | 2010-11-10 22:58:30 -0700 |
commit | baaa8bb142f1f86dd7a7e60fe34fc07020fb482e (patch) | |
tree | 146336050de7920b8b62f217c865e64dda1efae4 /usr/local/bin | |
parent | 88bc276013552268ebef7058cd7b58c89de67125 (diff) | |
download | pfsense-baaa8bb142f1f86dd7a7e60fe34fc07020fb482e.zip pfsense-baaa8bb142f1f86dd7a7e60fe34fc07020fb482e.tar.gz |
Move this function to allow removing it from easyrule.
Diffstat (limited to 'usr/local/bin')
-rwxr-xr-x | usr/local/bin/easyrule | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/usr/local/bin/easyrule b/usr/local/bin/easyrule index 60f5fb1..f4c9dad 100755 --- a/usr/local/bin/easyrule +++ b/usr/local/bin/easyrule @@ -84,28 +84,6 @@ function is_specialnet($net) { return false; } -/* Another one we need from guiconfig.inc but can't include... */ -function filter_rules_sort() { - global $config; - - /* mark each rule with the sequence number (to retain the order while sorting) */ - for ($i = 0; isset($config['filter']['rule'][$i]); $i++) - $config['filter']['rule'][$i]['seq'] = $i; - - function filtercmp($a, $b) { - if ($a['interface'] == $b['interface']) - return $a['seq'] - $b['seq']; - else - return -strcmp($a['interface'], $b['interface']); - } - - usort($config['filter']['rule'], "filtercmp"); - - /* strip the sequence numbers again */ - for ($i = 0; isset($config['filter']['rule'][$i]); $i++) - unset($config['filter']['rule'][$i]['seq']); -} - if (($argc > 1) && !empty($argv[1])) { $message = ""; |