示例#1
0
    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"]) . "&amp;modifygo=1&amp;modifytype=sendaccount&amp;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();
    $errors = array();
    foreach (preg_split('/[\\s,]+/', (string) @$_REQUEST["tag"]) as $t) {
        if ($t === "") {