Skip to content

Commit

Permalink
v1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
leedavi committed Mar 6, 2021
1 parent c307c94 commit 87f20ef
Show file tree
Hide file tree
Showing 10 changed files with 94 additions and 253 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ packages/
obj/
.vs/
bin
*.zip
101 changes: 0 additions & 101 deletions BuildScripts/MSBuild.Community.Tasks.Targets

This file was deleted.

106 changes: 0 additions & 106 deletions BuildScripts/ModulePackage.targets

This file was deleted.

2 changes: 0 additions & 2 deletions BuildScripts/build.bat

This file was deleted.

25 changes: 14 additions & 11 deletions Components/AjaxProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,21 @@ public override string ProcessCommand(string paramCmd, HttpContext context, stri

var strOut = "OS_SystemPay Ajax Error";

// NOTE: The paramCmd MUST start with the plugin ref. in lowercase. (links ajax provider to cmd)
switch (paramCmd)
if (PluginUtils.CheckPluginSecurity(PortalSettings.Current.PortalId, "ospayplug"))
{
case "os_systempay_savesettings":
strOut = objCtrl.SavePluginSinglePageData(context);
break;
case "os_systempay_selectlang":
objCtrl.SavePluginSinglePageData(context);
var nextlang = ajaxInfo.GetXmlProperty("genxml/hidden/nextlang");
var info = objCtrl.GetPluginSinglePageData("OS_SystemPaypayment", "OS_SystemPayPAYMENT", nextlang);
strOut = NBrightBuyUtils.RazorTemplRender("settingsfields.cshtml", 0, "", info, "/DesktopModules/NBright/OS_SystemPay", "config", nextlang, StoreSettings.Current.Settings());
break;
// NOTE: The paramCmd MUST start with the plugin ref. in lowercase. (links ajax provider to cmd)
switch (paramCmd)
{
case "os_systempay_savesettings":
strOut = objCtrl.SavePluginSinglePageData(context);
break;
case "os_systempay_selectlang":
objCtrl.SavePluginSinglePageData(context);
var nextlang = ajaxInfo.GetXmlProperty("genxml/hidden/nextlang");
var info = objCtrl.GetPluginSinglePageData("OS_SystemPaypayment", "OS_SystemPayPAYMENT", nextlang);
strOut = NBrightBuyUtils.RazorTemplRender("settingsfields.cshtml", 0, "", info, "/DesktopModules/NBright/OS_SystemPay", "config", nextlang, StoreSettings.Current.Settings());
break;
}
}

return strOut;
Expand Down
25 changes: 25 additions & 0 deletions DNNpackager.dnnpack
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<root>
<version>1.4.0</version>
<websitedestrelpath>/DesktopModules/NBright/OS_SystemPay</websitedestrelpath>
<websitedestbinrelpath>/bin</websitedestbinrelpath>
<!-- Include only files that match the regular expression -->
<regexpr>(\.cshtml|\.html|\.resx|\.dnn|\.png|\.css|\.js|\.xml|\.txt|\.md|\.aspx|\.ascx|\.ashx)$</regexpr>
<directory include='false'>
<!-- All paths should be from the source root (project root) -->
<value>\.git</value>
<value>\.vs</value>
<value>\bin</value>
<value>\obj</value>
<value>\Components</value>
<value>\render</value>
<value>\_external</value>
</directory>
<file include='false'>
</file>
<file include='true'>
<value>\Installation\pluginOS_SystemPay.xml</value>
</file>
<assembly>
<value>OS_SystemPay.dll</value>
</assembly>
</root>
Binary file removed Installation/OS_SystemPay_1.2.1_Install.zip
Binary file not shown.
Loading

0 comments on commit 87f20ef

Please sign in to comment.