Skip to content

Commit e006a3c

Browse files
committed
v1.2.0
1 parent 8f9a4f9 commit e006a3c

File tree

11 files changed

+110
-256
lines changed

11 files changed

+110
-256
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
obj/
22
.vs/
33
packages/
4+
*.zip

BuildScripts/MSBuild.Community.Tasks.Targets

Lines changed: 0 additions & 101 deletions
This file was deleted.

BuildScripts/ModulePackage.targets

Lines changed: 0 additions & 106 deletions
This file was deleted.

BuildScripts/build.bat

Lines changed: 0 additions & 2 deletions
This file was deleted.

Components/AjaxProvider.cs

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,21 @@ public override string ProcessCommand(string paramCmd, HttpContext context, stri
3232

3333
var strOut = "OS_PayBox Ajax Error";
3434

35-
// NOTE: The paramCmd MUST start with the plugin ref. in lowercase. (links ajax provider to cmd)
36-
switch (paramCmd)
35+
if (PluginUtils.CheckPluginSecurity(PortalSettings.Current.PortalId, "os_paybox"))
3736
{
38-
case "os_paybox_savesettings":
39-
strOut = objCtrl.SavePluginSinglePageData(context);
40-
break;
41-
case "os_paybox_selectlang":
42-
objCtrl.SavePluginSinglePageData(context);
43-
var nextlang = ajaxInfo.GetXmlProperty("genxml/hidden/nextlang");
44-
var info = objCtrl.GetPluginSinglePageData("OS_PayBoxpayment", "OS_PayBoxPAYMENT", nextlang);
45-
strOut = NBrightBuyUtils.RazorTemplRender("settingsfields.cshtml", 0, "", info, "/DesktopModules/NBright/OS_PayBox", "config", nextlang, StoreSettings.Current.Settings());
46-
break;
37+
// NOTE: The paramCmd MUST start with the plugin ref. in lowercase. (links ajax provider to cmd)
38+
switch (paramCmd)
39+
{
40+
case "os_paybox_savesettings":
41+
strOut = objCtrl.SavePluginSinglePageData(context);
42+
break;
43+
case "os_paybox_selectlang":
44+
objCtrl.SavePluginSinglePageData(context);
45+
var nextlang = ajaxInfo.GetXmlProperty("genxml/hidden/nextlang");
46+
var info = objCtrl.GetPluginSinglePageData("OS_PayBoxpayment", "OS_PayBoxPAYMENT", nextlang);
47+
strOut = NBrightBuyUtils.RazorTemplRender("settingsfields.cshtml", 0, "", info, "/DesktopModules/NBright/OS_PayBox", "config", nextlang, StoreSettings.Current.Settings());
48+
break;
49+
}
4750
}
4851

4952
return strOut;

DNNpackager.dnnpack

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<root>
2+
<version>1.2.0</version>
3+
<websitedestrelpath>/DesktopModules/NBright/OS_PayBox</websitedestrelpath>
4+
<websitedestbinrelpath>/bin</websitedestbinrelpath>
5+
<!-- Include only files that match the regular expression -->
6+
<regexpr>(\.cshtml|\.html|\.resx|\.dnn|\.png|\.jpg|\.gif|.jpeg|\.css|\.js|\.xml|\.txt|\.md|\.aspx|\.ascx|\.ashx)$</regexpr>
7+
<directory include='false'>
8+
<!-- All paths should be from the source root (project root) -->
9+
<value>\.git</value>
10+
<value>\.vs</value>
11+
<value>\bin</value>
12+
<value>\obj</value>
13+
<value>\Components</value>
14+
<value>\render</value>
15+
<value>\_external</value>
16+
<value>\packages</value>
17+
</directory>
18+
<file include='false'>
19+
</file>
20+
<file include='true'>
21+
<value>\Installation\pluginOS_PayBox.xml</value>
22+
</file>
23+
<assembly>
24+
<value>OS_PayBox.dll</value>
25+
</assembly>
26+
</root>
-32.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)