|
|
@ -32,11 +32,9 @@ namespace FLocal.IISHandler { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private IUserSettings _userSettings; |
|
|
|
public IUserSettings userSettings { |
|
|
|
public override IUserSettings userSettings { |
|
|
|
get; |
|
|
|
get { |
|
|
|
private set; |
|
|
|
return this._userSettings; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public override Common.IOutputParams outputParams { |
|
|
|
public override Common.IOutputParams outputParams { |
|
|
@ -59,7 +57,10 @@ namespace FLocal.IISHandler { |
|
|
|
return PageOuter.create(this.userSettings.postsPerPage, posts).exportToXml(2, 0, 2); |
|
|
|
return PageOuter.create(this.userSettings.postsPerPage, posts).exportToXml(2, 0, 2); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public DateTime requestTime; |
|
|
|
public DateTime requestTime { |
|
|
|
|
|
|
|
get; |
|
|
|
|
|
|
|
private set; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Session session; |
|
|
|
public Session session; |
|
|
|
|
|
|
|
|
|
|
@ -72,6 +73,10 @@ namespace FLocal.IISHandler { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override bool isPostVisible(Post post) { |
|
|
|
|
|
|
|
return this.userSettings.isPostVisible(post); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public WebContext(HttpContext httpcontext) { |
|
|
|
public WebContext(HttpContext httpcontext) { |
|
|
|
this.httpcontext = httpcontext; |
|
|
|
this.httpcontext = httpcontext; |
|
|
|
this.requestTime = DateTime.Now; |
|
|
|
this.requestTime = DateTime.Now; |
|
|
@ -90,9 +95,9 @@ namespace FLocal.IISHandler { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(this.session != null) { |
|
|
|
if(this.session != null) { |
|
|
|
this._userSettings = AccountSettings.LoadByAccount(this.session.account); |
|
|
|
this.userSettings = AccountSettings.LoadByAccount(this.session.account); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this._userSettings = new AnonymousUserSettings(); |
|
|
|
this.userSettings = new AnonymousUserSettings(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|