diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-04 05:18:35 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-04 05:18:35 +0000 |
commit | 7afb67e0297f83a015bf5dbc52a1cb74047464c2 (patch) | |
tree | 0d768ac1537c53122bd9356c0c8d0c55bde807fd /usr | |
parent | 09a1f637fb9d8ea7dd5fd8bab363cca512e9bc8b (diff) | |
download | pfsense-7afb67e0297f83a015bf5dbc52a1cb74047464c2.zip pfsense-7afb67e0297f83a015bf5dbc52a1cb74047464c2.tar.gz |
MFC
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index d607e02..81dcb7d 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -287,6 +287,16 @@ function pprint_port($port) { return $pport; } +function captiveportal_users_sort() { + global $g, $config; + + function cpusercmp($a, $b) { + return strcasecmp($a['name'], $b['name']); + } + + usort($config['captiveportal']['user'], "cpusercmp"); +} + /* sort by interface only, retain the original order of rules that apply to the same interface */ function filter_rules_sort() { @@ -470,6 +480,16 @@ function passthrumacs_sort() { usort($config['captiveportal']['passthrumac'],"passthrumacscmp"); } +function cpelements_sort() { + global $g, $config; + + function cpelementscmp($a, $b) { + return strcasecmp($a['name'], $b['name']); + } + + usort($config['captiveportal']['element'],"cpelementscmp"); +} + function allowedips_sort() { global $g, $config; |