More updates

This commit is contained in:
hartvig
2012-04-24 11:50:33 -02:00
parent 1b826e1193
commit caf41376dc
4 changed files with 16 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ using umbraco.controls.Images;
using System.IO;
using System.Web.Script.Serialization;
using umbraco.businesslogic.Utils;
using umbraco.presentation.webservices;
namespace umbraco.controls.Images
{
@@ -36,6 +37,9 @@ namespace umbraco.controls.Images
[WebMethod]
public Dictionary<string, string> UpdateImage(int mediaId, string style, string linkTarget)
{
legacyAjaxCalls.Authorize();
//load the control with the specified properties and render the output as a string and return it
Page page = new Page();
string path = umbraco.IO.IOHelper.ResolveUrl(umbraco.IO.SystemDirectories.Umbraco) + "/controls/Images/ImageViewer.ascx";

View File

@@ -7,6 +7,7 @@ using System.Web;
using System.Web.Services;
using System.Xml;
using umbraco.presentation.webservices;
namespace umbraco.webservices
{
@@ -25,6 +26,8 @@ namespace umbraco.webservices
[WebMethod]
public string BootStrapTidy(string html, string ContextID)
{
legacyAjaxCalls.Authorize();
return cms.helpers.xhtml.BootstrapTidy(html);
}

View File

@@ -5,6 +5,7 @@ using System.Web;
using System.Web.Services;
using umbraco.DataLayer;
using umbraco.BusinessLogic;
using umbraco.presentation.webservices;
namespace umbraco.presentation.umbraco.webservices
{
@@ -18,6 +19,7 @@ namespace umbraco.presentation.umbraco.webservices
public void ProcessRequest(HttpContext context)
{
legacyAjaxCalls.Authorize();
context.Response.ContentType = "text/plain";

View File

@@ -2,6 +2,7 @@ using System;
using System.ComponentModel;
using System.Web.Services;
using System.Web.Script.Services;
using umbraco.presentation.webservices;
namespace umbraco.webservices
{
@@ -22,6 +23,8 @@ namespace umbraco.webservices
[ScriptMethod]
public int GetPublicationStatus(string key)
{
legacyAjaxCalls.Authorize();
try
{
return int.Parse(Application["publishDone" + key].ToString());
@@ -36,6 +39,8 @@ namespace umbraco.webservices
[ScriptMethod]
public int GetPublicationStatusMax(string key)
{
legacyAjaxCalls.Authorize();
try
{
return int.Parse(Application["publishTotal" + key].ToString());
@@ -68,6 +73,8 @@ namespace umbraco.webservices
[WebMethod]
public void SaveXmlCacheToDisk()
{
legacyAjaxCalls.Authorize();
content.Instance.PersistXmlToFile();
}