【发布时间】:2010-11-20 05:26:46
【问题描述】:
我在 FCK 编辑器中遇到图像问题。当我尝试上传图像时,它给了我连接器禁用错误,并且图像未显示在编辑器页面中。我正在使用 Visual Studio 2008 进行编程。请帮助
【问题讨论】:
我在 FCK 编辑器中遇到图像问题。当我尝试上传图像时,它给了我连接器禁用错误,并且图像未显示在编辑器页面中。我正在使用 Visual Studio 2008 进行编程。请帮助
【问题讨论】:
看看下面的代码:
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 文件。
【讨论】: