Project

General

Profile

« Previous | Next » 

Revision 7afb67e0

Added by Scott Ullrich over 19 years ago

MFC

View differences:

usr/local/www/guiconfig.inc
287 287
	return $pport;
288 288
}
289 289

  
290
function captiveportal_users_sort() {
291
	global $g, $config;
292
	
293
	function cpusercmp($a, $b) {
294
		return strcasecmp($a['name'], $b['name']);
295
	}
296
	
297
	usort($config['captiveportal']['user'], "cpusercmp");
298
}
299

  
290 300
/* sort by interface only, retain the original order of rules that apply to
291 301
   the same interface */
292 302
function filter_rules_sort() {
......
470 480
	usort($config['captiveportal']['passthrumac'],"passthrumacscmp");
471 481
}
472 482

  
483
function cpelements_sort() {
484
	global $g, $config;
485

  
486
	function cpelementscmp($a, $b) {
487
		return strcasecmp($a['name'], $b['name']);
488
	}
489
	
490
	usort($config['captiveportal']['element'],"cpelementscmp");
491
}
492

  
473 493
function allowedips_sort() {
474 494
	global $g, $config;
475 495

  

Also available in: Unified diff