示例#1
0
function wp_connect_profile_fields($user)
{
    global $wptm_connect;
    if ($wptm_connect['sina'] || $wptm_connect['qq'] || $wptm_connect['qqlogin']) {
        global $wptm_connect;
        $user_id = $user->ID;
        echo '<h3>登录绑定</h3><table class="form-table">';
        wp_connect_bind_qq($user);
        echo '</table>';
    }
}
示例#2
0
function wp_connect_profile_fields($user)
{
    $user_id = $user->ID;
    $user_login = $user->user_login;
    echo '<h3>登录绑定</h3><table class="form-table">';
    if ($user->user_status == 0 && !is_super_admin($user_id)) {
        echo '<tr><th><label for="new_username">修改用户名</label></th><td><input type="text" name="new_username" id="new_username" value="' . $user_login . '" size="16" /><input type="hidden" name="old_username" id="old_username" value="' . $user_login . '" /> <span class="description">只允许修改一次</span></td></tr>';
    }
    if (!use_denglu_bind()) {
        wp_connect_bind_qq($user);
    } else {
        denglu_bindInfo($user);
    }
    echo '</table>';
}