summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-04 05:18:35 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-04 05:18:35 +0000
commit7afb67e0297f83a015bf5dbc52a1cb74047464c2 (patch)
tree0d768ac1537c53122bd9356c0c8d0c55bde807fd /usr
parent09a1f637fb9d8ea7dd5fd8bab363cca512e9bc8b (diff)
downloadpfsense-7afb67e0297f83a015bf5dbc52a1cb74047464c2.zip
pfsense-7afb67e0297f83a015bf5dbc52a1cb74047464c2.tar.gz
MFC
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/guiconfig.inc20
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;
OpenPOWER on IntegriCloud