Skip to content

Commit

Permalink
Updated DB Dump, ParserHelper.cs and Global.asax.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mac committed Feb 2, 2017
1 parent 0b9ac4b commit aa4b355
Show file tree
Hide file tree
Showing 18 changed files with 74 additions and 24 deletions.
4 changes: 3 additions & 1 deletion FrameworkLibrary/Helpers/ParserHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,10 @@ public static string ParseData(string data, object obj, bool compileRazor = true
}
else
{
if (!string.IsNullOrEmpty(tagValue))
if (data != tagValue && !data.StartsWith("@"))
{
data = tagValue;
}
}
}

Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<div class="clear"></div>
</div>
</div>
<%-- <div>
<div>
<h3>Clear All Cache & Delete All History Versions</h3>
This tool will delete all history versions currently saved in the database and will clear all the cache at the same time<br />
<div class="buttons">
Expand All @@ -24,7 +24,7 @@
Delete any saved Drafts as well
<div class="clear"></div>
</div>
</div>--%>
</div>
</fieldset>

<fieldset>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ protected void ClearAllCache_OnClick(object sender, EventArgs e)
FileCacheHelper.ClearAllCache();
}

/*protected void DeleteAllHistoryAndClearAllCache_Click(object sender, EventArgs e)
protected void DeleteAllHistoryAndClearAllCache_Click(object sender, EventArgs e)
{
try
{
Expand All @@ -116,7 +116,7 @@ protected void ClearAllCache_OnClick(object sender, EventArgs e)

DisplayErrorMessage("Error Clearing All Cache", ErrorHelper.CreateError(ex));
}
}*/
}

/*protected void EmailLog_PageIndexChanging(object sender, System.Web.UI.WebControls.GridViewPageEventArgs e)
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion WebApplication/Global.asax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ private void Application_BeginRequest(Object source, EventArgs e)
Response.Redirect(installerPath);
}

if (!AppSettings.IsRunningOnDev && !Request.Url.Host.StartsWith("www."))
if (!AppSettings.IsRunningOnDev && (!Request.Url.Host.StartsWith("www.") && !Request.Url.Host.Contains("localhost")))
Response.RedirectPermanent(Request.Url.AbsoluteUri.Replace("://", "://www."));

BaseService.AddResponseHeaders();
Expand Down
Binary file not shown.
27 changes: 21 additions & 6 deletions WebApplication/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@
<remove name="PassportAuthentication" />
<remove name="UrlAuthentication" />
<remove name="FileAuthentication" />
<add name="ImageProcessorModule" type="ImageProcessor.Web.HttpModules.ImageProcessingModule, ImageProcessor.Web" />
</httpModules>

<add name="ImageProcessorModule" type="ImageProcessor.Web.HttpModules.ImageProcessingModule, ImageProcessor.Web" /></httpModules>
<authentication mode="Forms">
<forms loginUrl="~/login/" name="adAuthCookie" timeout="2880" slidingExpiration="true" />
</authentication>
Expand Down Expand Up @@ -249,8 +249,8 @@
<remove name="PassportAuthentication" />
<remove name="UrlAuthentication" />
<remove name="FileAuthentication" />
<add name="ImageProcessorModule" type="ImageProcessor.Web.HttpModules.ImageProcessingModule, ImageProcessor.Web" />
</modules>

<add name="ImageProcessorModule" type="ImageProcessor.Web.HttpModules.ImageProcessingModule, ImageProcessor.Web" /></modules>
<handlers>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Expand All @@ -268,8 +268,8 @@
<mimeMap fileExtension=".woff2" mimeType="application/octet-stream" />
</staticContent>

<validation validateIntegratedModeConfiguration="false" />
</system.webServer>

<validation validateIntegratedModeConfiguration="false" /></system.webServer>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
Expand All @@ -281,4 +281,19 @@
</providers>
</entityFramework>

<runtime>

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

<dependentAssembly>

<assemblyIdentity name="System.Net.Http.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />

<bindingRedirect oldVersion="0.0.0.0-4.2.29.0" newVersion="4.2.29.0" />

</dependentAssembly>

</assemblyBinding>

</runtime>
</configuration>
8 changes: 4 additions & 4 deletions WebApplication/WebApplication.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@
<HintPath>..\packages\HtmlAgilityPack.1.4.9.5\lib\Net45\HtmlAgilityPack.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="ImageProcessor, Version=2.5.1.0, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="ImageProcessor, Version=2.5.2.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\ImageProcessor.2.5.1\lib\net45\ImageProcessor.dll</HintPath>
<HintPath>..\packages\ImageProcessor.2.5.2\lib\net45\ImageProcessor.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="ImageProcessor.Web, Version=4.7.2.0, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="ImageProcessor.Web, Version=4.8.1.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\ImageProcessor.Web.4.7.2\lib\net45\ImageProcessor.Web.dll</HintPath>
<HintPath>..\packages\ImageProcessor.Web.4.8.1\lib\net45\ImageProcessor.Web.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="LinqToTwitterPcl, Version=3.1.2.18329, Culture=neutral, PublicKeyToken=957107be965c25d9, processorArchitecture=MSIL">
Expand Down
Binary file modified WebApplication/bin/FrameworkLibrary.dll
Binary file not shown.
Binary file modified WebApplication/bin/FrameworkLibrary.pdb
Binary file not shown.
Binary file modified WebApplication/bin/TinyFileManager.dll
Binary file not shown.
Binary file modified WebApplication/bin/TinyFileManager.pdb
Binary file not shown.
Binary file modified WebApplication/bin/WebApplication.dll
Binary file not shown.
27 changes: 21 additions & 6 deletions WebApplication/bin/WebApplication.dll.config
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@
<remove name="PassportAuthentication" />
<remove name="UrlAuthentication" />
<remove name="FileAuthentication" />
<add name="ImageProcessorModule" type="ImageProcessor.Web.HttpModules.ImageProcessingModule, ImageProcessor.Web" />
</httpModules>

<add name="ImageProcessorModule" type="ImageProcessor.Web.HttpModules.ImageProcessingModule, ImageProcessor.Web" /></httpModules>
<authentication mode="Forms">
<forms loginUrl="~/login/" name="adAuthCookie" timeout="2880" slidingExpiration="true" />
</authentication>
Expand Down Expand Up @@ -249,8 +249,8 @@
<remove name="PassportAuthentication" />
<remove name="UrlAuthentication" />
<remove name="FileAuthentication" />
<add name="ImageProcessorModule" type="ImageProcessor.Web.HttpModules.ImageProcessingModule, ImageProcessor.Web" />
</modules>

<add name="ImageProcessorModule" type="ImageProcessor.Web.HttpModules.ImageProcessingModule, ImageProcessor.Web" /></modules>
<handlers>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Expand All @@ -268,8 +268,8 @@
<mimeMap fileExtension=".woff2" mimeType="application/octet-stream" />
</staticContent>

<validation validateIntegratedModeConfiguration="false" />
</system.webServer>

<validation validateIntegratedModeConfiguration="false" /></system.webServer>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
Expand All @@ -281,4 +281,19 @@
</providers>
</entityFramework>

<runtime>

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

<dependentAssembly>

<assemblyIdentity name="System.Net.Http.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />

<bindingRedirect oldVersion="0.0.0.0-4.2.29.0" newVersion="4.2.29.0" />

</dependentAssembly>

</assemblyBinding>

</runtime>
</configuration>
Binary file modified WebApplication/bin/WebApplication.pdb
Binary file not shown.
4 changes: 2 additions & 2 deletions WebApplication/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<package id="CSSFriendly" version="1.0" targetFramework="net452" />
<package id="EntityFramework" version="6.1.3" targetFramework="net45" />
<package id="HtmlAgilityPack" version="1.4.9.5" targetFramework="net452" />
<package id="ImageProcessor" version="2.5.1" targetFramework="net452" />
<package id="ImageProcessor.Web" version="4.7.2" targetFramework="net452" />
<package id="ImageProcessor" version="2.5.2" targetFramework="net452" />
<package id="ImageProcessor.Web" version="4.8.1" targetFramework="net452" />
<package id="Microsoft.Azure.KeyVault.Core" version="2.0.4" targetFramework="net452" />
<package id="Microsoft.IO.RecyclableMemoryStream" version="1.2.1" targetFramework="net452" />
<package id="Microsoft.Net.Compilers" version="1.3.2" targetFramework="net452" developmentDependency="true" />
Expand Down

0 comments on commit aa4b355

Please sign in to comment.