Skip to content

Commit 5f4fc0d

Browse files
committed
v1.2.0
1 parent 6c29db9 commit 5f4fc0d

File tree

10 files changed

+39
-238
lines changed

10 files changed

+39
-238
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,3 +328,4 @@ ASALocalRun/
328328

329329
# MFractors (Xamarin productivity tool) working folder
330330
.mfractor/
331+
*.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: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,23 @@ public override string ProcessCommand(string paramCmd, HttpContext context, stri
3232
var objCtrl = new NBrightBuyController();
3333

3434
var strOut = "OS_WorldPay Ajax Error";
35-
36-
if (UserController.Instance.GetCurrentUserInfo().IsInRole("Administrators") || UserController.Instance.GetCurrentUserInfo().IsInRole("manager"))
35+
if (PluginUtils.CheckPluginSecurity(PortalSettings.Current.PortalId, "os_worldpay"))
3736
{
38-
// NOTE: The paramCmd MUST start with the plugin ref. in lowercase. (links ajax provider to cmd)
39-
switch (paramCmd)
37+
if (UserController.Instance.GetCurrentUserInfo().IsInRole("Administrators") || UserController.Instance.GetCurrentUserInfo().IsInRole("manager"))
4038
{
41-
case "os_worldpay_savesettings":
42-
strOut = objCtrl.SavePluginSinglePageData(context);
43-
break;
44-
case "os_worldpay_selectlang":
45-
objCtrl.SavePluginSinglePageData(context);
46-
var nextlang = ajaxInfo.GetXmlProperty("genxml/hidden/nextlang");
47-
var info = objCtrl.GetPluginSinglePageData("OS_WorldPaypayment", "OS_WorldPayPAYMENT", nextlang);
48-
strOut = NBrightBuyUtils.RazorTemplRender("settingsfields.cshtml", 0, "", info, "/DesktopModules/NBright/OS_WorldPay", "config", nextlang, StoreSettings.Current.Settings());
49-
break;
39+
// NOTE: The paramCmd MUST start with the plugin ref. in lowercase. (links ajax provider to cmd)
40+
switch (paramCmd)
41+
{
42+
case "os_worldpay_savesettings":
43+
strOut = objCtrl.SavePluginSinglePageData(context);
44+
break;
45+
case "os_worldpay_selectlang":
46+
objCtrl.SavePluginSinglePageData(context);
47+
var nextlang = ajaxInfo.GetXmlProperty("genxml/hidden/nextlang");
48+
var info = objCtrl.GetPluginSinglePageData("OS_WorldPaypayment", "OS_WorldPayPAYMENT", nextlang);
49+
strOut = NBrightBuyUtils.RazorTemplRender("settingsfields.cshtml", 0, "", info, "/DesktopModules/NBright/OS_WorldPay", "config", nextlang, StoreSettings.Current.Settings());
50+
break;
51+
}
5052
}
5153
}
5254

-144 KB
Binary file not shown.

OS_WorldPay.csproj

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
44
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
55
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -10,7 +10,7 @@
1010
<AppDesignerFolder>Properties</AppDesignerFolder>
1111
<RootNamespace>OS_WorldPay</RootNamespace>
1212
<AssemblyName>OS_WorldPay</AssemblyName>
13-
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
13+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
1414
<FileAlignment>512</FileAlignment>
1515
<TargetFrameworkProfile />
1616
<NuGetPackageImportStamp>
@@ -40,18 +40,15 @@
4040
<SpecificVersion>False</SpecificVersion>
4141
<HintPath>..\..\..\bin\DotNetNuke.dll</HintPath>
4242
</Reference>
43-
<Reference Include="NBrightBuy">
44-
<HintPath>..\..\..\bin\NBrightBuy.dll</HintPath>
45-
</Reference>
4643
<Reference Include="NBrightCore">
47-
<HintPath>..\..\..\bin\NBrightCore.dll</HintPath>
44+
<HintPath>..\NBrightBuy\_external\NBrightCore.dll</HintPath>
4845
</Reference>
4946
<Reference Include="NBrightDNN">
50-
<HintPath>..\..\..\bin\NBrightDNN.dll</HintPath>
47+
<HintPath>..\NBrightBuy\_external\NBrightDNN.dll</HintPath>
5148
</Reference>
5249
<Reference Include="RazorEngine, Version=3.7.7.0, Culture=neutral, PublicKeyToken=9ee697374c7e744a, processorArchitecture=MSIL">
5350
<SpecificVersion>False</SpecificVersion>
54-
<HintPath>..\..\..\bin\RazorEngine.dll</HintPath>
51+
<HintPath>..\NBrightBuy\_external\RazorEngine.dll</HintPath>
5552
</Reference>
5653
<Reference Include="System" />
5754
<Reference Include="System.Core" />
@@ -93,9 +90,6 @@
9390
</Content>
9491
<Content Include="Themes\config\img\logo.png" />
9592
<Content Include="Themes\config\js\OSWorldPay.js" />
96-
<None Include="BuildScripts\build.bat" />
97-
<None Include="BuildScripts\ModulePackage.targets" />
98-
<None Include="BuildScripts\MSBuild.Community.Tasks.Targets" />
9993
<None Include="OS_WorldPay.dnn" />
10094
<None Include="packages.config" />
10195
<None Include="README.md" />
@@ -118,6 +112,12 @@
118112
<Folder Include="Documentation\" />
119113
<Folder Include="Themes\config\resx\" />
120114
</ItemGroup>
115+
<ItemGroup>
116+
<ProjectReference Include="..\NBrightBuy\NBrightBuy.csproj">
117+
<Project>{8f850303-bec5-4247-9126-1e58f1402205}</Project>
118+
<Name>NBrightBuy</Name>
119+
</ProjectReference>
120+
</ItemGroup>
121121
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
122122
<Import Project="BuildScripts\ModulePackage.Targets" />
123123
<Target Name="AfterBuild" DependsOnTargets="PackageAndDeploy">

0 commit comments

Comments
 (0)