Author: yonik
Date: 2006-11-22 10:48:21 -0500 (Wed, 22 Nov 2006)
New Revision: 68354

Modified:
   trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/CreateRole.aspx
   trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/CreateUser.aspx
   trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Default.aspx
   trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/EditUser.aspx
   trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Error.aspx
   trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Error.aspx.cs
   
trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Error.aspx.designer.cs
   
trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Mainsoft.Web.Administration.csproj
   trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/ManageRole.aspx
   trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/ManageUser.aspx
   trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Util.Master
   trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Util.Master.cs
   trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/web.config
Log:
Changes for remote access to utility. Add var to web.config for indicate local 
or remote accessing option.

Modified: 
trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/CreateRole.aspx
===================================================================
--- trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/CreateRole.aspx    
2006-11-22 15:43:26 UTC (rev 68353)
+++ trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/CreateRole.aspx    
2006-11-22 15:48:21 UTC (rev 68354)
@@ -1,8 +1,4 @@
-<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Util.Master" 
CodeBehind="CreateRole.aspx.cs" 
Inherits="Mainsoft.Web.Administration.CreateRole" %>
-<%@ Register TagPrefix="custom" Assembly="Mainsoft.Web.Administration" 
Namespace="Mainsoft.Web.Administration" %>
-
-<asp:Content ID="Main" ContentPlaceHolderID="Main" runat="server">
-<!--
+<%--
 // Mainsoft.Web.Administration - Site administration utility
 // Authors:
 //  Klain Yoni <[EMAIL PROTECTED]>
@@ -26,8 +22,11 @@
 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -->
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --%>
+<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Util.Master" 
CodeBehind="CreateRole.aspx.cs" 
Inherits="Mainsoft.Web.Administration.CreateRole" %>
+<%@ Register TagPrefix="custom" Assembly="Mainsoft.Web.Administration" 
Namespace="Mainsoft.Web.Administration" %>
 
+<asp:Content ID="Main" ContentPlaceHolderID="Main" runat="server">
     <asp:MultiView runat="server" ID="mv" ActiveViewIndex="0">
     <asp:View runat="server" id="grid">
     <table class="maintable">

Modified: 
trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/CreateUser.aspx
===================================================================
--- trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/CreateUser.aspx    
2006-11-22 15:43:26 UTC (rev 68353)
+++ trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/CreateUser.aspx    
2006-11-22 15:48:21 UTC (rev 68354)
@@ -1,7 +1,9 @@
-<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Util.Master" 
CodeBehind="CreateUser.aspx.cs" 
Inherits="Mainsoft.Web.Administration.CreateUser" %>
-<asp:Content runat="server" ID="main" ContentPlaceHolderID="Main">
-<!--
+<%--
 // Mainsoft.Web.Administration - Site administration utility
+// Authors:
+//  Klain Yoni <[EMAIL PROTECTED]>
+//
+// Mainsoft.Web.Administration - Site administration utility
 // (C) 2006 Mainsoft Corporation (http://www.mainsoft.com)
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -20,8 +22,9 @@
 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -->
-    
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --%>
+<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Util.Master" 
CodeBehind="CreateUser.aspx.cs" 
Inherits="Mainsoft.Web.Administration.CreateUser" %>
+<asp:Content runat="server" ID="main" ContentPlaceHolderID="Main">
     <table style="border-right: thin solid; padding-right: 2px; border-top: 
thin solid; padding-left: 2px; padding-bottom: 2px; border-left: thin solid; 
padding-top: 2px; border-bottom: thin solid">
         <tr>
             <td colspan="2" width="100%" style="height: 21px">

Modified: trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Default.aspx
===================================================================
--- trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Default.aspx       
2006-11-22 15:43:26 UTC (rev 68353)
+++ trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Default.aspx       
2006-11-22 15:48:21 UTC (rev 68354)
@@ -1,6 +1,4 @@
-<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Util.Master" 
CodeBehind="Default.aspx.cs" Inherits="Mainsoft.Web.Administration.Default" %>
-<asp:Content runat="server" ContentPlaceHolderID="Main">
-<!--
+<%--
 // Mainsoft.Web.Administration - Site administration utility
 // Authors:
 //  Klain Yoni <[EMAIL PROTECTED]>
@@ -24,7 +22,9 @@
 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -->    
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --%>
+<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Util.Master" 
CodeBehind="Default.aspx.cs" Inherits="Mainsoft.Web.Administration.Default" %>
+<asp:Content runat="server" ContentPlaceHolderID="Main">
     <table>
         <tr>
             <td>

Modified: trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/EditUser.aspx
===================================================================
--- trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/EditUser.aspx      
2006-11-22 15:43:26 UTC (rev 68353)
+++ trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/EditUser.aspx      
2006-11-22 15:48:21 UTC (rev 68354)
@@ -1,8 +1,9 @@
-<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Util.Master" 
CodeBehind="EditUser.aspx.cs" Inherits="Mainsoft.Web.Administration.EditUser" %>
-<%@ Register TagPrefix="custom" TagName="searcher" 
Src="~/Controls/Searcher.ascx" %>
-<asp:Content runat="server" ID="main" ContentPlaceHolderID="Main">
-<!--
+<%--
 // Mainsoft.Web.Administration - Site administration utility
+// Authors:
+//  Klain Yoni <[EMAIL PROTECTED]>
+//
+// Mainsoft.Web.Administration - Site administration utility
 // (C) 2006 Mainsoft Corporation (http://www.mainsoft.com)
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -21,7 +22,10 @@
 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -->
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --%>
+<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Util.Master" 
CodeBehind="EditUser.aspx.cs" Inherits="Mainsoft.Web.Administration.EditUser" %>
+<%@ Register TagPrefix="custom" TagName="searcher" 
Src="~/Controls/Searcher.ascx" %>
+<asp:Content runat="server" ID="main" ContentPlaceHolderID="Main">
     <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
         <asp:View ID="updateUser" runat="server" >
         <div>

Modified: trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Error.aspx
===================================================================
--- trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Error.aspx 
2006-11-22 15:43:26 UTC (rev 68353)
+++ trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Error.aspx 
2006-11-22 15:48:21 UTC (rev 68354)
@@ -1,7 +1,9 @@
-<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Util.Master" 
CodeBehind="Error.aspx.cs" Inherits="Mainsoft.Web.Administration.Error" %>
-<asp:Content runat="server" ID="main" ContentPlaceHolderID="Main">
-<!--
+<%--
 // Mainsoft.Web.Administration - Site administration utility
+// Authors:
+//  Klain Yoni <[EMAIL PROTECTED]>
+//
+// Mainsoft.Web.Administration - Site administration utility
 // (C) 2006 Mainsoft Corporation (http://www.mainsoft.com)
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -20,12 +22,23 @@
 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -->
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --%>
 
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Error.aspx.cs" 
Inherits="Mainsoft.Web.Administration.Error" %>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
+
+<html xmlns="http://www.w3.org/1999/xhtml"; >
+<head runat="server">
+    <title>Untitled Page</title>
+</head>
+<body>
+    <form id="form1" runat="server">
     <div style="font-weight: bold; font-size: 20pt; color: red">
         Error occured on this request ! Please try again !
     </div>
     <div>
         <asp:HyperLink ID="HyperLink1" runat="server" 
NavigateUrl="~/Default.aspx">Administration utility home page</asp:HyperLink>
     </div>
-</asp:Content>
+    </form>
+</body>
+</html>

Modified: trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Error.aspx.cs
===================================================================
--- trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Error.aspx.cs      
2006-11-22 15:43:26 UTC (rev 68353)
+++ trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Error.aspx.cs      
2006-11-22 15:48:21 UTC (rev 68354)
@@ -6,15 +6,16 @@
 using System.Web.Security;
 using System.Web.UI;
 using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
 using System.Web.UI.HtmlControls;
 
 namespace Mainsoft.Web.Administration
 {
-    public partial class Error : System.Web.UI.Page
-    {
-        protected void Page_Load(object sender, EventArgs e)
-        {
+       public partial class Error : System.Web.UI.Page
+       {
+               protected void Page_Load (object sender, EventArgs e)
+               {
 
-        }
-    }
+               }
+       }
 }

Modified: 
trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Error.aspx.designer.cs
===================================================================
--- 
trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Error.aspx.designer.cs 
    2006-11-22 15:43:26 UTC (rev 68353)
+++ 
trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Error.aspx.designer.cs 
    2006-11-22 15:48:21 UTC (rev 68354)
@@ -11,6 +11,7 @@
 namespace Mainsoft.Web.Administration {
     
     public partial class Error {
+        protected System.Web.UI.HtmlControls.HtmlForm form1;
         protected System.Web.UI.WebControls.HyperLink HyperLink1;
     }
 }

Modified: 
trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Mainsoft.Web.Administration.csproj
===================================================================
--- 
trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Mainsoft.Web.Administration.csproj
 2006-11-22 15:43:26 UTC (rev 68353)
+++ 
trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Mainsoft.Web.Administration.csproj
 2006-11-22 15:48:21 UTC (rev 68354)
@@ -103,6 +103,13 @@
     <Compile Include="Controls\Searcher.ascx.designer.cs">
       <DependentUpon>Searcher.ascx</DependentUpon>
     </Compile>
+    <Compile Include="SecurError.aspx.cs">
+      <SubType>ASPXCodeBehind</SubType>
+      <DependentUpon>SecurError.aspx</DependentUpon>
+    </Compile>
+    <Compile Include="SecurError.aspx.designer.cs">
+      <DependentUpon>SecurError.aspx</DependentUpon>
+    </Compile>
     <Compile Include="Util.Master.cs">
       <DependentUpon>Util.Master</DependentUpon>
       <SubType>ASPXCodeBehind</SubType>
@@ -119,7 +126,6 @@
     <Content Include="CreateRole.aspx" />
   </ItemGroup>
   <ItemGroup>
-    <Content Include="Error.aspx" />
     <Content Include="ManageRole.aspx" />
   </ItemGroup>
   <ItemGroup>
@@ -137,7 +143,9 @@
     <Content Include="Util.Master" />
   </ItemGroup>
   <ItemGroup>
+    <Content Include="Error.aspx" />
     <Content Include="Images\untitled.bmp" />
+    <Content Include="SecurError.aspx" />
     <Content Include="Web.sitemap" />
   </ItemGroup>
   <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />

Modified: 
trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/ManageRole.aspx
===================================================================
--- trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/ManageRole.aspx    
2006-11-22 15:43:26 UTC (rev 68353)
+++ trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/ManageRole.aspx    
2006-11-22 15:48:21 UTC (rev 68354)
@@ -1,5 +1,9 @@
 <%--
 // Mainsoft.Web.Administration - Site administration utility
+// Authors:
+//  Klain Yoni <[EMAIL PROTECTED]>
+//
+// Mainsoft.Web.Administration - Site administration utility
 // (C) 2006 Mainsoft Corporation (http://www.mainsoft.com)
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the

Modified: 
trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/ManageUser.aspx
===================================================================
--- trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/ManageUser.aspx    
2006-11-22 15:43:26 UTC (rev 68353)
+++ trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/ManageUser.aspx    
2006-11-22 15:48:21 UTC (rev 68354)
@@ -1,10 +1,9 @@
-<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Util.Master" 
CodeBehind="ManageUser.aspx.cs" 
Inherits="Mainsoft.Web.Administration.ManageUser" %>
-<%@ Register tagprefix="custom" namespace="Mainsoft.Web.Administration" 
Assembly="Mainsoft.Web.Administration"  %>
-<%@ Register TagPrefix="custom" TagName="searcher" 
Src="~/Controls/Searcher.ascx" %>
-
-<asp:Content runat="server" ID="main" ContentPlaceHolderID="Main">
-<!--
+<%--
 // Mainsoft.Web.Administration - Site administration utility
+// Authors:
+//  Klain Yoni <[EMAIL PROTECTED]>
+//
+// Mainsoft.Web.Administration - Site administration utility
 // (C) 2006 Mainsoft Corporation (http://www.mainsoft.com)
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -23,7 +22,12 @@
 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -->
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --%>
+<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Util.Master" 
CodeBehind="ManageUser.aspx.cs" 
Inherits="Mainsoft.Web.Administration.ManageUser" %>
+<%@ Register tagprefix="custom" namespace="Mainsoft.Web.Administration" 
Assembly="Mainsoft.Web.Administration"  %>
+<%@ Register TagPrefix="custom" TagName="searcher" 
Src="~/Controls/Searcher.ascx" %>
+
+<asp:Content runat="server" ID="main" ContentPlaceHolderID="Main">
 <asp:MultiView ID="mv" ActiveViewIndex="0" runat="server">
 <asp:View ID="manage" runat="server" >
     <table class="maintable">

Modified: trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Util.Master
===================================================================
--- trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Util.Master        
2006-11-22 15:43:26 UTC (rev 68353)
+++ trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Util.Master        
2006-11-22 15:48:21 UTC (rev 68354)
@@ -1,5 +1,29 @@
+<%--
+// Mainsoft.Web.Administration - Site administration utility
+// Authors:
+//  Klain Yoni <[EMAIL PROTECTED]>
+//
+// Mainsoft.Web.Administration - Site administration utility
+// (C) 2006 Mainsoft Corporation (http://www.mainsoft.com)
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --%>
 <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Util.master.cs" 
Inherits="Mainsoft.Web.Administration.Util" %>
-
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
 
 <html xmlns="http://www.w3.org/1999/xhtml"; >

Modified: 
trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Util.Master.cs
===================================================================
--- trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Util.Master.cs     
2006-11-22 15:43:26 UTC (rev 68353)
+++ trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/Util.Master.cs     
2006-11-22 15:48:21 UTC (rev 68354)
@@ -8,16 +8,38 @@
 using System.Web.UI.WebControls;
 using System.Web.UI.HtmlControls;
 
+
 namespace Mainsoft.Web.Administration
 {
        public partial class Util : System.Web.UI.MasterPage
        {
+               bool allowRemoteConfiguration  // Default is false
+               {
+                       get
+                       {
+                               if 
(System.Configuration.ConfigurationSettings.AppSettings["allowRemoteConfiguration"]
 != null) {
+                                       return bool.Parse 
(System.Configuration.ConfigurationSettings.AppSettings["allowRemoteConfiguration"]);
+                               }
+                               else {
+                                       return false;
+                               }
+                       }
+               }
+
                public String Backurl
                {
                        get { return ViewState["BackUrl"] == null ? 
String.Empty : (string) ViewState["BackUrl"]; }
                        set { ViewState["BackUrl"] = value; }
                }
 
+               protected override void OnInit (EventArgs e)
+               {
+                       if (!(allowRemoteConfiguration || Request.IsLocal)) {
+                               Server.Transfer ("~/SecurError.aspx");
+                       }
+                       base.OnInit (e);
+               }
+
                protected void Page_Load (object sender, EventArgs e)
                {
                        if (!IsPostBack) {

Modified: trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/web.config
===================================================================
--- trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/web.config 
2006-11-22 15:43:26 UTC (rev 68353)
+++ trunk/mcs/class/Mainsoft.Web/Mainsoft.Web.Administration/web.config 
2006-11-22 15:48:21 UTC (rev 68354)
@@ -1,8 +1,12 @@
 <?xml version="1.0"?>
 
 <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0";>
-  
-    <appSettings/>
+
+    <appSettings>
+        <!-- 
+                *****  Defaulf is False *****
+        <add key="allowRemoteConfiguration" value="False" />-->
+    </appSettings>
     <connectionStrings/>
   
     <system.web>

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to