2

FCK 编辑器中的图像有问题。当我尝试上传图像时,它给了我连接器禁用错误,并且图像未显示在编辑器页面中。我正在用 Visual Studio 2008 编程。请帮忙

4

1 回答 1

2

看看下面的代码:

private bool CheckAuthentication()
    {
        // WARNING : DO NOT simply return "true". By doing so, you are allowing
        // "anyone" to upload and list the files in your server. You must implement
        // some kind of session validation here. Even something very simple as...
        //
        //        return ( Session[ "IsAuthorized" ] != null && (bool)Session[ "IsAuthorized" ] == true );
        //
        // ... where Session[ "IsAuthorized" ] is set to "true" as soon as the
        // user logs in your system.
        MembershipUser m = Membership.GetUser();
        if (m != null)
        {
            return true;
        } else {
            return false;
        }
        //return false;
    }

然后更新 App 和 Root 文件。

于 2009-08-17T11:57:31.980 回答