</td>
</tr>"
);
+ $makeburo = wfMsg( "setbureaucratflag" );
+ $wgOut->addHTML(
+ "<tr>
+ <td> </td><td align=left>
+ <input type=checkbox name=\"wpSetBureaucrat\" value=1>$makeburo
+ </td>
+ </tr>"
+ );
+
$mss = wfMsg( "makesysopsubmit" );
$wgOut->addHTML(
"<tr>
function doSubmit()
{
- global $wgOut, $wgUser, $wgLang, $wpMakesysopUser, $wgDBname, $wgMemc;
+ global $wgOut, $wgUser, $wgLang, $wpMakesysopUser, $wpSetBureaucrat;
+ global $wgDBname, $wgMemc;
+
$parts = explode( "@", $wpMakesysopUser );
if( count( $parts ) == 2){
$username = addslashes( $parts[0] );
if(! in_array("sysop", $rights ) ){
$rights[] = "sysop";
}
+ if ( $wpSetBureaucrat && !in_array( "bureaucrat", $rights ) ) {
+ $rights[] = "bureaucrat";
+ }
$newrights = addslashes( implode( ",", $rights ) );
} else {
$newrights = "sysop";
"makesysopsubmit" => "Make this user into a sysop",
"makesysopok" => "<b>User '$1' is now a sysop</b>",
"makesysopfail" => "<b>User '$1' could not be made into a sysop. (Did you enter the name correctly?)</b>",
+"setbureaucratflag" => "Set bureaucrat flag",
# Move page
#