2

FCKエディターの画像に問題があります。画像をアップロードしようとすると、コネクタが無効になっているというエラーが表示され、画像がエディタページに表示されません。VisualStudio2008でプログラミングしています。助けてください

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;
    }

次に、アプリ ファイルとルート ファイルの両方を更新します。

于 2009-08-17T11:57:31.980 に答える