diff --git a/.gitattributes b/.gitattributes index 55160680..196676f1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -361,6 +361,7 @@ bureau/class/m_admin.php -text bureau/class/m_authip.php -text bureau/class/m_bro.php -text bureau/class/m_cron.php -text +bureau/class/m_crypto.php -text bureau/class/m_debug_alternc.php -text bureau/class/m_dom.php -text bureau/class/m_err.php -text diff --git a/bureau/admin/adm_list.php b/bureau/admin/adm_list.php index 4eb9631a..aa7173ff 100644 --- a/bureau/admin/adm_list.php +++ b/bureau/admin/adm_list.php @@ -38,6 +38,7 @@ $fields = array ( "show" => array ("request", "string", ""), "creator" => array("request", "integer", 0), "short" => array("request", "integer", -1), + "pattern" => array("request", "string", FALSE), ); getFields($fields); @@ -56,15 +57,35 @@ if ($show=="all" && !$subadmin==1 && $cuid != 2000) { exit(); } -$r=$admin->get_list($show == 'all' ? 1 : 0, $creator); +if ($pattern) + $r=$admin->get_list($show == 'all' ? 1 : 0, $creator, $pattern); +else + $r = FALSE; ?> +
+ +
+ + + $error"; + echo '' , $error, '
'; + } + if (!$r) { + __("Enter a pattern for login list"); + exit (0); } ?>@@ -92,15 +113,13 @@ if($show != 'all') { echo '
' . _('List only my accounts') . '
'; } }// END ($subadmin==1 || $cuid==2000) -?> - -"._("No account defined for now").""; + echo '' , _("No account defined for now"), '
'; } else { ?> +