diff --git a/lam/lib/lists.inc b/lam/lib/lists.inc new file mode 100644 index 00000000..38761a15 --- /dev/null +++ b/lam/lib/lists.inc @@ -0,0 +1,78 @@ + \ No newline at end of file diff --git a/lam/templates/lists/listdomains.php b/lam/templates/lists/listdomains.php index cee3c073..ed010d0b 100644 --- a/lam/templates/lists/listdomains.php +++ b/lam/templates/lists/listdomains.php @@ -22,9 +22,10 @@ $Id$ This code displays a list of all Samba domains. */ -include_once ("../../lib/config.inc"); -include_once ("../../lib/ldap.inc"); -include_once ("../../lib/status.inc"); +include_once("../../lib/config.inc"); +include_once("../../lib/ldap.inc"); +include_once("../../lib/status.inc"); +include_once("../../lib/lists.inc"); // start session session_save_path("../../sess"); @@ -107,7 +108,7 @@ if (! $_GET['norefresh']) { // delete first array entry which is "count" array_shift($dom_info); // sort rows by sort column ($sort) - usort($dom_info, "cmp_array"); + $dom_info = listSort($sort, $attr_array, $dom_info); } else StatusMessage("ERROR", _("LDAP Search failed! Please check your preferences."), _("No Samba Domains found!")); } @@ -115,7 +116,7 @@ if (! $_GET['norefresh']) { else { if (sizeof($dom_info) == 0) StatusMessage("WARN", "", _("No Samba Domains found!")); // sort rows by sort column ($sort) - if ($dom_info) usort($dom_info, "cmp_array"); + if ($dom_info) $dom_info = listSort($sort, $attr_array, $dom_info); } echo ("