summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-09-14 21:56:10 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-09-14 21:56:10 +0000
commit3e7cb64c7d4e2cd493b0bdf354f1e35914c083d3 (patch)
tree4af2787e89c2331d7bf7756da3849bb2e7f1e2ab /usr/local/www
parenta210050367bbefa34abb9aa3fea76db592769563 (diff)
downloadpfsense-3e7cb64c7d4e2cd493b0bdf354f1e35914c083d3.zip
pfsense-3e7cb64c7d4e2cd493b0bdf354f1e35914c083d3.tar.gz
Add captiveportal_users_sort from guiconfig.inc (1.2b10)
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/services_captiveportal_users.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/usr/local/www/services_captiveportal_users.php b/usr/local/www/services_captiveportal_users.php
index 8c61401..89b2238 100755
--- a/usr/local/www/services_captiveportal_users.php
+++ b/usr/local/www/services_captiveportal_users.php
@@ -111,3 +111,18 @@ include("head.inc");
</tr>
</table>
<?php include("fend.inc"); ?>
+
+<?php
+
+function captiveportal_users_sort() {
+ global $g, $config;
+
+ function cpusercmp($a, $b) {
+ return strcasecmp($a['name'], $b['name']);
+ }
+
+ usort($config['captiveportal']['user'], "cpusercmp");
+}
+
+
+?> \ No newline at end of file
OpenPOWER on IntegriCloud