DO NOT DOWNLOAD. DOWNLOAD LATEST STABLE FROM THE RELEASE TAB

No these aren't changes to make the demos work at CG09. Move along

[TFS Changeset #55237]
This commit is contained in:
slace
2009-06-21 19:12:55 +00:00
parent b4f898fe8c
commit 8f6415abee
15 changed files with 8669 additions and 201 deletions

View File

@@ -118,6 +118,11 @@
<Reference Include="System.Web">
<Name>System.Web</Name>
</Reference>
<Reference Include="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\foreign dlls\System.Web.Abstractions.dll</HintPath>
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="System.Windows.Forms">
<Name>System.Windows.Forms</Name>

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -14,55 +14,10 @@ namespace umbraco
/// </summary>
public class Global : HttpApplication
{
protected Timer publishingTimer;
protected Timer pingTimer;
protected void Application_Start(Object sender, EventArgs e)
{
public Global()
{
InitializeComponent();
}
//protected void Application_Start(Object sender, EventArgs e)
//{
// try
// {
// Log.Add(LogTypes.System, BusinessLogic.User.GetUser(0), -1, "Application started at " + DateTime.Now);
// }
// catch
// {
// }
// // Check for configured key
// if(!GlobalSettings.Configured)
// {
// Application["umbracoNeedConfiguration"] = "true";
// }
// else
// {
// // add current default url
// Application["umbracoUrl"] = string.Format("{0}:{1}{2}",
// this.Context.Request.ServerVariables["SERVER_NAME"],
// HttpContext.Current.Request.ServerVariables["SERVER_PORT"], GlobalSettings.Path);
// /* This section is needed on start-up because timer objects
// * might initialize before these are initialized without a traditional
// * request, and therefore lacks information on application paths */
// // initialize datatype factory
// new Factory();
// // initialize action handlers
// Action.registerActionHandlers();
// /* Initialize SECTION END */
// // Start ping / keepalive timer
// pingTimer = new Timer(new TimerCallback(keepAliveService.PingUmbraco), this.Context, 1000, 300000);
// // Start publishingservice
// publishingTimer = new Timer(new TimerCallback(publishingService.CheckPublishing), this.Context, 1000, 60000);
// }
//}
}
protected void Session_Start(Object sender, EventArgs e)
{
@@ -79,67 +34,10 @@ namespace umbraco
}
}
//protected void Application_BeginRequest(Object sender, EventArgs e)
//{
// if(HttpContext.Current.Request.Path.ToLower().IndexOf(".aspx") > -1 ||
// HttpContext.Current.Request.Path.ToLower().IndexOf(".") == -1)
// {
// // Check if path or script is reserved!
// bool urlIsReserved = false;
// if(GlobalSettings.ReservedUrls.ToLower().IndexOf(string.Format(", {0}, ",
// HttpContext.Current.Request.Path.ToLower())) > -1)
// urlIsReserved = true;
protected void Application_BeginRequest(Object sender, EventArgs e)
{
// string[] reservedPaths = GlobalSettings.ReservedPaths.Split(',');
// for(int i = 0; i < reservedPaths.Length; i++)
// {
// if((HttpContext.Current.Request.Path).ToLower().StartsWith(reservedPaths[i].Trim().ToLower()))
// {
// urlIsReserved = true;
// }
// }
// if(!urlIsReserved)
// {
// if(Application["umbracoNeedConfiguration"] != null)
// HttpContext.Current.Response.Redirect(string.Format("{0}/../install/default.aspx?redir=true",
// GlobalSettings.Path), true);
// else if(content.Instance.isInitializing)
// HttpContext.Current.RewritePath(string.Format("{0}/../config/splashes/booting.htm",
// GlobalSettings.Path));
// else
// {
// string path = HttpContext.Current.Request.Path;
// string query = HttpContext.Current.Request.Url.Query;
// if(query != null && query != "")
// {
// // Clean umbPage from querystring, caused by .NET 2.0 default Auth Controls
// if(query.IndexOf("umbPage") > 0)
// {
// query += "&";
// path = query.Substring(9, query.IndexOf("&") - 9);
// query = query.Substring(query.IndexOf("&") + 1, query.Length - query.IndexOf("&") - 1);
// }
// else if(query.Length > 0)
// query = query.Substring(1, query.Length - 1);
// if(query.Length > 0)
// {
// HttpContext.Current.Items["VirtualUrl"] = path + "?" + query;
// HttpContext.Current.RewritePath(string.Format("{0}/../default.aspx?umbPage={1}&{2}",
// GlobalSettings.Path, path, query));
// }
// }
// if(HttpContext.Current.Items["VirtualUrl"] == null)
// {
// HttpContext.Current.Items["VirtualUrl"] = path;
// HttpContext.Current.RewritePath(string.Format("{0}/../default.aspx?umbPage={1}",
// GlobalSettings.Path, path));
// }
// }
// }
// }
//}
}
protected void Application_EndRequest(Object sender, EventArgs e)
{
@@ -149,40 +47,20 @@ namespace umbraco
{
}
//protected void Application_Error(Object sender, EventArgs e)
//{
// if(Request != null)
// Log.Add(LogTypes.Error, BusinessLogic.User.GetUser(0), -1,
// string.Format("At {0} (Refered by: {1}): {2}",
// this.Request.RawUrl, this.Request.UrlReferrer, this.Server.GetLastError().InnerException));
// else
// Log.Add(LogTypes.Error, BusinessLogic.User.GetUser(0), -1,
// "No Context available -> " + Server.GetLastError().InnerException);
//}
protected void Application_Error(Object sender, EventArgs e)
{
}
protected void Session_End(Object sender, EventArgs e)
{
//if(GlobalSettings.EnableStat)
// cms.businesslogic.stat.Session.EndSession(new Guid(Request.Cookies["umbracoSessionId"].Value));
}
protected void Application_End(Object sender, EventArgs e)
{
Log.Add(LogTypes.System, BusinessLogic.User.GetUser(0), -1, "Application shutted down at " + DateTime.Now);
}
#region Web Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
}
#endregion
}
}

View File

@@ -1,42 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="ResMimeType">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="Version">
<value>1.0.0.0</value>
</resheader>
<resheader name="Reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="Writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -13,6 +13,15 @@ namespace umbraco.presentation
{
private HttpContext m_HttpContext;
/// <summary>
/// Creates a new Umbraco context.
/// </summary>
/// <param name="httpContext">The HTTP context on which the Umbraco context operates.</param>
public UmbracoContext(HttpContext httpContext)
{
m_HttpContext = httpContext;
}
/// <summary>
/// Gets the current Umbraco Context.
/// </summary>
@@ -87,24 +96,15 @@ namespace umbraco.presentation
}
}
/// <summary>
/// Creates a new Umbraco context.
/// </summary>
/// <param name="httpContext">The HTTP context on which the Umbraco context operates.</param>
public UmbracoContext(HttpContext httpContext)
{
m_HttpContext = httpContext;
}
/// <summary>
/// Gets the response for the current context
/// </summary>
/// <value>The response.</value>
public HttpResponse Response
public virtual UmbracoResponse Response
{
get
{
return this.m_HttpContext.Response;
return new UmbracoResponse(this.m_HttpContext.Response);
}
}
@@ -112,12 +112,21 @@ namespace umbraco.presentation
/// Gets the request for the current context
/// </summary>
/// <value>The request.</value>
public HttpRequest Request
public virtual UmbracoRequest Request
{
get
{
return this.m_HttpContext.Request;
return new UmbracoRequest(this.m_HttpContext.Request);
}
}
/// <summary>
/// Gets the base URL.
/// </summary>
/// <returns></returns>
public virtual string GetBaseUrl()
{
return this.Request.Url.GetLeftPart(UriPartial.Authority);
}
}
}

View File

@@ -0,0 +1,28 @@
using System;
using System.Web;
using umbraco.presentation.LiveEditing;
using umbraco.BasePages;
using umbraco.cms.businesslogic.web;
namespace umbraco.presentation
{
public class UmbracoRequest : HttpRequestWrapper
{
public UmbracoRequest(HttpRequest request) : base(request)
{
}
/// <summary>
/// Gets a value indicating whether the request has debugging enabled
/// </summary>
/// <value><c>true</c> if this instance is debug; otherwise, <c>false</c>.</value>
public bool IsDebug
{
get
{
return GlobalSettings.DebugMode && (!string.IsNullOrEmpty(this["umbdebugshowtrace"]) || !string.IsNullOrEmpty(this["umbdebug"]));
}
}
}
}

View File

@@ -0,0 +1,15 @@
using System;
using System.Web;
using umbraco.presentation.LiveEditing;
using umbraco.BasePages;
using umbraco.cms.businesslogic.web;
namespace umbraco.presentation
{
public class UmbracoResponse : HttpResponseWrapper
{
public UmbracoResponse(HttpResponse response) : base(response)
{
}
}
}

View File

@@ -0,0 +1,91 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Hosting;
using System.Web.Caching;
using System.IO;
using umbraco.Linq.DTMetal.CodeBuilder;
using umbraco.Linq.DTMetal.Engine;
using System.Collections;
namespace umbraco.presentation.VirtualPathProviders
{
public class DocTypeProvider : VirtualPathProvider
{
private bool IsPathVirtual(string virtualPath)
{
String checkPath = VirtualPathUtility.ToAppRelative(virtualPath);
return checkPath.StartsWith("~/vpp", StringComparison.InvariantCultureIgnoreCase);
}
public override bool FileExists(string virtualPath)
{
if (IsPathVirtual(virtualPath))
{
var fileName = VirtualPathUtility.GetFileName(virtualPath);
return fileName == "umbraco.DocTypes.dll";
}
else
{
return Previous.FileExists(virtualPath);
}
}
public override VirtualFile GetFile(string virtualPath)
{
if (IsPathVirtual(virtualPath))
{
if (FileExists(virtualPath))
{
return new DocTypeVirtualFile(virtualPath, this);
}
else
{
return null;
}
}
else
{
return Previous.GetFile(virtualPath);
}
}
public override CacheDependency GetCacheDependency(string virtualPath, IEnumerable virtualPathDependencies, DateTime utcStart)
{
if (IsPathVirtual(virtualPath))
{
return null;
}
else
{
return Previous.GetCacheDependency(virtualPath, virtualPathDependencies, utcStart);
}
}
}
public class DocTypeVirtualFile : VirtualFile
{
private DocTypeProvider _vpp;
public DocTypeVirtualFile(string virtualPath, DocTypeProvider provider)
: base(virtualPath)
{
_vpp = provider;
}
public override Stream Open()
{
MemoryStream stream = new MemoryStream();
string dataContextName = "Umbraco";
var generator = new DTMLGenerator(GlobalSettings.DbDSN, dataContextName, false);
var dtml = generator.GenerateDTMLStream();
var cb = ClassGenerator.CreateBuilder("Umbraco", GenerationLanguage.CSharp, dtml.DocTypeMarkupLanguage);
cb.GenerateCode();
cb.Save(stream);
return new MemoryStream(stream.GetBuffer());
}
}
}

View File

@@ -202,7 +202,7 @@
<command>
<umbracoAlias>mceSpellCheck</umbracoAlias>
<icon>/images/editor/spellchecker.gif</icon>
<icon>images/editor/spellchecker.gif</icon>
<tinyMceCommand value="" userInterface="true" frontendCommand="mceSpellCheck">spellchecker</tinyMceCommand>
<priority>75</priority>
</command>

View File

@@ -83,4 +83,160 @@ Youll also enjoy the benefits of speaking the same “language” as the rest
<loadcontrol>
</loadcontrol>
</package>
<package id="4" version="2.0.2" url="" name="Creative Website Starter" folder="6ef5bf8a-7c8f-448a-b10b-529b42cb1655" packagepath="" repositoryGuid="65194810-1f85-11dd-bd0b-0800200c9a66" packageGuid="1116a360-0f30-4827-baba-8368937c9151" hasUpdate="False">
<license url="http://www.opensource.org/licenses/mit-license.php">MIT license</license>
<author url="http://www.creativewebspecialist.co.uk">Warren Buckley</author>
<readme><![CDATA[This package will install a basic site that will allow you to understand how all the components of an Umbraco site works together.
If you have any Bugs/Problems please report them at Codeplex
http://umbracocws.codeplex.com
Many Thanks,
Warren Buckley]]></readme>
<actions>
</actions>
<datatypes>1044,1045,1046,1047</datatypes>
<content nodeId="1082" loadChildNodes="False">
</content>
<templates>1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062</templates>
<stylesheets>1074,1076,1077,1078,1079,1080,1081</stylesheets>
<documenttypes>1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073</documenttypes>
<macros>1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19</macros>
<files>
<file>/usercontrols/website/ContactForm.ascx</file>
<file>/usercontrols/website/EmailAFriendForm.ascx</file>
<file>/usercontrols/website/SearchBox.ascx</file>
<file>/xslt/DateFormat.xslt</file>
<file>/xslt/DisplayArticleImage.xslt</file>
<file>/xslt/EmailAFriendLink.xslt</file>
<file>/xslt/ListGalleries.xslt</file>
<file>/xslt/ListNewsEvents.xslt</file>
<file>/xslt/ListPhotos.xslt</file>
<file>/xslt/Navi.xslt</file>
<file>/xslt/NewsEventsRSS.xslt</file>
<file>/xslt/NewsEventsSubNavi.xslt</file>
<file>/xslt/PageTitle.xslt</file>
<file>/xslt/ParentPageLink.xslt</file>
<file>/xslt/PhotoPager.xslt</file>
<file>/xslt/PhotoText.xslt</file>
<file>/xslt/SubNavi.xslt</file>
<file>/xslt/XMLSitemap.xslt</file>
<file>/xslt/XSLTsearch.xslt</file>
<file>/media/1014/royal-crescent_thumb.jpg</file>
<file>/media/1014/royal-crescent_thumb_thumb.jpg</file>
<file>/media/1239/bookhouse-boys_gallery.jpg</file>
<file>/media/1239/bookhouse-boys_gallery_thumb.jpg</file>
<file>/media/1250/bookhouse-boys_1.jpg</file>
<file>/media/1250/bookhouse-boys_1_thumb.jpg</file>
<file>/media/1277/bookhouse-boys_3.jpg</file>
<file>/media/1277/bookhouse-boys_3_thumb.jpg</file>
<file>/media/1296/bookhouse-boys_1_thumb.jpg</file>
<file>/media/1296/bookhouse-boys_1_thumb_thumb.jpg</file>
<file>/media/1314/bookhouse-boys_3_thumb.jpg</file>
<file>/media/1314/bookhouse-boys_3_thumb_thumb.jpg</file>
<file>/media/1331/bookhouse-boys_2.jpg</file>
<file>/media/1331/bookhouse-boys_2_thumb.jpg</file>
<file>/media/1350/bookhouse-boys_2_thumb.jpg</file>
<file>/media/1350/bookhouse-boys_2_thumb_thumb.jpg</file>
<file>/media/171/umbraco_tshirt.jpg</file>
<file>/media/171/umbraco_tshirt_thumb.jpg</file>
<file>/media/227/warren-buckley.jpg</file>
<file>/media/227/warren-buckley_thumb.jpg</file>
<file>/media/228/sam-grady.jpg</file>
<file>/media/228/sam-grady_thumb.jpg</file>
<file>/media/394/codegarden08-t-shirt.jpg</file>
<file>/media/394/codegarden08-t-shirt_thumb.jpg</file>
<file>/media/445/umbraco_tshirt.jpg</file>
<file>/media/445/umbraco_tshirt_thumb.jpg</file>
<file>/media/49/home_photo.jpg</file>
<file>/media/49/home_photo_thumb.jpg</file>
<file>/media/799/codegarden08-t-shirt_thumb.jpg</file>
<file>/media/799/codegarden08-t-shirt_thumb_thumb.jpg</file>
<file>/media/799/Thumbs.db</file>
<file>/media/825/darren-ferguson_david-conlisk.jpg</file>
<file>/media/825/darren-ferguson_david-conlisk_thumb.jpg</file>
<file>/media/835/darren-ferguson_david-conlisk_thumb.jpg</file>
<file>/media/835/darren-ferguson_david-conlisk_thumb_thumb.jpg</file>
<file>/media/852/bingo-callers.jpg</file>
<file>/media/852/bingo-callers_thumb.jpg</file>
<file>/media/871/bingo-callers_thumb.jpg</file>
<file>/media/871/bingo-callers_thumb_thumb.jpg</file>
<file>/media/879/christian-palm.jpg</file>
<file>/media/879/christian-palm_thumb.jpg</file>
<file>/media/879/Thumbs.db</file>
<file>/media/889/christian-palm_thumb.jpg</file>
<file>/media/889/christian-palm_thumb_thumb.jpg</file>
<file>/media/935/bath_gallery.jpg</file>
<file>/media/935/bath_gallery_thumb.jpg</file>
<file>/media/993/codegarden-08_gallery.jpg</file>
<file>/media/993/codegarden-08_gallery_thumb.jpg</file>
<file>/media/995/royal-crescent.jpg</file>
<file>/media/995/royal-crescent_thumb.jpg</file>
<file>/media/Assets/arrow_left.gif</file>
<file>/media/Assets/arrow_right.gif</file>
<file>/media/Assets/cws_logo.gif</file>
<file>/media/Assets/dotted_border.gif</file>
<file>/media/Assets/footer_border.gif</file>
<file>/media/Assets/g72_logo.gif</file>
<file>/media/Assets/rss_logo.gif</file>
<file>/media/Assets/Thumbs.db</file>
<file>/media/Assets/tick_icon.gif</file>
<file>/media/Assets/white_30_bg.png</file>
<file>/media/Assets/white_60_bg.png</file>
<file>/media/Assets/white_90_bg.png</file>
<file>/media/Assets/Photos/home_photo.jpg</file>
<file>/media/Assets/Photos/placeholder-photo.jpg</file>
<file>/media/Assets/Photos/placeholder.jpg</file>
<file>/media/Assets/Photos/Sam-Grady.jpg</file>
<file>/media/Assets/Photos/Warren-Buckley.jpg</file>
<file>/media/Assets/Placeholders/gallery_placeholder.gif</file>
<file>/media/Assets/Placeholders/photo_placeholder.gif</file>
<file>/media/Assets/sIFR/Amasis_MT.swf</file>
<file>/scripts/jquery-1.3.1.min.js</file>
<file>/scripts/script.js</file>
<file>/scripts/sIFR/sifr-config.js</file>
<file>/scripts/sIFR/sifr.js</file>
<file>/usercontrols/dashboards/ContactForm_logs.ascx</file>
<file>/usercontrols/dashboards/ContactForm_logs.ascx.cs</file>
<file>/usercontrols/dashboards/ContactForm_logs.ascx.designer.cs</file>
<file>/usercontrols/dashboards/EmailAFriendForm_logs.ascx</file>
<file>/usercontrols/dashboards/EmailAFriendForm_logs.ascx.cs</file>
<file>/usercontrols/dashboards/EmailAFriendForm_logs.ascx.designer.cs</file>
<file>/usercontrols/dashboards/log.css</file>
<file>/usercontrols/dashboards/log_script.js</file>
<file>/usercontrols/website/ContactForm.ascx.cs</file>
<file>/usercontrols/website/ContactForm.ascx.designer.cs</file>
<file>/usercontrols/website/EmailAFriendForm.ascx.cs</file>
<file>/usercontrols/website/EmailAFriendForm.ascx.designer.cs</file>
<file>/usercontrols/website/SearchBox.ascx.cs</file>
<file>/usercontrols/website/SearchBox.ascx.designer.cs</file>
<file>/data/form_log.xslt</file>
<file>/umbraco/images/thumbnails/CWS_date.png</file>
<file>/umbraco/images/thumbnails/CWS_email_a_friend.png</file>
<file>/umbraco/images/thumbnails/CWS_image2.png</file>
<file>/umbraco/images/thumbnails/CWS_kfm_home.png</file>
<file>/umbraco/images/thumbnails/CWS_knewsticker.png</file>
<file>/umbraco/images/thumbnails/CWS_konqsidebar_news.png</file>
<file>/umbraco/images/thumbnails/CWS_kontact_mail.png</file>
<file>/umbraco/images/thumbnails/CWS_wordprocessing.png</file>
<file>/umbraco/images/umbraco/CWS_calendar.png</file>
<file>/umbraco/images/umbraco/CWS_date.png</file>
<file>/umbraco/images/umbraco/CWS_email.png</file>
<file>/umbraco/images/umbraco/CWS_email_go.png</file>
<file>/umbraco/images/umbraco/CWS_feed.png</file>
<file>/umbraco/images/umbraco/CWS_house.png</file>
<file>/umbraco/images/umbraco/CWS_newspaper.png</file>
<file>/umbraco/images/umbraco/CWS_picture.png</file>
<file>/umbraco/images/umbraco/CWS_pictures.png</file>
<file>/umbraco/images/umbraco/CWS_sitemap_color.png</file>
<file>/umbraco/images/umbraco/CWS_vcard.png</file>
<file>/bin/PackageActionsContrib.dll</file>
</files>
<languages>
</languages>
<dictionaryitems>
</dictionaryitems>
<loadcontrol>
</loadcontrol>
</package>
</packages>

View File

@@ -25,6 +25,7 @@ namespace umbraco
return umbraco.BasePages.UmbracoEnsuredPage.CurrentUser;
}
[Obsolete("Use umbraco.Presentation.UmbracoContext.Current.Request[key]",false)]
public static string Request(string text)
{
string temp = string.Empty;
@@ -181,15 +182,11 @@ namespace umbraco
*/
}
[Obsolete("Use umbraco.presentation.UmbracContext.Current.GetBaseUrl()")]
public static string GetBaseUrl(HttpContext Context)
{
return Context.Request.Url.GetLeftPart(UriPartial.Authority);
}
}
/// <summary>

View File

@@ -163,9 +163,8 @@ namespace umbraco {
Control pageContent = new Control();
bool stop = false;
bool debugMode = false;
if (GlobalSettings.DebugMode && (helper.Request("umbdebugshowtrace") != "" || helper.Request("umbdebug") != ""))
debugMode = true;
bool debugMode = umbraco.presentation.UmbracoContext.Current.Request.IsDebug;
while (!stop) {
System.Web.HttpContext.Current.Trace.Write("template", "Begining of parsing rutine...");
int tagIndex = tempOutput.ToString().ToLower().IndexOf("<?umbraco");

View File

@@ -114,6 +114,11 @@
<Reference Include="System.Web">
<Name>System.Web</Name>
</Reference>
<Reference Include="System.Web.Abstractions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\foreign dlls\System.Web.Abstractions.dll</HintPath>
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
@@ -325,6 +330,12 @@
<Compile Include="umbracoPageHolder.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="UmbracoRequest.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="UmbracoResponse.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="umbraco\ActionHandlers\umbEnsureUniqueName.cs">
<SubType>Code</SubType>
</Compile>
@@ -1523,6 +1534,7 @@
<Compile Include="umbraco_client\tinymce3\plugins\spellchecker\SpellCheckerInput.cs" />
<Compile Include="umbraco_client\tinymce3\plugins\spellchecker\SpellCheckerResult.cs" />
<Compile Include="viewstateMoverModule.cs" />
<Compile Include="VirtualPathProviders\DocType.cs" />
<Compile Include="Web References\org.umbraco.update\Reference.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
@@ -3474,10 +3486,6 @@
<DependentUpon>default.aspx.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Global.asax.resx">
<DependentUpon>Global.asax.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="install\default.aspx.resx">
<DependentUpon>default.aspx.cs</DependentUpon>
<SubType>Designer</SubType>

View File

@@ -27,6 +27,7 @@ namespace umbraco.presentation.umbraco.dialogs
cb.GenerateCode();
cb.Save(UmbracoContext.Current.Response.OutputStream);
UmbracoContext.Current.Response.AddHeader("Content-Disposition", string.Format("attachment;filename={0}", dataContextName));
UmbracoContext.Current.Response.ContentType = "application/octet-stream";
UmbracoContext.Current.Response.End();
}
}