-
Notifications
You must be signed in to change notification settings - Fork 0
/
MojoPortalModule.cs
70 lines (60 loc) · 2.29 KB
/
MojoPortalModule.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
using mojoPortal.Web;
using mojoPortal.Web.UI;
using mojoPortal.Business;
using System;
using System.Web;
using System.Web.UI.WebControls;
using yaf;
using yaf.pages;
namespace yaf
{
public class MojoPortalModule : SiteModuleControl
{
protected yaf.Forum forum1;
private string m_email;
private int m_userID;
private string m_userName;
protected Panel pnlModuleContent;
private SiteUser siteUser;
private void MojoPortalModule_Load(object sender, EventArgs e)
{
try
{
//this.Forum1.BoardID=int.Parse(base.get_Settings()["forumboardid"].ToString()));
this.forum1.BoardID=1;
//string s = base.get_Settings()["forumcategoryid"].ToString();
string s = string.Empty;
if (s != string.Empty)
{
this.forum1.CategoryID=int.Parse(s);
}
}
catch (Exception)
{
this.forum1.BoardID = 1;
}
if (HttpContext.Current.User.Identity.IsAuthenticated)
{
// PortalSettings settings = (PortalSettings) HttpContext.Current.Items["PortalSettings"];
// UserInfo info = UserController.GetUser(settings.get_PortalId(), base.get_UserId(), false);
//SiteUtils.GetCurrentSiteUser();
this.m_userID = SiteUtils.GetCurrentSiteUser().UserId;
this.m_userName = SiteUtils.GetCurrentSiteUser().LoginName;
this.m_email = SiteUtils.GetCurrentSiteUser().Email;
//settings.get_AdministratorId();
int userID = this.m_userID;
string s = "";
}
}
private void forum1_PageTitleSet(object sender, ForumPageArgs e)
{
//this.BasePage.Title = e.get_Title() + " - " + this.BasePage.Title;
}
protected override void OnInit(EventArgs e)
{
base.Load += new EventHandler(this.MojoPortalModule_Load);
//this.forum1.PageTitleSet(new EventHandler<ForumPageArgs>(this.Forum1_PageTitleSet));
base.OnInit(e);
}
}
}