-
Notifications
You must be signed in to change notification settings - Fork 8
/
UrlLog_Settings.ascx.cs
66 lines (55 loc) · 2.14 KB
/
UrlLog_Settings.ascx.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
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Satrabel.HttpModules.Config;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Common.Utilities;
using DotNetNuke.Entities.Modules.Actions;
using DotNetNuke.Security;
using Satrabel.Services.Log.UrlLog;
using DotNetNuke.Entities.Portals;
using Satrabel.HttpModules;
using DotNetNuke.Common;
namespace Satrabel.Modules.OpenUrlRewriter
{
public partial class UrlLog_Settings : PortalModuleBase
{
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
hlCancel.NavigateUrl = Globals.NavigateURL();
}
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
cbLogAuthentificatedUsers.Checked = UrlRewiterSettings.IsLogAuthentificatedUsers(PortalId);
cbLogEachUrlOneTime.Checked = UrlRewiterSettings.IsLogEachUrlOneTime(PortalId);
cbLogStatusCode200.Checked = UrlRewiterSettings.IsLogStatusCode200(PortalId);
cbLogEnabled.Checked = UrlRewiterSettings.IsLogEnabled(PortalId);
}
}
protected void lbSave_Click(object sender, EventArgs e)
{
UrlRewiterSettings.SetLogAuthentificatedUsers(PortalId, cbLogAuthentificatedUsers.Checked);
UrlRewiterSettings.SetLogEachUrlOneTime(PortalId, cbLogEachUrlOneTime.Checked);
UrlRewiterSettings.SetLogStatusCode200(PortalId, cbLogStatusCode200.Checked);
UrlRewiterSettings.SetLogEnabled(PortalId, cbLogEnabled.Checked);
this.Response.Redirect(Globals.NavigateURL(this.TabId), true);
/*
string webUrl = Globals.NavigateURL();
webUrl = (PortalSettings.EnablePopUps) ? UrlUtils.ClosePopUp(true, webUrl, false) : webUrl;
Response.Redirect(webUrl, true);
*/
}
}
}