diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-14 21:56:10 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-14 21:56:10 +0000 |
commit | 3e7cb64c7d4e2cd493b0bdf354f1e35914c083d3 (patch) | |
tree | 4af2787e89c2331d7bf7756da3849bb2e7f1e2ab /usr/local/www/services_captiveportal_users.php | |
parent | a210050367bbefa34abb9aa3fea76db592769563 (diff) | |
download | pfsense-3e7cb64c7d4e2cd493b0bdf354f1e35914c083d3.zip pfsense-3e7cb64c7d4e2cd493b0bdf354f1e35914c083d3.tar.gz |
Add captiveportal_users_sort from guiconfig.inc (1.2b10)
Diffstat (limited to 'usr/local/www/services_captiveportal_users.php')
-rwxr-xr-x | usr/local/www/services_captiveportal_users.php | 15 |
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 |