This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Sitecore.Pipelines; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.Mvc; | |
using System.Web.Routing; | |
namespace SC.Website.Web.App_Start | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<pipelines> | |
<initialize> | |
<processor | |
type="SC.Website.Web.App_Start.RegisterMvcRoutes,SC.Website.Web" | |
patch:before="processor[1]"> | |
<mvcIgnoreHomePage>false</mvcIgnoreHomePage> | |
</processor> | |
</initialize> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using Sitecore.Data.Items; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Text; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/"> | |
<sitecore> | |
<pipelines> | |
<initialize> | |
<!--Delete--> | |
<processor type="Sitecore.Eventing.Remote.RemoteEventMap, Sitecore.Kernel" method="InitializeFromPipeline"> | |
<patch:delete/> | |
</processor> | |
<processor type="Sitecore.Eventing.Remote.RemoteEventMap, Sitecore.Kernel" method="InitializeFromPipeline" | |
patch:before="processor[@type='Sitecore.Pipelines.Loader.ShowVersion, Sitecore.Kernel']"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sitecore.Security.AccessControl.AccessResultCacheRecord aRecord | |
= arCache.InnerCache.GetValue(arCacheKey) as Sitecore.Security.AccessControl.AccessResultCacheRecord; | |
if (aRecord != null) | |
{ | |
Sitecore.Security.AccessControl.AccessResult aResult = | |
aRecord.Value as Sitecore.Security.AccessControl.AccessResult; | |
if (aResult != null) | |
{ | |
Response.Write("Key : " + arCacheKey.AccessRight.Title + | |
"," + arCache.InnerCache.GetValue(arCacheKey) + "," |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string dbName = QueryString.Current["database"]; | |
string itemPath = QueryString.Current["itemPath"]; | |
if (!string.IsNullOrWhiteSpace(dbName) && !string.IsNullOrWhiteSpace(itemPath)) | |
{ | |
Sitecore.Data.Database db = Sitecore.Configuration.Factory.GetDatabase(dbName); | |
if (db != null) | |
{ | |
rootItem = db.GetItem(itemPath); | |
if (rootItem != null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case "DisableIndex": | |
stringBuilder.AppendFormat("Sitecore.Configuration.Settings.Indexing.Enabled Status -Before {0} : ", | |
Sitecore.Configuration.Settings.Indexing.Enabled); | |
stringBuilder.Append("<br/>"); | |
Sitecore.Configuration.Settings.Indexing.Enabled = false; | |
stringBuilder.AppendFormat("Sitecore.Configuration.Settings.Indexing.Enabled Status - After {0} : ", | |
Sitecore.Configuration.Settings.Indexing.Enabled); | |
stringBuilder.Append("<br/>"); | |
break; | |
case "EnableIndex": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<pipelines> | |
<dianogaOptimize> | |
<patch:delete /> | |
</dianogaOptimize> | |
<dianogaOptimizeJpeg> | |
<patch:delete /> | |
</dianogaOptimizeJpeg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Page Language="C#" AutoEventWireup="true" %> | |
<%@ Import Namespace="Sitecore.Configuration" %> | |
<%@ Import Namespace="System.Web" %> | |
<%@ Import Namespace="System.Net" %> | |
<% | |
/* https://stackoverflow.com/questions/28286086/default-securityprotocol-in-net-4-5 */ | |
// print initial status | |
Response.Write("Runtime: " + System.Diagnostics.FileVersionInfo.GetVersionInfo(typeof(int).Assembly.Location).ProductVersion); | |
Response.Write("<br/>"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration> | |
<system.diagnostics> | |
<trace autoflush="true" /> | |
<sources> | |
<source name="System.Net"> | |
<listeners> | |
<add name="System.Net"/> | |
</listeners> | |
</source> |
OlderNewer