make it possible to add/remove administrators
This commit is contained in:
@@ -71,6 +71,7 @@ if($_REQUEST['sSubmit'])
|
||||
echo " <td>E-mail</td>\n";
|
||||
echo " <td>Creation date</td>\n";
|
||||
echo " <td>Last connected</td>\n";
|
||||
echo " <td>Roles</td>\n";
|
||||
echo " <td> </td>\n";
|
||||
echo "</tr>\n\n";
|
||||
if(is_numeric($_REQUEST['iLimit']) && in_array($_REQUEST['sOrderBy'],array("email","realname","created")))
|
||||
@@ -90,6 +91,10 @@ if($_REQUEST['sSubmit'])
|
||||
echo " <td>".$oRow->email."</td>\n";
|
||||
echo " <td>".$oRow->created."</td>\n";
|
||||
echo " <td>".$oRow->stamp."</td>\n";
|
||||
echo " <td>";
|
||||
if(isAdministrator($oRow->userid)) echo "A";
|
||||
if(isMaintainer($oRow->userid)) echo "M";
|
||||
echo " </td>\n";
|
||||
echo " <td>[<a onclick=\"if(!confirm('".$sAreYouSure."'))return false;\" \"href=\"".$_SERVER['PHP_SELF']."?action=delete&userId=".$oRow->userid."&sSearch=".$sSearch."&iLimit=".$_REQUEST['iLimit']."&sOrderBy=".$_REQUEST['sOrderBy']."&sSubmit=true\">delete</a>] [<a href=\"../preferences.php?userId=".$oRow->userid."&sSearch=".$sSearch."&iLimit=".$_REQUEST['iLimit']."&sOrderBy=".$_REQUEST['sOrderBy']."\">edit</a>]</td>\n";
|
||||
echo "</tr>\n\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user