make it possible to add/remove administrators

This commit is contained in:
Jonathan Ernst
2005-01-17 04:30:39 +00:00
committed by WineHQ
parent f093a01229
commit 791bac8e09
4 changed files with 51 additions and 8 deletions

View File

@@ -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>&nbsp;</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>]&nbsp;[<a href=\"../preferences.php?userId=".$oRow->userid."&sSearch=".$sSearch."&iLimit=".$_REQUEST['iLimit']."&sOrderBy=".$_REQUEST['sOrderBy']."\">edit</a>]</td>\n";
echo "</tr>\n\n";
}