diff --git a/bureau/admin/adm_list.php b/bureau/admin/adm_list.php index 89f782c5..52f6077e 100644 --- a/bureau/admin/adm_list.php +++ b/bureau/admin/adm_list.php @@ -38,8 +38,8 @@ $fields = array ( "show" => array ("request", "string", ""), "creator" => array("request", "integer", 0), "short" => array("request", "integer", -1), - "pattern" => array("request", "string", FALSE), - "pattern_type" => array("request", "string", FALSE), + "pattern" => array("post", "string", "*"), + "pattern_type" => array("post", "string", "login"), ); getFields($fields); @@ -54,8 +54,9 @@ $subadmin=variable_get("subadmin_restriction", 0); // If we ask for all account but we aren't "admin" and // subadmin var is not 1 if ($show=="all" && !$subadmin==1 && $cuid != 2000) { - __("This page is restricted to authorized staff"); - exit(); + __("This page is restricted to authorized staff"); + include('foot.php'); + exit(); } if ($pattern && $pattern_type) { @@ -72,35 +73,35 @@ else
-
' , $error, ''; - } - if (!$r) { - __("Enter a pattern for login list"); - exit (0); - } +if ( !empty($error) ) { + echo '' , $error, '
'; +} +if (!$r) { + __("Enter a pattern for login list"); + exit (0); +} ?>()
get_creator_list(); if ($subadmin==1 || $cuid==2000) { if($show != 'all') { echo '' . _('List all AlternC accounts') . ''; if ($subadmin==1 || $cuid==2000) { - $list_creators = $admin->get_creator_list(); $infos_creators = array(); foreach ($list_creators as $key => $val) { @@ -241,8 +242,9 @@ for($z=0;$z<$rz;$z++){ checkcreator($val['uid'])) { ?> " title="">[ ] + -