if (@$j->ok && @$j->warnings) { $Conf->warnMsg("<div>" . join("</div><div style='margin-top:0.5em'>", $j->warnings) . "</div>"); } if (@$j->ok && $ok_message && (!$ok_message_optional || !@$j->warnings)) { $Conf->confirmMsg($ok_message); } } if ($Me->privChair && @$_REQUEST["modifygo"] && check_post() && isset($papersel)) { if (@$_REQUEST["modifytype"] == "disableaccount") { modify_confirm(UserActions::disable($papersel, $Me), "Accounts disabled.", true); } else { if (@$_REQUEST["modifytype"] == "enableaccount") { modify_confirm(UserActions::enable($papersel, $Me), "Accounts enabled.", true); } else { if (@$_REQUEST["modifytype"] == "resetpassword") { modify_confirm(UserActions::reset_password($papersel, $Me), "Passwords reset. <a href=\"" . hoturl_post("users", "t=" . urlencode($_REQUEST["t"]) . "&modifygo=1&modifytype=sendaccount&pap=" . join("+", $papersel)) . "\">Send account information to those accounts</a>", false); } else { if (@$_REQUEST["modifytype"] == "sendaccount") { modify_confirm(UserActions::send_account_info($papersel, $Me), "Account information sent.", false); } } } } redirectSelf(array("modifygo" => null, "modifytype" => null)); } function do_tags() { global $Conf, $Me, $papersel; // check tags $tagger = new Tagger($Me); $t1 = array();