From 6516c1caacb0b517adf05e8aba49ff230379a2e5 Mon Sep 17 00:00:00 2001 From: Vladislav Spivak Date: Mon, 8 Jan 2007 13:26:44 +0000 Subject: [PATCH] svn path=/trunk/mcs/; revision=70649 --- .../App_GlobalResources/GlobalResource.resx | 127 ++++++++ .../App_LocalResources/CreateRole.aspx.resx | 129 ++++++++ .../App_LocalResources/CreateUser.aspx.resx | 126 ++++++++ .../App_LocalResources/Default.aspx.resx | 123 +++++++ .../App_LocalResources/EditUser.aspx.resx | 135 ++++++++ .../App_LocalResources/ManageRole.aspx.resx | 132 ++++++++ .../App_LocalResources/ManageUser.aspx.resx | 133 ++++++++ .../App_LocalResources/Util.Master.resx | 120 +++++++ .../Controls/Searcher.ascx | 34 ++ .../Controls/Searcher.ascx.cs | 61 ++++ .../Controls/Searcher.ascx.cs.bak | 61 ++++ .../Controls/Searcher.ascx.designer.cs | 16 + .../Controls/Searcher.ascx.designer.cs.bak | 16 + .../Mainsoft.Web.AspnetConfig.csproj | 172 ++++++++++ .../Mainsoft.Web.AspnetConfig.vmwcsproj | 191 +++++++++++ .../Properties/AssemblyInfo.cs | 43 +++ .../Properties/AssemblyInfo.cs.bak | 43 +++ .../Mainsoft.Web.AspnetConfig/WEB-INF/web.xml | 147 +++++++++ .../Mainsoft.Web.AspnetConfig/Web.config | 49 +++ .../Mainsoft.Web.AspnetConfig/Web.config.bak | 49 +++ .../aspnetconfig/CreateRole.aspx | 118 +++++++ .../aspnetconfig/CreateRole.aspx.cs | 107 +++++++ .../aspnetconfig/CreateRole.aspx.cs.bak | 107 +++++++ .../aspnetconfig/CreateRole.aspx.designer.cs | 26 ++ .../CreateRole.aspx.designer.cs.bak | 26 ++ .../aspnetconfig/CreateUser.aspx | 81 +++++ .../aspnetconfig/CreateUser.aspx.cs | 85 +++++ .../aspnetconfig/CreateUser.aspx.cs.bak | 85 +++++ .../aspnetconfig/CreateUser.aspx.designer.cs | 21 ++ .../CreateUser.aspx.designer.cs.bak | 21 ++ .../aspnetconfig/CustomXmlSiteMapProvider.cs | 255 +++++++++++++++ .../CustomXmlSiteMapProvider.cs.bak | 255 +++++++++++++++ .../aspnetconfig/Default.aspx | 85 +++++ .../aspnetconfig/Default.aspx.bak | 85 +++++ .../aspnetconfig/Default.aspx.cs | 76 +++++ .../aspnetconfig/Default.aspx.cs.bak | 76 +++++ .../aspnetconfig/Default.aspx.designer.cs | 18 ++ .../aspnetconfig/Default.aspx.designer.cs.bak | 18 ++ .../aspnetconfig/EditUser.aspx | 118 +++++++ .../aspnetconfig/EditUser.aspx.cs | 96 ++++++ .../aspnetconfig/EditUser.aspx.cs.bak | 96 ++++++ .../aspnetconfig/EditUser.aspx.designer.cs | 27 ++ .../EditUser.aspx.designer.cs.bak | 27 ++ .../aspnetconfig/Error.aspx | 44 +++ .../aspnetconfig/Error.aspx.cs | 21 ++ .../aspnetconfig/Error.aspx.cs.bak | 21 ++ .../aspnetconfig/Error.aspx.designer.cs | 17 + .../aspnetconfig/Error.aspx.designer.cs.bak | 17 + .../aspnetconfig/GridButton.cs | 43 +++ .../aspnetconfig/GridButton.cs.bak | 43 +++ .../aspnetconfig/GridCheckBox.cs | 55 ++++ .../aspnetconfig/GridCheckBox.cs.bak | 55 ++++ .../HandlerFactoryConfiguration.cs | 247 ++++++++++++++ .../HttpHandlersSectionHandler.cs | 91 ++++++ .../Mainsoft.Web.AspnetConfig.css | 72 +++++ .../aspnetconfig/ManageRole.aspx | 98 ++++++ .../aspnetconfig/ManageRole.aspx.cs | 76 +++++ .../aspnetconfig/ManageRole.aspx.cs.bak | 76 +++++ .../aspnetconfig/ManageRole.aspx.designer.cs | 21 ++ .../ManageRole.aspx.designer.cs.bak | 21 ++ .../aspnetconfig/ManageUser.aspx | 144 +++++++++ .../aspnetconfig/ManageUser.aspx.cs | 138 ++++++++ .../aspnetconfig/ManageUser.aspx.cs.bak | 138 ++++++++ .../aspnetconfig/ManageUser.aspx.designer.cs | 28 ++ .../ManageUser.aspx.designer.cs.bak | 28 ++ .../aspnetconfig/RolesDS.cs | 301 ++++++++++++++++++ .../aspnetconfig/RolesDS.cs.bak | 301 ++++++++++++++++++ .../aspnetconfig/SecurError.aspx | 44 +++ .../aspnetconfig/SecurError.aspx.cs | 21 ++ .../aspnetconfig/SecurError.aspx.cs.bak | 21 ++ .../aspnetconfig/SecurError.aspx.designer.cs | 17 + .../SecurError.aspx.designer.cs.bak | 17 + .../aspnetconfig/StrUtils.cs | 101 ++++++ .../aspnetconfig/UrlUtils.cs | 271 ++++++++++++++++ .../aspnetconfig/Util.Master | 83 +++++ .../aspnetconfig/Util.Master.cs | 49 +++ .../aspnetconfig/Util.Master.cs.bak | 49 +++ .../aspnetconfig/Util.Master.designer.cs | 20 ++ .../aspnetconfig/Util.Master.designer.cs.bak | 20 ++ .../aspnetconfig/Web.sitemap | 12 + .../resources/mainsoft.jpg | Bin 0 -> 4433 bytes .../resources/untitled.bmp | Bin 0 -> 2102 bytes 82 files changed, 6637 insertions(+) create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_GlobalResources/GlobalResource.resx create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/CreateRole.aspx.resx create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/CreateUser.aspx.resx create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/Default.aspx.resx create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/EditUser.aspx.resx create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/ManageRole.aspx.resx create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/ManageUser.aspx.resx create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/Util.Master.resx create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Controls/Searcher.ascx create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Controls/Searcher.ascx.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Controls/Searcher.ascx.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Controls/Searcher.ascx.designer.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Controls/Searcher.ascx.designer.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Mainsoft.Web.AspnetConfig.csproj create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Mainsoft.Web.AspnetConfig.vmwcsproj create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Properties/AssemblyInfo.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Properties/AssemblyInfo.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/WEB-INF/web.xml create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Web.config create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Web.config.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateRole.aspx create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateRole.aspx.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateRole.aspx.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateRole.aspx.designer.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateRole.aspx.designer.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateUser.aspx create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateUser.aspx.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateUser.aspx.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateUser.aspx.designer.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateUser.aspx.designer.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CustomXmlSiteMapProvider.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CustomXmlSiteMapProvider.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx.designer.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx.designer.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/EditUser.aspx create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/EditUser.aspx.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/EditUser.aspx.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/EditUser.aspx.designer.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/EditUser.aspx.designer.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Error.aspx create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Error.aspx.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Error.aspx.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Error.aspx.designer.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Error.aspx.designer.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/GridButton.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/GridButton.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/GridCheckBox.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/GridCheckBox.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/HandlerFactoryConfiguration.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/HttpHandlersSectionHandler.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Mainsoft.Web.AspnetConfig.css create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageRole.aspx create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageRole.aspx.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageRole.aspx.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageRole.aspx.designer.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageRole.aspx.designer.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageUser.aspx create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageUser.aspx.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageUser.aspx.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageUser.aspx.designer.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageUser.aspx.designer.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/RolesDS.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/RolesDS.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/SecurError.aspx create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/SecurError.aspx.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/SecurError.aspx.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/SecurError.aspx.designer.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/SecurError.aspx.designer.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/StrUtils.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/UrlUtils.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Util.Master create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Util.Master.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Util.Master.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Util.Master.designer.cs create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Util.Master.designer.cs.bak create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Web.sitemap create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/resources/mainsoft.jpg create mode 100644 mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/resources/untitled.bmp diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_GlobalResources/GlobalResource.resx b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_GlobalResources/GlobalResource.resx new file mode 100644 index 00000000000..000b0f9eff5 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_GlobalResources/GlobalResource.resx @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Wildcard characters * and ? are permitted. + + + Welcome to the Web Site Administration Tool + + + \ No newline at end of file diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/CreateRole.aspx.resx b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/CreateRole.aspx.resx new file mode 100644 index 00000000000..3f10064a291 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/CreateRole.aspx.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + You can optionally add roles, or groups, that enable you to allow or deny groups of users access to specific folders in your Web site. For example, you might create roles such as "managers," "sales," or "members," each with different access to specific folders. + + + Create New Role + + + New role name: + + \ No newline at end of file diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/CreateUser.aspx.resx b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/CreateUser.aspx.resx new file mode 100644 index 00000000000..7a8893a3b59 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/CreateUser.aspx.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Active User + + + Add a user by entering a user name, password, and e-mail address on this page. + + \ No newline at end of file diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/Default.aspx.resx b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/Default.aspx.resx new file mode 100644 index 00000000000..a3a3199d596 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/Default.aspx.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + You can use the Web Site Administration Tool to manage all the security settings for your application. You can set up users and passwords (authentication), create roles (groups of users), and create permissions (rules for controlling access to parts of your application). + + \ No newline at end of file diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/EditUser.aspx.resx b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/EditUser.aspx.resx new file mode 100644 index 00000000000..a33d331d425 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/EditUser.aspx.resx @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Use this page to edit user information and to specify what roles a user belongs in. + + + Roles + + + You have successfully updated the user + + + You have successfully updated the user + + + User + + \ No newline at end of file diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/ManageRole.aspx.resx b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/ManageRole.aspx.resx new file mode 100644 index 00000000000..1975602b4ac --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/ManageRole.aspx.resx @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Use this page to manage the members in the specified role. To add a user to the role, search for the user name and then select the User Is In Role check box for that user. + + + Role: + + + Search by : + + + Search for Users + + \ No newline at end of file diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/ManageUser.aspx.resx b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/ManageUser.aspx.resx new file mode 100644 index 00000000000..9be80540a66 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/ManageUser.aspx.resx @@ -0,0 +1,133 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Click Edit User to view or change the user's password or other properties. To assign roles to the selected user, select the appropriate check boxes on the right. To prevent users from logging in to your application while retaining their information in your database, set the status to inactive by clearing the check box. + + + + Roles + + + Search by : + + + Search for Users + + \ No newline at end of file diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/Util.Master.resx b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/Util.Master.resx new file mode 100644 index 00000000000..5ea0895e324 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/App_LocalResources/Util.Master.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Controls/Searcher.ascx b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Controls/Searcher.ascx new file mode 100644 index 00000000000..30747be19e4 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Controls/Searcher.ascx @@ -0,0 +1,34 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Searcher.ascx.cs" Inherits="Mainsoft.Web.Administration.Searcher" %> +<%@ Register tagprefix="custom" namespace="Mainsoft.Web.Administration" Assembly="Mainsoft.Web.Administration" %> + + + + + + + + +
+ Edit roles: +
+ + + + + + + + + Edit roles for user : <%# User %> + + + + + + + + + +
\ No newline at end of file diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Controls/Searcher.ascx.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Controls/Searcher.ascx.cs new file mode 100644 index 00000000000..8d846ca7dd6 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Controls/Searcher.ascx.cs @@ -0,0 +1,61 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; + +namespace Mainsoft.Web.AspnetConfig +{ + public partial class Searcher : System.Web.UI.UserControl + { + public string User + { + get { return ViewState["User"] == null ? String.Empty : (string)ViewState["User"];} + set { ViewState["User"] = value; } + } + + protected void Page_Load(object sender, EventArgs e) + { + + } + + protected override void OnPreRender(EventArgs e) + { + if (User == String.Empty || (Membership.GetUser(User)==null)) + { + GridView1.DataSource = null; + } + else + { + GridView1.DataSource = RolesDS.SelectUsersRole(User); + } + GridView1.DataBind(); + base.OnPreRender(e); + } + + protected void Roles_Changed(object sender, EventArgs e) + { + String user_name = (string)ViewState["User"]; + if (((CheckBox)sender).Checked) + { + try { + Roles.AddUserToRole (user_name, ((CheckBox) sender).Text); + } + catch { + } + } + else + { + try { + Roles.RemoveUserFromRole (user_name, ((CheckBox) sender).Text); + } + catch { + } + } + } + } +} \ No newline at end of file diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Controls/Searcher.ascx.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Controls/Searcher.ascx.cs.bak new file mode 100644 index 00000000000..790c81da1bd --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Controls/Searcher.ascx.cs.bak @@ -0,0 +1,61 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; + +namespace Mainsoft.Web.Administration +{ + public partial class Searcher : System.Web.UI.UserControl + { + public string User + { + get { return ViewState["User"] == null ? String.Empty : (string)ViewState["User"];} + set { ViewState["User"] = value; } + } + + protected void Page_Load(object sender, EventArgs e) + { + + } + + protected override void OnPreRender(EventArgs e) + { + if (User == String.Empty || (Membership.GetUser(User)==null)) + { + GridView1.DataSource = null; + } + else + { + GridView1.DataSource = RolesDS.SelectUsersRole(User); + } + GridView1.DataBind(); + base.OnPreRender(e); + } + + protected void Roles_Changed(object sender, EventArgs e) + { + String user_name = (string)ViewState["User"]; + if (((CheckBox)sender).Checked) + { + try { + Roles.AddUserToRole (user_name, ((CheckBox) sender).Text); + } + catch { + } + } + else + { + try { + Roles.RemoveUserFromRole (user_name, ((CheckBox) sender).Text); + } + catch { + } + } + } + } +} \ No newline at end of file diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Controls/Searcher.ascx.designer.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Controls/Searcher.ascx.designer.cs new file mode 100644 index 00000000000..616d5c21310 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Controls/Searcher.ascx.designer.cs @@ -0,0 +1,16 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Mainsoft.Web.AspnetConfig { + + public partial class Searcher { + protected System.Web.UI.WebControls.GridView GridView1; + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Controls/Searcher.ascx.designer.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Controls/Searcher.ascx.designer.cs.bak new file mode 100644 index 00000000000..a011c3edc8f --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Controls/Searcher.ascx.designer.cs.bak @@ -0,0 +1,16 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Mainsoft.Web.Administration { + + public partial class Searcher { + protected System.Web.UI.WebControls.GridView GridView1; + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Mainsoft.Web.AspnetConfig.csproj b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Mainsoft.Web.AspnetConfig.csproj new file mode 100644 index 00000000000..a052a797229 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Mainsoft.Web.AspnetConfig.csproj @@ -0,0 +1,172 @@ + + + Debug + AnyCPU + 8.0.50727 + 2.0 + {50770B55-C326-4EAD-9211-77AC47F7E32C} + {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} + Library + Properties + Mainsoft.Web.AspnetConfig + Mainsoft.Web.AspnetConfig + + + true + full + false + bin\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + CreateRole.aspx + ASPXCodeBehind + + + CreateRole.aspx + + + CreateUser.aspx + ASPXCodeBehind + + + CreateUser.aspx + + + + Default.aspx + ASPXCodeBehind + + + Default.aspx + + + EditUser.aspx + ASPXCodeBehind + + + EditUser.aspx + + + Error.aspx + ASPXCodeBehind + + + Error.aspx + + + + + + + ManageRole.aspx + ASPXCodeBehind + + + ManageRole.aspx + + + ManageUser.aspx + ASPXCodeBehind + + + ManageUser.aspx + + + + SecurError.aspx + ASPXCodeBehind + + + SecurError.aspx + + + + + Util.Master + ASPXCodeBehind + + + Util.Master + + + + Searcher.ascx + ASPXCodeBehind + + + Searcher.ascx + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + False + True + 1319 + / + + + False + + + + + \ No newline at end of file diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Mainsoft.Web.AspnetConfig.vmwcsproj b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Mainsoft.Web.AspnetConfig.vmwcsproj new file mode 100644 index 00000000000..be1a37ed83f --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Mainsoft.Web.AspnetConfig.vmwcsproj @@ -0,0 +1,191 @@ + + + Debug_Java + AnyCPU + 8.0.50727 + 2.0 + {724CABEB-39E5-47A7-9F72-4B81FFC56760} + {F6B19D50-1E2E-4e87-ADFB-10393B439DE0};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} + Library + Properties + Mainsoft.Web.AspnetConfig + 1.5.0_05 + 3 + runtime + 2.0 + Mainsoft.Web.AspnetConfig + ipa + tomcat + true + true + + + true + full + false + bin\ + TRACE;DEBUG;JAVA;TARGET_JVM + prompt + 4 + 285212672 + True + False + 0 + + + True + + + pdbonly + true + bin\ + TRACE;JAVA;TARGET_JVM + prompt + 4 + 285212672 + True + false + 0 + + + true + + + + + + + + + True + True + 2274 + / + + + False + + + + + + + + + + + + + + + + + + + CreateRole.aspx + ASPXCodeBehind + + + CreateRole.aspx + + + CreateUser.aspx + ASPXCodeBehind + + + CreateUser.aspx + + + + Default.aspx + ASPXCodeBehind + + + Default.aspx + + + EditUser.aspx + ASPXCodeBehind + + + EditUser.aspx + + + Error.aspx + ASPXCodeBehind + + + Error.aspx + + + + + + ManageRole.aspx + ASPXCodeBehind + + + ManageRole.aspx + + + ManageUser.aspx + ASPXCodeBehind + + + ManageUser.aspx + + + + SecurError.aspx + ASPXCodeBehind + + + SecurError.aspx + + + + + Util.Master + ASPXCodeBehind + + + Util.Master + + + Searcher.ascx + ASPXCodeBehind + + + Searcher.ascx + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Properties/AssemblyInfo.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Properties/AssemblyInfo.cs new file mode 100644 index 00000000000..7c3742f15ed --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Properties/AssemblyInfo.cs @@ -0,0 +1,43 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Web.UI; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Mainsoft.Web.AspnetConfig")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Mainsoft.Web.AspnetConfig")] +[assembly: AssemblyCopyright("Copyright © 2006")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("3d5900ae-111a-45be-96b3-d9e4606ca793")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: WebResource ("Mainsoft.Web.AspnetConfig.resources.mainsoft.jpg", "image/jpeg")] +[assembly: WebResource ("Mainsoft.Web.AspnetConfig.resources.untitled.bmp", "image/jpeg")] +[assembly: WebResource ("Mainsoft.Web.AspnetConfig.aspnetconfig.Mainsoft.Web.AspnetConfig.css", "text/css")] + + + + diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Properties/AssemblyInfo.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Properties/AssemblyInfo.cs.bak new file mode 100644 index 00000000000..5e2c3bb5b0b --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Properties/AssemblyInfo.cs.bak @@ -0,0 +1,43 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Web.UI; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Mainsoft.Web.Administration")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Mainsoft.Web.Administration")] +[assembly: AssemblyCopyright("Copyright © 2006")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("3d5900ae-111a-45be-96b3-d9e4606ca793")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: WebResource ("Mainsoft.Web.Administration.resources.mainsoft.jpg", "image/jpeg")] +[assembly: WebResource ("Mainsoft.Web.Administration.resources.untitled.bmp", "image/jpeg")] +[assembly: WebResource ("Mainsoft.Web.Administration.aspnetconfig.Mainsoft.Web.Administration.css", "text/css")] + + + + diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/WEB-INF/web.xml b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/WEB-INF/web.xml new file mode 100644 index 00000000000..770ee282b7f --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/WEB-INF/web.xml @@ -0,0 +1,147 @@ + + + + + + + Visual MainWin application + Visual MainWin application. + + EnableSessionPersistency + False + + + WebFileSystemAccess + Virtual + + + + system.Web.GH.SessionListener + + + + VmwIncludeHelperServlet + system.Web.GH.IncludeHelperServlet + + + VmwDynamicServlet + GhDynamicHttpServlet + + + VmwStaticServlet + GhStaticHttpServlet + + + + VmwDynamicServlet + *.aspx + + + + VmwDynamicServlet + *.asmx + + + + VmwDynamicServlet + *.ashx + + + + VmwDynamicServlet + *.invoke + + + + VmwDynamicServlet + *.soap + + + + VmwDynamicServlet + *.rem + + + + VmwDynamicServlet + *.axd + + + + VmwIncludeHelperServlet + /servletincludehelper + + + + VmwStaticServlet + *.gif + + + + VmwStaticServlet + *.jpeg + + + + VmwStaticServlet + *.jpg + + + + VmwStaticServlet + *.png + + + + VmwStaticServlet + *.html + + + + VmwStaticServlet + *.htm + + + + VmwStaticServlet + *.bmp + + + + VmwStaticServlet + *.css + + + + VmwStaticServlet + *.js + + + + VmwStaticServlet + *.vbs + + + + VmwStaticServlet + *.inc + + + + VmwStaticServlet + *.swf + + + + VmwStaticServlet + *.htc + + + + 20 + + + + Default.aspx + + diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Web.config b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Web.config new file mode 100644 index 00000000000..f36ed5e5b47 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Web.config @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Web.config.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Web.config.bak new file mode 100644 index 00000000000..bd9b8f57a4e --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/Web.config.bak @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateRole.aspx b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateRole.aspx new file mode 100644 index 00000000000..3b376aa995d --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateRole.aspx @@ -0,0 +1,118 @@ +<%-- +// Mainsoft.Web.Administration - Site administration utility +// Authors: +// Klain Yoni +// +// 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. --%> +<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/aspnetconfig/Util.Master" CodeBehind="CreateRole.aspx.cs" Inherits="Mainsoft.Web.Administration.CreateRole" %> +<%@ Register TagPrefix="custom" Assembly="Mainsoft.Web.Administration" Namespace="Mainsoft.Web.Administration" %> + + + + + + + + + + + + + + +
+ You can optionally add roles, or groups, that enable you to allow or deny groups of users access to specific folders in your Web site. For example, you might create roles such as "managers," "sales," or "members," each with different access to specific folders.

+
+ + + + + + + + + + +
+ Create New Role +
+ New role name:     +     + +
+ +

+
+
+ + + + + + + + + + + + Delete + + + + + + + + + + + + + + + +
+
+ + + + + + + + +
+
+   + Are you sure you want to delete the role: "<%= Role %>"? +
+
+ + +
+
+
+
+ \ No newline at end of file diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateRole.aspx.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateRole.aspx.cs new file mode 100644 index 00000000000..46c484296a0 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateRole.aspx.cs @@ -0,0 +1,107 @@ +// Mainsoft.Web.AspnetConfig - Site AspnetConfig 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. + +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; +using System.Threading; +using System.Text; + +namespace Mainsoft.Web.AspnetConfig +{ + public partial class CreateRole : System.Web.UI.Page + { + public string Role + { + get { return ViewState["Role"] == null ? String.Empty : (string) ViewState["Role"]; } + set { ViewState["Role"] = value; } + } + + + protected override void OnPreRender (EventArgs e) + { + if (mv.ActiveViewIndex == 1) { + ((Button) Master.FindControl ("Back")).Visible = false; + } + else { + ((Button) Master.FindControl ("Back")).Visible = true; + } + + base.OnPreRender (e); + Roles_gv.DataBind (); + } + + protected override void OnInit (EventArgs e) + { + Img.ImageUrl = this.Page.ClientScript.GetWebResourceUrl (typeof (CreateRole), "Mainsoft.Web.AspnetConfig.resources.untitled.bmp"); + base.OnInit (e); + } + + protected void Page_Load (object sender, EventArgs e) + { + Button bt = Master.FindControl ("Back") as Button; + if (bt != null) { + bt.PostBackUrl = "Default.aspx"; + } + } + + protected void gridbtn_click (object sender, EventArgs e) + { + Role = ((GridButton) sender).User; + mv.ActiveViewIndex = 1; + } + + protected void roleName_bt_Click (object sender, EventArgs e) + { + if (roleName_txb.Text != "") { + try { + Roles.CreateRole (roleName_txb.Text); + error_lb.Text = ""; + } + catch (Exception ex) { + error_lb.Text = ex.Message; + } + finally { + } + } + else { + error_lb.Text = "Role name cannot be empty!"; + } + } + + protected void Click_No (object sender, EventArgs e) + { + mv.ActiveViewIndex = 0; + } + + protected void Click_Yes (object sender, EventArgs e) + { + RolesDS.Delete (Role); + mv.ActiveViewIndex = 0; + } + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateRole.aspx.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateRole.aspx.cs.bak new file mode 100644 index 00000000000..17dd91de2a3 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateRole.aspx.cs.bak @@ -0,0 +1,107 @@ +// 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. + +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; +using System.Threading; +using System.Text; + +namespace Mainsoft.Web.Administration +{ + public partial class CreateRole : System.Web.UI.Page + { + public string Role + { + get { return ViewState["Role"] == null ? String.Empty : (string) ViewState["Role"]; } + set { ViewState["Role"] = value; } + } + + + protected override void OnPreRender (EventArgs e) + { + if (mv.ActiveViewIndex == 1) { + ((Button) Master.FindControl ("Back")).Visible = false; + } + else { + ((Button) Master.FindControl ("Back")).Visible = true; + } + + base.OnPreRender (e); + Roles_gv.DataBind (); + } + + protected override void OnInit (EventArgs e) + { + Img.ImageUrl = this.Page.ClientScript.GetWebResourceUrl (typeof (CreateRole), "Mainsoft.Web.Administration.resources.untitled.bmp"); + base.OnInit (e); + } + + protected void Page_Load (object sender, EventArgs e) + { + Button bt = Master.FindControl ("Back") as Button; + if (bt != null) { + bt.PostBackUrl = "Default.aspx"; + } + } + + protected void gridbtn_click (object sender, EventArgs e) + { + Role = ((GridButton) sender).User; + mv.ActiveViewIndex = 1; + } + + protected void roleName_bt_Click (object sender, EventArgs e) + { + if (roleName_txb.Text != "") { + try { + Roles.CreateRole (roleName_txb.Text); + error_lb.Text = ""; + } + catch (Exception ex) { + error_lb.Text = ex.Message; + } + finally { + } + } + else { + error_lb.Text = "Role name cannot be empty!"; + } + } + + protected void Click_No (object sender, EventArgs e) + { + mv.ActiveViewIndex = 0; + } + + protected void Click_Yes (object sender, EventArgs e) + { + RolesDS.Delete (Role); + mv.ActiveViewIndex = 0; + } + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateRole.aspx.designer.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateRole.aspx.designer.cs new file mode 100644 index 00000000000..059f968f98c --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateRole.aspx.designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Mainsoft.Web.AspnetConfig { + + public partial class CreateRole { + protected System.Web.UI.WebControls.MultiView mv; + protected System.Web.UI.WebControls.View grid; + protected System.Web.UI.WebControls.TextBox roleName_txb; + protected System.Web.UI.WebControls.Button roleName_bt; + protected System.Web.UI.WebControls.Label error_lb; + protected System.Web.UI.WebControls.GridView Roles_gv; + protected System.Web.UI.WebControls.ObjectDataSource ObjectDataSource1; + protected System.Web.UI.WebControls.View yesno; + protected System.Web.UI.WebControls.Image Img; + protected System.Web.UI.WebControls.Button yes; + protected System.Web.UI.WebControls.Button no; + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateRole.aspx.designer.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateRole.aspx.designer.cs.bak new file mode 100644 index 00000000000..9c00ee4e447 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateRole.aspx.designer.cs.bak @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Mainsoft.Web.Administration { + + public partial class CreateRole { + protected System.Web.UI.WebControls.MultiView mv; + protected System.Web.UI.WebControls.View grid; + protected System.Web.UI.WebControls.TextBox roleName_txb; + protected System.Web.UI.WebControls.Button roleName_bt; + protected System.Web.UI.WebControls.Label error_lb; + protected System.Web.UI.WebControls.GridView Roles_gv; + protected System.Web.UI.WebControls.ObjectDataSource ObjectDataSource1; + protected System.Web.UI.WebControls.View yesno; + protected System.Web.UI.WebControls.Image Img; + protected System.Web.UI.WebControls.Button yes; + protected System.Web.UI.WebControls.Button no; + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateUser.aspx b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateUser.aspx new file mode 100644 index 00000000000..39a9c9a128c --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateUser.aspx @@ -0,0 +1,81 @@ +<%-- +// Mainsoft.Web.Administration - Site administration utility +// Authors: +// Klain Yoni +// +// 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. --%> +<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/aspnetconfig/Util.Master" CodeBehind="CreateUser.aspx.cs" Inherits="Mainsoft.Web.Administration.CreateUser" %> + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ Roles +
+   +
+
+ Active User + +
+
diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateUser.aspx.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateUser.aspx.cs new file mode 100644 index 00000000000..b6a51d08bc2 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateUser.aspx.cs @@ -0,0 +1,85 @@ +// Mainsoft.Web.AspnetConfig - Site AspnetConfig 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. + +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; + +namespace Mainsoft.Web.AspnetConfig +{ + public partial class CreateUser : System.Web.UI.Page + { + protected override void OnPreRender (EventArgs e) + { + roles_lst.DataBind (); + base.OnPreRender (e); + if (CreateUserWizard1.ActiveStepIndex != 0) { + text_lbl.Visible = false; + ((Button) Master.FindControl ("Back")).Visible = false; + active_chb.Enabled = false; + } + } + + protected void Page_Load (object sender, EventArgs e) + { + if (!IsPostBack) { + roles_lst.DataValueField = "Role"; + roles_lst.DataSource = RolesDS.Select (); + } + CreateUserWizard1.CreatingUser += new LoginCancelEventHandler (CreateUserWizard1_CreatingUser); + CreateUserWizard1.CreatedUser += new EventHandler (CreateUserWizard1_CreatedUser); + Button bt = Master.FindControl ("Back") as Button; + if (bt != null) { + bt.PostBackUrl = "Default.aspx"; + } + } + + public void CreateUserWizard1_CreatedUser (object sender, EventArgs e) + { + MembershipUser user = Membership.GetUser (((CreateUserWizard) sender).UserName); + roles_lst.Enabled = false; + + int i = 0; + while (i < roles_lst.Items.Count) { + if (roles_lst.Items[i].Selected) { + try { + Roles.AddUserToRole (((CreateUserWizard) sender).UserName, roles_lst.Items[i].Text); + } + catch (Exception ex) { + ((CreateUserWizard) sender).UnknownErrorMessage = ex.Message; + } + } + i++; + } + } + + public void CreateUserWizard1_CreatingUser (object sender, LoginCancelEventArgs e) + { + ((CreateUserWizard) sender).DisableCreatedUser = !active_chb.Checked; + } + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateUser.aspx.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateUser.aspx.cs.bak new file mode 100644 index 00000000000..7ac8e5ad4f0 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateUser.aspx.cs.bak @@ -0,0 +1,85 @@ +// 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. + +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; + +namespace Mainsoft.Web.Administration +{ + public partial class CreateUser : System.Web.UI.Page + { + protected override void OnPreRender (EventArgs e) + { + roles_lst.DataBind (); + base.OnPreRender (e); + if (CreateUserWizard1.ActiveStepIndex != 0) { + text_lbl.Visible = false; + ((Button) Master.FindControl ("Back")).Visible = false; + active_chb.Enabled = false; + } + } + + protected void Page_Load (object sender, EventArgs e) + { + if (!IsPostBack) { + roles_lst.DataValueField = "Role"; + roles_lst.DataSource = RolesDS.Select (); + } + CreateUserWizard1.CreatingUser += new LoginCancelEventHandler (CreateUserWizard1_CreatingUser); + CreateUserWizard1.CreatedUser += new EventHandler (CreateUserWizard1_CreatedUser); + Button bt = Master.FindControl ("Back") as Button; + if (bt != null) { + bt.PostBackUrl = "Default.aspx"; + } + } + + public void CreateUserWizard1_CreatedUser (object sender, EventArgs e) + { + MembershipUser user = Membership.GetUser (((CreateUserWizard) sender).UserName); + roles_lst.Enabled = false; + + int i = 0; + while (i < roles_lst.Items.Count) { + if (roles_lst.Items[i].Selected) { + try { + Roles.AddUserToRole (((CreateUserWizard) sender).UserName, roles_lst.Items[i].Text); + } + catch (Exception ex) { + ((CreateUserWizard) sender).UnknownErrorMessage = ex.Message; + } + } + i++; + } + } + + public void CreateUserWizard1_CreatingUser (object sender, LoginCancelEventArgs e) + { + ((CreateUserWizard) sender).DisableCreatedUser = !active_chb.Checked; + } + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateUser.aspx.designer.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateUser.aspx.designer.cs new file mode 100644 index 00000000000..ed805984c6c --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateUser.aspx.designer.cs @@ -0,0 +1,21 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Mainsoft.Web.AspnetConfig { + + public partial class CreateUser { + protected System.Web.UI.WebControls.Label text_lbl; + protected System.Web.UI.WebControls.CreateUserWizard CreateUserWizard1; + protected System.Web.UI.WebControls.CreateUserWizardStep CreateUserWizardStep1; + protected System.Web.UI.WebControls.CompleteWizardStep CompleteWizardStep1; + protected System.Web.UI.WebControls.CheckBoxList roles_lst; + protected System.Web.UI.WebControls.CheckBox active_chb; + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateUser.aspx.designer.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateUser.aspx.designer.cs.bak new file mode 100644 index 00000000000..89efdd361f9 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CreateUser.aspx.designer.cs.bak @@ -0,0 +1,21 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Mainsoft.Web.Administration { + + public partial class CreateUser { + protected System.Web.UI.WebControls.Label text_lbl; + protected System.Web.UI.WebControls.CreateUserWizard CreateUserWizard1; + protected System.Web.UI.WebControls.CreateUserWizardStep CreateUserWizardStep1; + protected System.Web.UI.WebControls.CompleteWizardStep CompleteWizardStep1; + protected System.Web.UI.WebControls.CheckBoxList roles_lst; + protected System.Web.UI.WebControls.CheckBox active_chb; + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CustomXmlSiteMapProvider.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CustomXmlSiteMapProvider.cs new file mode 100644 index 00000000000..4f5c957e040 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CustomXmlSiteMapProvider.cs @@ -0,0 +1,255 @@ +// +// System.Web.XmlSiteMapProvider +// +// Authors: +// Ben Maurer (bmaurer@users.sourceforge.net) +// Lluis Sanchez Gual (lluis@novell.com) +// +// (C) 2003 Ben Maurer +// (C) 2005 Novell, Inc (http://www.novell.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. +// + +using System.Collections; +using System.Collections.Specialized; +using System.Configuration; +using System.Text; +using System.Xml; +using System.Web.Util; +using System.IO; +using System.Web; +using System; +using Mainsoft.Web; +using Mainsoft.Web.Configuration; +using Mainsoft.Web.Util; + +namespace Mainsoft.Web.AspnetConfig +{ + public class CustomXmlSiteMapProvider : StaticSiteMapProvider, IDisposable + { + static readonly char [] seperators = { ';', ',' }; + bool building; + string file; + SiteMapNode root = null; +#if !TARGET_JVM // Java platform does not support file notifications + FileSystemWatcher watcher; +#endif + + protected override void AddNode (SiteMapNode node, SiteMapNode parentNode) + { + base.AddNode (node, parentNode); + } + + protected virtual void AddProvider (string providerName, SiteMapNode parentNode) + { + throw new NotImplementedException (); + } + + public override SiteMapNode BuildSiteMap () + { + if (root != null) + return root; + // Whenever you call AddNode, it tries to find dups, and will call this method + // Is this a bug in MS?? + if (building) + return null; + + lock (this) { + try { + building = true; + if (root != null) + return root; + XmlDocument d = new XmlDocument (); + using (Stream source = GetType ().Assembly.GetManifestResourceStream ("Mainsoft.Web.AspnetConfig.aspnetconfig.Web.sitemap")) { + if (source == null) + throw new ArgumentException ("resource not found: ~/aspnetconfig/Web.sitemap"); + d.Load (source); + } + + XmlNode nod = d.DocumentElement ["siteMapNode"]; + if (nod == null) + throw new HttpException ("Invalid site map file: " + Path.GetFileName (file)); + + root = BuildSiteMapRecursive (nod); + + AddNode (root); + } finally { + building = false; + } + return root; + } + } + + string GetNonEmptyOptionalAttribute (XmlNode n, string name) + { + return HandlersUtil.ExtractAttributeValue (name, n, true); + } + + string GetOptionalAttribute (XmlNode n, string name) + { + return HandlersUtil.ExtractAttributeValue (name, n, true, true); + } + + SiteMapNode BuildSiteMapRecursive (XmlNode xmlNode) + { + if (xmlNode.Name != "siteMapNode") + throw new ConfigurationException ("incorrect element name", xmlNode); + + string provider = GetNonEmptyOptionalAttribute (xmlNode, "provider"); + string siteMapFile = GetNonEmptyOptionalAttribute (xmlNode, "siteMapFile"); + + if (provider != null) { + throw new NotImplementedException (); + } else if (siteMapFile != null) { + throw new NotImplementedException (); + } else { + + string url = GetOptionalAttribute (xmlNode, "url"); + string title = GetOptionalAttribute (xmlNode, "title"); + string description = GetOptionalAttribute (xmlNode, "description"); + string keywords = GetOptionalAttribute (xmlNode, "keywords"); + string roles = GetOptionalAttribute (xmlNode, "roles"); + + ArrayList keywordsList = new ArrayList (); + if (keywords != null && keywords.Length > 0) { + foreach (string s in keywords.Split (seperators)) { + string ss = s.Trim (); + if (ss.Length > 0) + keywordsList.Add (ss); + } + } + + ArrayList rolesList = new ArrayList (); + if (roles != null && roles.Length > 0) { + foreach (string s in roles.Split (seperators)) { + string ss = s.Trim (); + if (ss.Length > 0) + rolesList.Add (ss); + } + } + + if (!string.IsNullOrEmpty (url)) { + if (UrlUtils.IsRelativeUrl (url)) + url = UrlUtils.Combine (HttpRuntime.AppDomainAppVirtualPath, url); + } + + SiteMapNode node = new SiteMapNode (this, url, url, title, description, + /*ArrayList.ReadOnly (keywordsList), */ArrayList.ReadOnly (rolesList), null, + null, null); // TODO what do they want for attributes + + foreach (XmlNode child in xmlNode.ChildNodes) { + if (child.NodeType != XmlNodeType.Element) + continue; + AddNode (BuildSiteMapRecursive (child), node); + } + + return node; + } + } + + protected override void Clear () + { + base.Clear (); + root = null; + } + + protected virtual void Dispose (bool disposing) + { +#if !TARGET_JVM // Java platform does not support file notifications + if (disposing) + watcher.Dispose (); +#endif + } + + public void Dispose () + { + Dispose (true); + } + + public override SiteMapNode FindSiteMapNode (string rawUrl) + { + return base.FindSiteMapNode (rawUrl); // why did they override this method!? + } + + public override SiteMapNode FindSiteMapNodeFromKey (string key) + { + return base.FindSiteMapNodeFromKey (key); // why did they override this method!? + } + + public override void Initialize (string name, NameValueCollection attributes) + { + + base.Initialize (name, attributes); + file = attributes ["siteMapFile"]; + + if (file == null && file.Length == 0) + throw new ArgumentException ("you must provide a file"); + + if (UrlUtils.IsRelativeUrl (file)) + file = Path.Combine(HttpRuntime.AppDomainAppPath, file); + else + file = UrlUtils.ResolvePhysicalPathFromAppAbsolute (file); + +#if !TARGET_JVM // Java platform does not support file notifications + if (File.Exists (file)) { + watcher = new FileSystemWatcher (); + watcher.Path = Path.GetFullPath (Path.GetDirectoryName (file)); + watcher.Filter = Path.GetFileName (file); + watcher.Changed += new FileSystemEventHandler (OnFileChanged); + watcher.EnableRaisingEvents = true; + } +#endif + } + + protected override void RemoveNode (SiteMapNode node) + { + base.RemoveNode (node); + } + + //[MonoTODO ("Not implemented")] + protected virtual void RemoveProvider (string providerName) + { + throw new NotImplementedException (); + } +#if !TARGET_JVM + void OnFileChanged (object sender, FileSystemEventArgs args) + { + Clear (); + } +#endif + public override SiteMapNode RootNode { + get { + BuildSiteMap (); + return root; + } + } + + protected override SiteMapNode GetRootNodeCore () + { + return BuildSiteMap (); + } + } + +} + + diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CustomXmlSiteMapProvider.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CustomXmlSiteMapProvider.cs.bak new file mode 100644 index 00000000000..97692849c4d --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/CustomXmlSiteMapProvider.cs.bak @@ -0,0 +1,255 @@ +// +// System.Web.XmlSiteMapProvider +// +// Authors: +// Ben Maurer (bmaurer@users.sourceforge.net) +// Lluis Sanchez Gual (lluis@novell.com) +// +// (C) 2003 Ben Maurer +// (C) 2005 Novell, Inc (http://www.novell.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. +// + +using System.Collections; +using System.Collections.Specialized; +using System.Configuration; +using System.Text; +using System.Xml; +using System.Web.Util; +using System.IO; +using System.Web; +using System; +using Mainsoft.Web; +using Mainsoft.Web.Configuration; +using Mainsoft.Web.Util; + +namespace Mainsoft.Web.Administration +{ + public class CustomXmlSiteMapProvider : StaticSiteMapProvider, IDisposable + { + static readonly char [] seperators = { ';', ',' }; + bool building; + string file; + SiteMapNode root = null; +#if !TARGET_JVM // Java platform does not support file notifications + FileSystemWatcher watcher; +#endif + + protected override void AddNode (SiteMapNode node, SiteMapNode parentNode) + { + base.AddNode (node, parentNode); + } + + protected virtual void AddProvider (string providerName, SiteMapNode parentNode) + { + throw new NotImplementedException (); + } + + public override SiteMapNode BuildSiteMap () + { + if (root != null) + return root; + // Whenever you call AddNode, it tries to find dups, and will call this method + // Is this a bug in MS?? + if (building) + return null; + + lock (this) { + try { + building = true; + if (root != null) + return root; + XmlDocument d = new XmlDocument (); + using (Stream source = GetType ().Assembly.GetManifestResourceStream ("Mainsoft.Web.Administration.aspnetconfig.Web.sitemap")) { + if (source == null) + throw new ArgumentException ("resource not found: ~/aspnetconfig/Web.sitemap"); + d.Load (source); + } + + XmlNode nod = d.DocumentElement ["siteMapNode"]; + if (nod == null) + throw new HttpException ("Invalid site map file: " + Path.GetFileName (file)); + + root = BuildSiteMapRecursive (nod); + + AddNode (root); + } finally { + building = false; + } + return root; + } + } + + string GetNonEmptyOptionalAttribute (XmlNode n, string name) + { + return HandlersUtil.ExtractAttributeValue (name, n, true); + } + + string GetOptionalAttribute (XmlNode n, string name) + { + return HandlersUtil.ExtractAttributeValue (name, n, true, true); + } + + SiteMapNode BuildSiteMapRecursive (XmlNode xmlNode) + { + if (xmlNode.Name != "siteMapNode") + throw new ConfigurationException ("incorrect element name", xmlNode); + + string provider = GetNonEmptyOptionalAttribute (xmlNode, "provider"); + string siteMapFile = GetNonEmptyOptionalAttribute (xmlNode, "siteMapFile"); + + if (provider != null) { + throw new NotImplementedException (); + } else if (siteMapFile != null) { + throw new NotImplementedException (); + } else { + + string url = GetOptionalAttribute (xmlNode, "url"); + string title = GetOptionalAttribute (xmlNode, "title"); + string description = GetOptionalAttribute (xmlNode, "description"); + string keywords = GetOptionalAttribute (xmlNode, "keywords"); + string roles = GetOptionalAttribute (xmlNode, "roles"); + + ArrayList keywordsList = new ArrayList (); + if (keywords != null && keywords.Length > 0) { + foreach (string s in keywords.Split (seperators)) { + string ss = s.Trim (); + if (ss.Length > 0) + keywordsList.Add (ss); + } + } + + ArrayList rolesList = new ArrayList (); + if (roles != null && roles.Length > 0) { + foreach (string s in roles.Split (seperators)) { + string ss = s.Trim (); + if (ss.Length > 0) + rolesList.Add (ss); + } + } + + if (!string.IsNullOrEmpty (url)) { + if (UrlUtils.IsRelativeUrl (url)) + url = UrlUtils.Combine (HttpRuntime.AppDomainAppVirtualPath, url); + } + + SiteMapNode node = new SiteMapNode (this, url, url, title, description, + /*ArrayList.ReadOnly (keywordsList), */ArrayList.ReadOnly (rolesList), null, + null, null); // TODO what do they want for attributes + + foreach (XmlNode child in xmlNode.ChildNodes) { + if (child.NodeType != XmlNodeType.Element) + continue; + AddNode (BuildSiteMapRecursive (child), node); + } + + return node; + } + } + + protected override void Clear () + { + base.Clear (); + root = null; + } + + protected virtual void Dispose (bool disposing) + { +#if !TARGET_JVM // Java platform does not support file notifications + if (disposing) + watcher.Dispose (); +#endif + } + + public void Dispose () + { + Dispose (true); + } + + public override SiteMapNode FindSiteMapNode (string rawUrl) + { + return base.FindSiteMapNode (rawUrl); // why did they override this method!? + } + + public override SiteMapNode FindSiteMapNodeFromKey (string key) + { + return base.FindSiteMapNodeFromKey (key); // why did they override this method!? + } + + public override void Initialize (string name, NameValueCollection attributes) + { + + base.Initialize (name, attributes); + file = attributes ["siteMapFile"]; + + if (file == null && file.Length == 0) + throw new ArgumentException ("you must provide a file"); + + if (UrlUtils.IsRelativeUrl (file)) + file = Path.Combine(HttpRuntime.AppDomainAppPath, file); + else + file = UrlUtils.ResolvePhysicalPathFromAppAbsolute (file); + +#if !TARGET_JVM // Java platform does not support file notifications + if (File.Exists (file)) { + watcher = new FileSystemWatcher (); + watcher.Path = Path.GetFullPath (Path.GetDirectoryName (file)); + watcher.Filter = Path.GetFileName (file); + watcher.Changed += new FileSystemEventHandler (OnFileChanged); + watcher.EnableRaisingEvents = true; + } +#endif + } + + protected override void RemoveNode (SiteMapNode node) + { + base.RemoveNode (node); + } + + //[MonoTODO ("Not implemented")] + protected virtual void RemoveProvider (string providerName) + { + throw new NotImplementedException (); + } +#if !TARGET_JVM + void OnFileChanged (object sender, FileSystemEventArgs args) + { + Clear (); + } +#endif + public override SiteMapNode RootNode { + get { + BuildSiteMap (); + return root; + } + } + + protected override SiteMapNode GetRootNodeCore () + { + return BuildSiteMap (); + } + } + +} + + diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx new file mode 100644 index 00000000000..59b298fc1aa --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx @@ -0,0 +1,85 @@ +<%-- +// Mainsoft.Web.AspnetConfig - Site AspnetConfig utility +// Authors: +// Klain Yoni +// +// Mainsoft.Web.AspnetConfig - Site AspnetConfig 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. --%> +<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/aspnetconfig/Util.Master" CodeBehind="Default.aspx.cs" Inherits="Mainsoft.Web.AspnetConfig.Default" %> + + + + + + + + + + + +
+ You can use the Web Site AspnetConfig Tool to manage all the security settings for your application. You can set up users and passwords (authentication), create roles (groups of users), and create permissions (rules for controlling access to parts of your application). +


+
+ + + + + + + + + + + + + +
+ Users +
+ Created users : <%= User_count %> +
+ Create user +
+ Manage users +
+


+
+ + + + + + + + + + +
+ Roles +
+ Existing roles : <%= Roles_count %> +
+ Create or manage roles +
+


+
+
\ No newline at end of file diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx.bak new file mode 100644 index 00000000000..6d81af6cc69 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx.bak @@ -0,0 +1,85 @@ +<%-- +// Mainsoft.Web.Administration - Site administration utility +// Authors: +// Klain Yoni +// +// 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. --%> +<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/aspnetconfig/Util.Master" CodeBehind="Default.aspx.cs" Inherits="Mainsoft.Web.Administration.Default" %> + + + + + + + + + + + +
+ You can use the Web Site Administration Tool to manage all the security settings for your application. You can set up users and passwords (authentication), create roles (groups of users), and create permissions (rules for controlling access to parts of your application). +


+
+ + + + + + + + + + + + + +
+ Users +
+ Created users : <%= User_count %> +
+ Create user +
+ Manage users +
+


+
+ + + + + + + + + + +
+ Roles +
+ Existing roles : <%= Roles_count %> +
+ Create or manage roles +
+


+
+
\ No newline at end of file diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx.cs new file mode 100644 index 00000000000..cecf91b952a --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx.cs @@ -0,0 +1,76 @@ +// Mainsoft.Web.AspnetConfig - Site AspnetConfig utility +// Authors: +// Klain Yoni +// +// Mainsoft.Web.AspnetConfig - Site AspnetConfig 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. + +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; + +namespace Mainsoft.Web.AspnetConfig +{ + public partial class Default : System.Web.UI.Page + { + protected void Page_Load (object sender, EventArgs e) + { + Button bt = Master.FindControl ("Back") as Button; + if (bt != null) { + bt.Enabled = false; + } + } + + public string User_count + { + get + { + MembershipUserCollection user_collection = Membership.GetAllUsers (); + return user_collection.Count.ToString (); + } + } + + public string Roles_count + { + get + { + if (Roles.Enabled) { + string[] list = Roles.GetAllRoles (); + return list.Length.ToString (); + } + else + return "Roles not enabled"; + } + } + + protected void HyperLink1_Load (object sender, EventArgs e) + { + if (!Roles.Enabled) + ((HyperLink) sender).Enabled = false; + } + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx.cs.bak new file mode 100644 index 00000000000..272291850a5 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx.cs.bak @@ -0,0 +1,76 @@ +// Mainsoft.Web.Administration - Site administration utility +// Authors: +// Klain Yoni +// +// 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. + +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; + +namespace Mainsoft.Web.Administration +{ + public partial class Default : System.Web.UI.Page + { + protected void Page_Load (object sender, EventArgs e) + { + Button bt = Master.FindControl ("Back") as Button; + if (bt != null) { + bt.Enabled = false; + } + } + + public string User_count + { + get + { + MembershipUserCollection user_collection = Membership.GetAllUsers (); + return user_collection.Count.ToString (); + } + } + + public string Roles_count + { + get + { + if (Roles.Enabled) { + string[] list = Roles.GetAllRoles (); + return list.Length.ToString (); + } + else + return "Roles not enabled"; + } + } + + protected void HyperLink1_Load (object sender, EventArgs e) + { + if (!Roles.Enabled) + ((HyperLink) sender).Enabled = false; + } + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx.designer.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx.designer.cs new file mode 100644 index 00000000000..f1b438b9bec --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx.designer.cs @@ -0,0 +1,18 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Mainsoft.Web.AspnetConfig { + + public partial class Default { + protected System.Web.UI.WebControls.HyperLink HyperLink1; + protected System.Web.UI.WebControls.HyperLink HyperLink2; + protected System.Web.UI.WebControls.HyperLink HyperLink3; + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx.designer.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx.designer.cs.bak new file mode 100644 index 00000000000..d5fbb6b9099 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Default.aspx.designer.cs.bak @@ -0,0 +1,18 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Mainsoft.Web.Administration { + + public partial class Default { + protected System.Web.UI.WebControls.HyperLink HyperLink1; + protected System.Web.UI.WebControls.HyperLink HyperLink2; + protected System.Web.UI.WebControls.HyperLink HyperLink3; + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/EditUser.aspx b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/EditUser.aspx new file mode 100644 index 00000000000..f7384e568b7 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/EditUser.aspx @@ -0,0 +1,118 @@ +<%-- +// Mainsoft.Web.Administration - Site administration utility +// Authors: +// Klain Yoni +// +// 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. --%> +<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/aspnetconfig/Util.Master" CodeBehind="EditUser.aspx.cs" Inherits="Mainsoft.Web.Administration.EditUser" %> +<%@ Register TagPrefix="custom" TagName="searcher" Src="~/Controls/Searcher.ascx" %> + + + +
+ + + + + + + + + + + +
+ Use this page to edit user information and to specify what roles a user belongs in. +


+
+ + + + + + + + + + + + + + + + + + + +
+ User +
+ User ID: + + + +   +
+ * E-mail address: + + + + Active user +
+ Description: + + [not set] + + +
+
+ +
+ (*)Required field

+ +
+
+
+ +
+ + + + + + + + + + +
+ User Management +
+ You have successfully updated the user +


+
+ +
+
+
+
+
diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/EditUser.aspx.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/EditUser.aspx.cs new file mode 100644 index 00000000000..7c0c39ec9ac --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/EditUser.aspx.cs @@ -0,0 +1,96 @@ +// Mainsoft.Web.AspnetConfig - Site AspnetConfig 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. + +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; + +namespace Mainsoft.Web.AspnetConfig +{ + public partial class EditUser : System.Web.UI.Page + { + String user_name; + protected void Page_Load (object sender, EventArgs e) + { + user_name = Request.QueryString["User"]; + srch.User = user_name; + if (!IsPostBack) { + FillUserData (user_name); + name_lbl.Text = user_name; + } + + Button bt = Master.FindControl ("Back") as Button; + if (bt != null) { + bt.PostBackUrl = "ManageUser.aspx"; + } + } + + protected override void OnPreRender (EventArgs e) + { + if (IsPostBack) { + if (MultiView1.ActiveViewIndex == 1) { + ((Button) Master.FindControl ("Back")).Visible = false; + } + else { + ((Button) Master.FindControl ("Back")).Visible = true; + } + } + base.OnPreRender (e); + } + + void FillUserData (string user_name) + { + MembershipUser user = Membership.GetUser (user_name); + userid_txb.Text = user.UserName; + email_txb.Text = user.Email; + active_chb.Checked = user.IsApproved; + desc_txb.Text = user.Comment; + } + + protected void roles_lst_DataBound (object sender, EventArgs e) + { + foreach (ListItem item in ((CheckBoxList) sender).Items) { + item.Selected = Boolean.Parse (item.Value); + } + } + + protected void save_bt_Click (object sender, EventArgs e) + { + MembershipUser user = Membership.GetUser (user_name); + user.IsApproved = active_chb.Checked; + user.Email = email_txb.Text; + user.Comment = desc_txb.Text; + Membership.UpdateUser (user); + MultiView1.ActiveViewIndex = 1; + } + + protected void success_btn_Click (object sender, EventArgs e) + { + Server.Transfer ("ManageUser.aspx"); + } + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/EditUser.aspx.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/EditUser.aspx.cs.bak new file mode 100644 index 00000000000..29a877c4647 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/EditUser.aspx.cs.bak @@ -0,0 +1,96 @@ +// 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. + +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; + +namespace Mainsoft.Web.Administration +{ + public partial class EditUser : System.Web.UI.Page + { + String user_name; + protected void Page_Load (object sender, EventArgs e) + { + user_name = Request.QueryString["User"]; + srch.User = user_name; + if (!IsPostBack) { + FillUserData (user_name); + name_lbl.Text = user_name; + } + + Button bt = Master.FindControl ("Back") as Button; + if (bt != null) { + bt.PostBackUrl = "ManageUser.aspx"; + } + } + + protected override void OnPreRender (EventArgs e) + { + if (IsPostBack) { + if (MultiView1.ActiveViewIndex == 1) { + ((Button) Master.FindControl ("Back")).Visible = false; + } + else { + ((Button) Master.FindControl ("Back")).Visible = true; + } + } + base.OnPreRender (e); + } + + void FillUserData (string user_name) + { + MembershipUser user = Membership.GetUser (user_name); + userid_txb.Text = user.UserName; + email_txb.Text = user.Email; + active_chb.Checked = user.IsApproved; + desc_txb.Text = user.Comment; + } + + protected void roles_lst_DataBound (object sender, EventArgs e) + { + foreach (ListItem item in ((CheckBoxList) sender).Items) { + item.Selected = Boolean.Parse (item.Value); + } + } + + protected void save_bt_Click (object sender, EventArgs e) + { + MembershipUser user = Membership.GetUser (user_name); + user.IsApproved = active_chb.Checked; + user.Email = email_txb.Text; + user.Comment = desc_txb.Text; + Membership.UpdateUser (user); + MultiView1.ActiveViewIndex = 1; + } + + protected void success_btn_Click (object sender, EventArgs e) + { + Server.Transfer ("ManageUser.aspx"); + } + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/EditUser.aspx.designer.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/EditUser.aspx.designer.cs new file mode 100644 index 00000000000..ab7ca4e5ad6 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/EditUser.aspx.designer.cs @@ -0,0 +1,27 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Mainsoft.Web.AspnetConfig { + + public partial class EditUser { + protected System.Web.UI.WebControls.MultiView MultiView1; + protected System.Web.UI.WebControls.View updateUser; + protected System.Web.UI.WebControls.TextBox userid_txb; + protected System.Web.UI.WebControls.TextBox email_txb; + protected System.Web.UI.WebControls.CheckBox active_chb; + protected System.Web.UI.WebControls.TextBox desc_txb; + protected System.Web.UI.WebControls.Button save_bt; + protected Mainsoft.Web.AspnetConfig.Searcher srch; + protected System.Web.UI.WebControls.RegularExpressionValidator RegularExpressionValidator1; + protected System.Web.UI.WebControls.View successupdate; + protected System.Web.UI.WebControls.Label name_lbl; + protected System.Web.UI.WebControls.Button success_btn; + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/EditUser.aspx.designer.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/EditUser.aspx.designer.cs.bak new file mode 100644 index 00000000000..1af06ef3e2e --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/EditUser.aspx.designer.cs.bak @@ -0,0 +1,27 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Mainsoft.Web.Administration { + + public partial class EditUser { + protected System.Web.UI.WebControls.MultiView MultiView1; + protected System.Web.UI.WebControls.View updateUser; + protected System.Web.UI.WebControls.TextBox userid_txb; + protected System.Web.UI.WebControls.TextBox email_txb; + protected System.Web.UI.WebControls.CheckBox active_chb; + protected System.Web.UI.WebControls.TextBox desc_txb; + protected System.Web.UI.WebControls.Button save_bt; + protected Mainsoft.Web.Administration.Searcher srch; + protected System.Web.UI.WebControls.RegularExpressionValidator RegularExpressionValidator1; + protected System.Web.UI.WebControls.View successupdate; + protected System.Web.UI.WebControls.Label name_lbl; + protected System.Web.UI.WebControls.Button success_btn; + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Error.aspx b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Error.aspx new file mode 100644 index 00000000000..5c2e2236671 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Error.aspx @@ -0,0 +1,44 @@ +<%-- +// Mainsoft.Web.Administration - Site administration utility +// Authors: +// Klain Yoni +// +// 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. --%> + +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Error.aspx.cs" Inherits="Mainsoft.Web.Administration.Error" %> + + + + + Untitled Page + + +
+
+ Error occured on this request ! Please try again ! +
+
+ Administration utility home page +
+
+ + diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Error.aspx.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Error.aspx.cs new file mode 100644 index 00000000000..26c4c271557 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Error.aspx.cs @@ -0,0 +1,21 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +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.AspnetConfig +{ + public partial class Error : System.Web.UI.Page + { + protected void Page_Load (object sender, EventArgs e) + { + + } + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Error.aspx.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Error.aspx.cs.bak new file mode 100644 index 00000000000..5ace2d27631 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Error.aspx.cs.bak @@ -0,0 +1,21 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +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) + { + + } + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Error.aspx.designer.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Error.aspx.designer.cs new file mode 100644 index 00000000000..cb5c3f68bc1 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Error.aspx.designer.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Mainsoft.Web.AspnetConfig { + + public partial class Error { + protected System.Web.UI.HtmlControls.HtmlForm form1; + protected System.Web.UI.WebControls.HyperLink HyperLink1; + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Error.aspx.designer.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Error.aspx.designer.cs.bak new file mode 100644 index 00000000000..1bef5d3eaa4 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Error.aspx.designer.cs.bak @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Mainsoft.Web.Administration { + + public partial class Error { + protected System.Web.UI.HtmlControls.HtmlForm form1; + protected System.Web.UI.WebControls.HyperLink HyperLink1; + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/GridButton.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/GridButton.cs new file mode 100644 index 00000000000..9e81ae21073 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/GridButton.cs @@ -0,0 +1,43 @@ +// Mainsoft.Web.AspnetConfig - Site AspnetConfig 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. + +using System; +using System.Data; +using System.Configuration; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; +using System.ComponentModel; + +namespace Mainsoft.Web.AspnetConfig +{ + public class GridButton : LinkButton + { + [Bindable (true)] + public string User + { + get { return ViewState["User"] == null ? String.Empty : (string) ViewState["User"]; } + set { ViewState["User"] = value; } + } + } +} \ No newline at end of file diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/GridButton.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/GridButton.cs.bak new file mode 100644 index 00000000000..216047e619a --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/GridButton.cs.bak @@ -0,0 +1,43 @@ +// 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. + +using System; +using System.Data; +using System.Configuration; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; +using System.ComponentModel; + +namespace Mainsoft.Web.Administration +{ + public class GridButton : LinkButton + { + [Bindable (true)] + public string User + { + get { return ViewState["User"] == null ? String.Empty : (string) ViewState["User"]; } + set { ViewState["User"] = value; } + } + } +} \ No newline at end of file diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/GridCheckBox.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/GridCheckBox.cs new file mode 100644 index 00000000000..a4f6592d572 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/GridCheckBox.cs @@ -0,0 +1,55 @@ +// Mainsoft.Web.AspnetConfig - Site AspnetConfig utility +// Authors: +// Klain Yoni +// +// (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. + +using System; +using System.Data; +using System.Configuration; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; +using System.ComponentModel; + +namespace Mainsoft.Web.AspnetConfig +{ + public class GridCheckBox : CheckBox + { + [Bindable (true)] + public string User + { + get { return ViewState["User"] == null ? String.Empty : (string) ViewState["User"]; } + set { ViewState["User"] = value; } + } + + [Bindable (true)] + public string Role + { + get { return ViewState["Role"] == null ? String.Empty : (string) ViewState["Role"]; } + set { ViewState["Role"] = value; } + } + + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/GridCheckBox.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/GridCheckBox.cs.bak new file mode 100644 index 00000000000..adfa2bfdee7 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/GridCheckBox.cs.bak @@ -0,0 +1,55 @@ +// Mainsoft.Web.Administration - Site administration utility +// Authors: +// Klain Yoni +// +// (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. + +using System; +using System.Data; +using System.Configuration; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; +using System.ComponentModel; + +namespace Mainsoft.Web.Administration +{ + public class GridCheckBox : CheckBox + { + [Bindable (true)] + public string User + { + get { return ViewState["User"] == null ? String.Empty : (string) ViewState["User"]; } + set { ViewState["User"] = value; } + } + + [Bindable (true)] + public string Role + { + get { return ViewState["Role"] == null ? String.Empty : (string) ViewState["Role"]; } + set { ViewState["Role"] = value; } + } + + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/HandlerFactoryConfiguration.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/HandlerFactoryConfiguration.cs new file mode 100644 index 00000000000..353393af8e4 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/HandlerFactoryConfiguration.cs @@ -0,0 +1,247 @@ +// +// System.Web.Configuration.HandlerFactoryConfiguration.cs +// +// +// Authors: +// Miguel de Icaza (miguel@novell.com) +// Gonzalo Paniagua Javier (gonzalo@novell.com) +// +// (C) 2005 Novell, Inc (http://www.novell.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. +// + +using System; +using System.Collections; +using System.Web.Util; +using System.Text.RegularExpressions; + +namespace System.Web.Configuration { + + class FileMatchingInfo { + public string MatchExact; + public string MatchExpr; + + // If set, we can fast-path the patch with string.EndsWith (FMI.EndsWith) + public string EndsWith; + public Regex RegExp; + + public FileMatchingInfo (string s) + { + MatchExpr = s; + + if (s[0] == '*' && (s.IndexOf ('*', 1) == -1)) + EndsWith = s.Substring (1); + + if (s.IndexOf ('*') == -1) + MatchExact = "/" + s; + + if (MatchExpr != "*") { + string expr = MatchExpr.Replace(".", "\\.").Replace("?", "\\?").Replace("*", ".*"); + if (expr.Length > 0 && expr [0] =='/') + expr = expr.Substring (1); + + expr += "\\z"; + RegExp = new Regex (expr); + } + } + } + + class HttpHandler { + // If `null', we are the "*" match + public string OriginalVerb; + public string OriginalPath; + + public string [] Verbs; + public FileMatchingInfo [] files; + + // To support lazy loading we keep the name around. + public string TypeName; + Type type; + + object instance; + + public HttpHandler (string verb, string path, string typename, Type t) + { + OriginalVerb = verb; + OriginalPath = path; + + if (verb != "*") + Verbs = verb.Split (','); + string [] paths = path.Split (','); + files = new FileMatchingInfo [paths.Length]; + + int i = 0; + foreach (string s in paths) + files [i++] = new FileMatchingInfo (s); + + this.TypeName = typename; + type = t; + } + + // + // Loads the a type by name and verifies that it implements + // IHttpHandler or IHttpHandlerFactory + // + public static Type LoadType (string type_name) + { + Type t; + + try { + t = Type.GetType (type_name, true); + } catch (Exception e) { + throw new HttpException (String.Format ("Failed to load httpHandler type `{0}'", type_name)); + } + + if (typeof (IHttpHandler).IsAssignableFrom (t) || + typeof (IHttpHandlerFactory).IsAssignableFrom (t)) + return t; + + throw new HttpException (String.Format ("Type {0} does not implement IHttpHandler or IHttpHandlerFactory", type_name)); + } + + public bool PathMatches (string p) + { + int slash = p.LastIndexOf ('/'); + string orig = p; + if (slash != -1) + p = p.Substring (slash); + + for (int j = files.Length; j > 0; ){ + j--; + FileMatchingInfo fm = files [j]; + + if (fm.MatchExact != null) + return fm.MatchExact.Length == p.Length && StrUtils.EndsWith (p, fm.MatchExact); + + if (fm.EndsWith != null) + return StrUtils.EndsWith (p, fm.EndsWith); + + if (fm.MatchExpr == "*") + return true; + + /* convert to regexp */ + return fm.RegExp.IsMatch (orig); + } + return false; + } + + // Loads the handler, possibly delay-loaded. + public object GetHandlerInstance () + { + IHttpHandler ihh = instance as IHttpHandler; + + if (instance == null || (ihh != null && !ihh.IsReusable)){ + if (type == null) + type = LoadType (TypeName); + + instance = Activator.CreateInstance (type); + } + + return instance; + } + } + + class HandlerFactoryConfiguration { + ArrayList handlers; + HandlerFactoryConfiguration parent; + int parent_items; + + public HandlerFactoryConfiguration (HandlerFactoryConfiguration parent) + { + this.parent = parent; + + if (parent != null) { + handlers = new ArrayList (parent.handlers); + parent_items = handlers.Count; + } else { + handlers = new ArrayList (); + } + } + + public void Clear () + { + handlers.Clear (); + } + + public void Add (string verb, string path, string type_name, bool validate) + { + Type type; + + if (validate){ + type = HttpHandler.LoadType (type_name); + if (type == null) + throw new HttpException (String.Format ("Can not load {0}", type_name)); + } else + type = null; + + handlers.Add (new HttpHandler (verb, path, type_name, type)); + } + + public bool Remove (string verb, string path) + { + for (int i = handlers.Count - 1; i >= 0; i--) { + HttpHandler handler = (HttpHandler) handlers [i]; + + if (verb == handler.OriginalVerb && path == handler.OriginalPath){ + handlers.RemoveAt (i); + return true; + } + } + + return false; + } + + public object LocateHandler (string verb, string filepath) + { + int start, end; + int count = handlers.Count; + for (int k = 0; k < 2; k++) { + // First iteration searches for the mapping in the items added to this + // instance. The second one searches through the parent items if any. + start = (k == 0) ? parent_items : 0; + end = (k == 0) ? count : parent_items; + for (int i = start; i < end; i++) { + HttpHandler handler = (HttpHandler) handlers [i]; + + if (handler.Verbs == null){ + if (handler.PathMatches (filepath)) + return handler.GetHandlerInstance (); + continue; + } + + string [] verbs = handler.Verbs; + for (int j = verbs.Length; j > 0; ){ + j--; + if (verbs [j] != verb) + continue; + if (handler.PathMatches (filepath)) + return handler.GetHandlerInstance (); + } + } + } + + return null; + } + } +} + diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/HttpHandlersSectionHandler.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/HttpHandlersSectionHandler.cs new file mode 100644 index 00000000000..013b3e6f46a --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/HttpHandlersSectionHandler.cs @@ -0,0 +1,91 @@ +// +// System.Web.Configuration.HttpHandlersSectionHandler +// +// Authors: +// Gonzalo Paniagua Javier (gonzalo@ximian.com) +// +// (C) 2002 Ximian, Inc (http://www.ximian.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. +// + +using System.Collections; +using System.Configuration; +using System.Xml; +using System.Globalization; +using System; + +namespace Mainsoft.Web.Configuration +{ + + + internal class HandlersUtil + { + private HandlersUtil () + { + } + + static internal string ExtractAttributeValue (string attKey, XmlNode node) + { + return ExtractAttributeValue (attKey, node, false); + } + + static internal string ExtractAttributeValue (string attKey, XmlNode node, bool optional) + { + return ExtractAttributeValue (attKey, node, optional, false); + } + + static internal string ExtractAttributeValue (string attKey, XmlNode node, bool optional, + bool allowEmpty) + { + if (node.Attributes == null) { + if (optional) + return null; + + ThrowException ("Required attribute not found: " + attKey, node); + } + + XmlNode att = node.Attributes.RemoveNamedItem (attKey); + if (att == null) { + if (optional) + return null; + ThrowException ("Required attribute not found: " + attKey, node); + } + + string value = att.Value; + if (!allowEmpty && value == String.Empty) { + string opt = optional ? "Optional" : "Required"; + ThrowException (opt + " attribute is empty: " + attKey, node); + } + + return value; + } + + static internal void ThrowException (string msg, XmlNode node) + { + if (node != null && node.Name != String.Empty) + msg = msg + " (node name: " + node.Name + ") "; + throw new ConfigurationException (msg, node); + } + } +} + diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Mainsoft.Web.AspnetConfig.css b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Mainsoft.Web.AspnetConfig.css new file mode 100644 index 00000000000..b211386067b --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Mainsoft.Web.AspnetConfig.css @@ -0,0 +1,72 @@ + +.appHeader +{ + background-image: url(Images/mainsoft.jpg); + background-repeat :no-repeat; + height: 139px; + width: 100%; + border-bottom: 1 solid #7daad4; + background-color:White; + width: 100%; + height: 133px; +} + +.controlheader { + text-align: center; + background-color: #5D7B9D; + font-weight:bold; + font-size:0.9em; + color:White; + text-align:center; + height: 25px; +} + +.maintable { + 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; + width: 100%; +} + +.innertable +{ + background-color: #f7f6f3; + border-right: #e6e2d8 1px solid; + border-top: #e6e2d8 1px solid; + border-left: #e6e2d8 1px solid; + border-bottom: #e6e2d8 1px solid; +} + +.h1{ + font-size: 25px; + vertical-align: middle; + color: #6699ff; + text-align: center; +} + +.bordredtable +{ + border-right: #6699ff 5px solid; + padding-right: 40px; + border-top: #6699ff 5px solid; + padding-left: 40px; + padding-bottom: 40px; + border-left: #6699ff 5px solid; + padding-top: 40px; + border-bottom: #6699ff 5px solid; + width: 90%; + height: 500px; + margin:5%; +} + + +BODY,TABLE,TR,TD +{ + font-family: Arial; + font-size: 11pt; +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageRole.aspx b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageRole.aspx new file mode 100644 index 00000000000..a0f12226f74 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageRole.aspx @@ -0,0 +1,98 @@ +<%-- +// Mainsoft.Web.Administration - Site administration utility +// Authors: +// Klain Yoni +// +// 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. --%> +<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/aspnetconfig/Util.Master" CodeBehind="ManageRole.aspx.cs" Inherits="Mainsoft.Web.Administration.MenageRole" %> +<%@ Register tagprefix="custom" namespace="Mainsoft.Web.Administration" Assembly="Mainsoft.Web.Administration" %> + + + + + + + + +
+ Use this page to manage the members in the specified role. To add a user to the role, search for the user name and then select the User Is In Role check box for that user. +
+ Role: +
+
+ + + + + + + + + + +
+ Search for Users +
+ Search for Users     + + User Name + E-Mail +     +   +
+ Wildcard characters * and ? are permitted.

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
\ No newline at end of file diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageRole.aspx.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageRole.aspx.cs new file mode 100644 index 00000000000..c6422861964 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageRole.aspx.cs @@ -0,0 +1,76 @@ +// Mainsoft.Web.AspnetConfig - Site AspnetConfig 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. --> + + +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; + +namespace Mainsoft.Web.AspnetConfig +{ + public partial class MenageRole : System.Web.UI.Page + { + String role; + protected void Page_Load (object sender, EventArgs e) + { + role = Request.QueryString["Role"]; + if (!Roles.RoleExists (role)) { + Server.Transfer ("Error.aspx"); + } + role_lbl.Text = role; + Button bt = Master.FindControl ("Back") as Button; + if (bt != null) { + bt.PostBackUrl = "CreateRole.aspx"; + } + } + + protected override void OnPreRender (EventArgs e) + { + Roles_gv.DataBind (); + base.OnPreRender (e); + } + + public void CheckBox_CheckedChanged (object sender, EventArgs e) + { + string user = ((GridCheckBox) sender).User; + if (((GridCheckBox) sender).Checked) { + try { + Roles.AddUserToRole (user, role); + } + catch { + } + } + else { + try { + Roles.RemoveUserFromRole (user, role); + } + catch { + } + } + } + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageRole.aspx.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageRole.aspx.cs.bak new file mode 100644 index 00000000000..c2929145809 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageRole.aspx.cs.bak @@ -0,0 +1,76 @@ +// 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. --> + + +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; + +namespace Mainsoft.Web.Administration +{ + public partial class MenageRole : System.Web.UI.Page + { + String role; + protected void Page_Load (object sender, EventArgs e) + { + role = Request.QueryString["Role"]; + if (!Roles.RoleExists (role)) { + Server.Transfer ("Error.aspx"); + } + role_lbl.Text = role; + Button bt = Master.FindControl ("Back") as Button; + if (bt != null) { + bt.PostBackUrl = "CreateRole.aspx"; + } + } + + protected override void OnPreRender (EventArgs e) + { + Roles_gv.DataBind (); + base.OnPreRender (e); + } + + public void CheckBox_CheckedChanged (object sender, EventArgs e) + { + string user = ((GridCheckBox) sender).User; + if (((GridCheckBox) sender).Checked) { + try { + Roles.AddUserToRole (user, role); + } + catch { + } + } + else { + try { + Roles.RemoveUserFromRole (user, role); + } + catch { + } + } + } + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageRole.aspx.designer.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageRole.aspx.designer.cs new file mode 100644 index 00000000000..08527bd71dc --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageRole.aspx.designer.cs @@ -0,0 +1,21 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Mainsoft.Web.AspnetConfig { + + public partial class MenageRole { + protected System.Web.UI.WebControls.Label role_lbl; + protected System.Web.UI.WebControls.DropDownList searchBy_dl; + protected System.Web.UI.WebControls.TextBox user_txt; + protected System.Web.UI.WebControls.Button searchUser_bt; + protected System.Web.UI.WebControls.GridView Roles_gv; + protected System.Web.UI.WebControls.ObjectDataSource ObjectDataSource1; + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageRole.aspx.designer.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageRole.aspx.designer.cs.bak new file mode 100644 index 00000000000..86d183bca26 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageRole.aspx.designer.cs.bak @@ -0,0 +1,21 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Mainsoft.Web.Administration { + + public partial class MenageRole { + protected System.Web.UI.WebControls.Label role_lbl; + protected System.Web.UI.WebControls.DropDownList searchBy_dl; + protected System.Web.UI.WebControls.TextBox user_txt; + protected System.Web.UI.WebControls.Button searchUser_bt; + protected System.Web.UI.WebControls.GridView Roles_gv; + protected System.Web.UI.WebControls.ObjectDataSource ObjectDataSource1; + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageUser.aspx b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageUser.aspx new file mode 100644 index 00000000000..fc69ea71aed --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageUser.aspx @@ -0,0 +1,144 @@ +<%-- +// Mainsoft.Web.Administration - Site administration utility +// Authors: +// Klain Yoni +// +// 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. --%> +<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/aspnetconfig/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" %> + + + + + + + + + + + + + + +
+ Click Edit User to view or change the user's password or other properties. To assign roles to the selected user, select the appropriate check boxes on the right. To prevent users from logging in to your application while retaining their information in your database, set the status to inactive by clearing the check box. +


+
+ + + + + + + + + + + +
+ Search for Users +
+ Search by :     + + User Name + E-Mail +     +   +
+ Wildcard characters * and ? are permitted.

+
+ + + + + + + + + + + + + + + + Delete User + + + + + Edit roles + + + + + + + + + + + + + + + + + + + + + +
+

+
+ Create new user +
+
+ + + + + + + + +
+
+   + Are you sure you want to delete the user: "<%= User_name %>"?
+ All information for this user will be deleted, including the user name, the user's membership in roles, and any profile property values associated with this user. +


+
+ + +
+
+
+
diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageUser.aspx.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageUser.aspx.cs new file mode 100644 index 00000000000..25a070cd1f8 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageUser.aspx.cs @@ -0,0 +1,138 @@ +// Mainsoft.Web.AspnetConfig - Site AspnetConfig utility +// Authors: +// Klain Yoni +// +// Mainsoft.Web.AspnetConfig - Site AspnetConfig 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. + + +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; + +namespace Mainsoft.Web.AspnetConfig +{ + public partial class ManageUser : System.Web.UI.Page + { + public string User_name + { + get { return ViewState["User"] == null ? String.Empty : (string) ViewState["User"]; } + set { ViewState["User"] = value; } + } + + protected void Page_Load (object sender, EventArgs e) + { + Button bt = Master.FindControl ("Back") as Button; + if (bt != null) { + bt.PostBackUrl = "Default.aspx"; + } + } + + protected override void OnInit (EventArgs e) + { + Img.ImageUrl = this.Page.ClientScript.GetWebResourceUrl (typeof (ManageUser), "Mainsoft.Web.AspnetConfig.resources.untitled.bmp"); + base.OnInit (e); + } + + protected override void OnPreRender (EventArgs e) + { + if (IsPostBack) { + Roles_gv.DataBind (); + if (mv.ActiveViewIndex == 1) { + ((Button) Master.FindControl ("Back")).Visible = false; + } + else { + ((Button) Master.FindControl ("Back")).Visible = true; + } + } + base.OnPreRender (e); + } + + public void CheckBox_CheckedChanged (object sender, EventArgs e) + { + string user_name = ((GridCheckBox) sender).User; + MembershipUser user = Membership.GetUser (user_name); + if (((GridCheckBox) sender).Checked) { + user.IsApproved = true; + Membership.UpdateUser (user); + } + else { + user.IsApproved = false; + Membership.UpdateUser (user); + } + } + + protected void gridbtn_click (object sender, EventArgs e) + { + srch.User = ((GridButton) sender).User; + } + + protected void Roles_Changed (object sender, EventArgs e) + { + String user_name = (string) ViewState["User_name"]; + if (((CheckBox) sender).Checked) { + try { + Roles.AddUserToRole (user_name, ((CheckBox) sender).Text); + } + catch { + } + } + else { + try { + Roles.RemoveUserFromRole (user_name, ((CheckBox) sender).Text); + } + catch { + } + } + } + + protected void Click_No (object sender, EventArgs e) + { + mv.ActiveViewIndex = 0; + } + + protected void Click_Yes (object sender, EventArgs e) + { + RolesDS.DeleteUser (User_name); + //Roles_gv.DataBind (); + mv.ActiveViewIndex = 0; + } + + protected void Delete_Click (object sender, EventArgs e) + { + User_name = ((GridButton) sender).User; + mv.ActiveViewIndex = 1; + } + + protected void gridbtn_load (object sender, EventArgs e) + { + if (!Roles.Enabled) { + ((GridButton)sender).Enabled = false; + } + } + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageUser.aspx.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageUser.aspx.cs.bak new file mode 100644 index 00000000000..7a7b38b052d --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageUser.aspx.cs.bak @@ -0,0 +1,138 @@ +// Mainsoft.Web.Administration - Site administration utility +// Authors: +// Klain Yoni +// +// 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. + + +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; + +namespace Mainsoft.Web.Administration +{ + public partial class ManageUser : System.Web.UI.Page + { + public string User_name + { + get { return ViewState["User"] == null ? String.Empty : (string) ViewState["User"]; } + set { ViewState["User"] = value; } + } + + protected void Page_Load (object sender, EventArgs e) + { + Button bt = Master.FindControl ("Back") as Button; + if (bt != null) { + bt.PostBackUrl = "Default.aspx"; + } + } + + protected override void OnInit (EventArgs e) + { + Img.ImageUrl = this.Page.ClientScript.GetWebResourceUrl (typeof (ManageUser), "Mainsoft.Web.Administration.resources.untitled.bmp"); + base.OnInit (e); + } + + protected override void OnPreRender (EventArgs e) + { + if (IsPostBack) { + Roles_gv.DataBind (); + if (mv.ActiveViewIndex == 1) { + ((Button) Master.FindControl ("Back")).Visible = false; + } + else { + ((Button) Master.FindControl ("Back")).Visible = true; + } + } + base.OnPreRender (e); + } + + public void CheckBox_CheckedChanged (object sender, EventArgs e) + { + string user_name = ((GridCheckBox) sender).User; + MembershipUser user = Membership.GetUser (user_name); + if (((GridCheckBox) sender).Checked) { + user.IsApproved = true; + Membership.UpdateUser (user); + } + else { + user.IsApproved = false; + Membership.UpdateUser (user); + } + } + + protected void gridbtn_click (object sender, EventArgs e) + { + srch.User = ((GridButton) sender).User; + } + + protected void Roles_Changed (object sender, EventArgs e) + { + String user_name = (string) ViewState["User_name"]; + if (((CheckBox) sender).Checked) { + try { + Roles.AddUserToRole (user_name, ((CheckBox) sender).Text); + } + catch { + } + } + else { + try { + Roles.RemoveUserFromRole (user_name, ((CheckBox) sender).Text); + } + catch { + } + } + } + + protected void Click_No (object sender, EventArgs e) + { + mv.ActiveViewIndex = 0; + } + + protected void Click_Yes (object sender, EventArgs e) + { + RolesDS.DeleteUser (User_name); + //Roles_gv.DataBind (); + mv.ActiveViewIndex = 0; + } + + protected void Delete_Click (object sender, EventArgs e) + { + User_name = ((GridButton) sender).User; + mv.ActiveViewIndex = 1; + } + + protected void gridbtn_load (object sender, EventArgs e) + { + if (!Roles.Enabled) { + ((GridButton)sender).Enabled = false; + } + } + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageUser.aspx.designer.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageUser.aspx.designer.cs new file mode 100644 index 00000000000..33dab35f4b3 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageUser.aspx.designer.cs @@ -0,0 +1,28 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Mainsoft.Web.AspnetConfig { + + public partial class ManageUser { + protected System.Web.UI.WebControls.MultiView mv; + protected System.Web.UI.WebControls.View manage; + protected System.Web.UI.WebControls.DropDownList searchBy_lbx; + protected System.Web.UI.WebControls.TextBox user_txt; + protected System.Web.UI.WebControls.Button searchUser_bt; + protected System.Web.UI.WebControls.GridView Roles_gv; + protected System.Web.UI.WebControls.ObjectDataSource ObjectDataSource1; + protected Mainsoft.Web.AspnetConfig.Searcher srch; + protected System.Web.UI.WebControls.HyperLink HyperLink1; + protected System.Web.UI.WebControls.View quest; + protected System.Web.UI.WebControls.Image Img; + protected System.Web.UI.WebControls.Button yes; + protected System.Web.UI.WebControls.Button no; + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageUser.aspx.designer.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageUser.aspx.designer.cs.bak new file mode 100644 index 00000000000..d7b2294239f --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/ManageUser.aspx.designer.cs.bak @@ -0,0 +1,28 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Mainsoft.Web.Administration { + + public partial class ManageUser { + protected System.Web.UI.WebControls.MultiView mv; + protected System.Web.UI.WebControls.View manage; + protected System.Web.UI.WebControls.DropDownList searchBy_lbx; + protected System.Web.UI.WebControls.TextBox user_txt; + protected System.Web.UI.WebControls.Button searchUser_bt; + protected System.Web.UI.WebControls.GridView Roles_gv; + protected System.Web.UI.WebControls.ObjectDataSource ObjectDataSource1; + protected Mainsoft.Web.Administration.Searcher srch; + protected System.Web.UI.WebControls.HyperLink HyperLink1; + protected System.Web.UI.WebControls.View quest; + protected System.Web.UI.WebControls.Image Img; + protected System.Web.UI.WebControls.Button yes; + protected System.Web.UI.WebControls.Button no; + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/RolesDS.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/RolesDS.cs new file mode 100644 index 00000000000..4b5949a27ef --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/RolesDS.cs @@ -0,0 +1,301 @@ +// Mainsoft.Web.AspnetConfig - Site AspnetConfig 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. + + +using System; +using System.Data; +using System.Configuration; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; +using System.Text.RegularExpressions; + +namespace Mainsoft.Web.AspnetConfig +{ + public class RolesDS + { + public static DataTable Select() + { + return CreateDataTable(); + } + + public static DataTable SelectUser() + { + return CreateUserDataTable(); + } + + public static DataTable SelectUser(string searchtag, string searchby) + { + return CreateUserDataTable(searchtag, searchby); + } + + public static DataTable SelectUsersRole(string user) + { + return CreateUsersRoles(user); + } + + public static DataTable CreateUsersRoles(string user) + { + DataTable aTable = new DataTable("A"); + DataColumn dtCol; + DataColumn dtCol1; + DataRow dtRow; + + + // Create User Name column and add to the table + dtCol = new DataColumn(); + dtCol.DataType = Type.GetType("System.String"); + dtCol.ColumnName = "Role"; + dtCol.AutoIncrement = false; + dtCol.ReadOnly = false; + dtCol.Unique = true; + aTable.Columns.Add(dtCol); + + dtCol1 = new DataColumn(); + dtCol1.DataType = Type.GetType("System.Boolean"); + dtCol1.ColumnName = "IsInRole"; + dtCol1.AutoIncrement = false; + dtCol1.ReadOnly = false; + dtCol1.Unique = false; + aTable.Columns.Add(dtCol1); + + if (Roles.Enabled) { + // Create rows to the table + foreach (String role in Roles.GetAllRoles ()) { + dtRow = aTable.NewRow (); + dtRow["Role"] = role; + dtRow["IsInRole"] = Roles.IsUserInRole (user, role); + aTable.Rows.Add (dtRow); + } + } + aTable.PrimaryKey = new DataColumn[] { aTable.Columns["Role"] }; + return aTable; + } + + public static DataTable Delete(string Role) + { + if (Roles.RoleExists(Role)) + { + Roles.DeleteRole(Role,false); + } + return Select(); + } + + public static DataTable DeleteUser(string User) + { + Membership.DeleteUser(User, true); + return SelectUser(); + } + + public static DataTable CreateUserDataTable() + { + DataTable aTable = new DataTable("A"); + DataColumn dtCol; + DataColumn dtCol1; + DataRow dtRow; + + // Create User Name column and add to the table + dtCol = new DataColumn(); + dtCol.DataType = Type.GetType("System.String"); + dtCol.ColumnName = "User"; + dtCol.AutoIncrement = false; + dtCol.ReadOnly = false; + dtCol.Unique = true; + aTable.Columns.Add(dtCol); + + dtCol1 = new DataColumn(); + dtCol1.DataType = Type.GetType("System.Boolean"); + dtCol1.ColumnName = "Active"; + dtCol1.AutoIncrement = false; + dtCol1.ReadOnly = false; + dtCol1.Unique = false; + aTable.Columns.Add(dtCol1); + + // Create rows to the table + foreach (MembershipUser user in Membership.GetAllUsers()) + { + dtRow = aTable.NewRow(); + dtRow["User"] = user.UserName; + dtRow["Active"] = user.IsApproved; + aTable.Rows.Add(dtRow); + } + + aTable.PrimaryKey = new DataColumn[] { aTable.Columns["User"] }; + return aTable; + } + + public static DataTable CreateUserDataTable(string searchtag, string searchby) + { + DataTable aTable = new DataTable("A"); + DataColumn dtCol; + DataColumn dtCol1; + DataRow dtRow; + + dtCol = new DataColumn(); + dtCol.DataType = Type.GetType("System.String"); + dtCol.ColumnName = "User"; + dtCol.AutoIncrement = false; + dtCol.ReadOnly = false; + dtCol.Unique = true; + aTable.Columns.Add(dtCol); + + dtCol1 = new DataColumn(); + dtCol1.DataType = Type.GetType("System.Boolean"); + dtCol1.ColumnName = "Active"; + dtCol1.AutoIncrement = false; + dtCol1.ReadOnly = false; + dtCol1.Unique = false; + aTable.Columns.Add(dtCol1); + + string text = searchtag; + text = text.Replace("*", "%"); + text = text.Replace("?", "_"); + + if (text.Trim() == "\"\"") + text = "%"; + + if (searchby == "Name") + { + foreach (MembershipUser user in Membership.FindUsersByName(text)) + { + dtRow = aTable.NewRow(); + dtRow["User"] = user.UserName; + dtRow["Active"] = user.IsApproved; + aTable.Rows.Add(dtRow); + } + } + else // Mail + { + foreach (MembershipUser user in Membership.FindUsersByEmail(text)) + { + dtRow = aTable.NewRow(); + dtRow["User"] = user.UserName; + dtRow["Active"] = user.IsApproved; + aTable.Rows.Add(dtRow); + } + } + + aTable.PrimaryKey = new DataColumn[] { aTable.Columns["User"] }; + return aTable; + } + + public static DataTable CreateDataTable() + { + DataTable aTable = new DataTable("A"); + DataColumn dtCol; + DataRow dtRow; + + // Create Name column and add to the table + dtCol = new DataColumn(); + dtCol.DataType = Type.GetType("System.String"); + dtCol.ColumnName = "Role"; + dtCol.AutoIncrement = false; + dtCol.Caption = "Role Name"; + dtCol.ReadOnly = false; + dtCol.Unique = false; + aTable.Columns.Add(dtCol); + + if (Roles.Enabled) { + // Create rows to the table + foreach (string str in Roles.GetAllRoles ()) { + dtRow = aTable.NewRow (); + dtRow["Role"] = str; + aTable.Rows.Add (dtRow); + } + } + + aTable.PrimaryKey = new DataColumn[] { aTable.Columns["Role"] }; + return aTable; + } + + public static DataTable CreateManageRoleTable(string role, string searchtag, string searchby) + { + DataTable aTable = new DataTable("A"); + DataColumn dtCol; + DataColumn dtCol1; + DataRow dtRow; + + // Create UserName column and add to the table + dtCol = new DataColumn(); + dtCol.DataType = Type.GetType("System.String"); + dtCol.ColumnName = "User"; + dtCol.AutoIncrement = false; + dtCol.Caption = "User Name"; + dtCol.ReadOnly = false; + dtCol.Unique = true; + aTable.Columns.Add(dtCol); + + // Create User in role bool column and add to the table + dtCol1 = new DataColumn(); + dtCol1.DataType = Type.GetType("System.Boolean"); + dtCol1.ColumnName = "InRole"; + dtCol1.AutoIncrement = false; + dtCol1.Caption = "User Is In Role"; + dtCol1.ReadOnly = false; + dtCol1.Unique = false; + aTable.Columns.Add(dtCol1); + + string text = searchtag; + text = text.Replace("*", "%"); + text = text.Replace("?", "_"); + + if (text.Trim() == "\"\"") + text = "%"; + + if (searchby == "Name") + { + foreach (MembershipUser user in Membership.FindUsersByName(text)) + { + dtRow = aTable.NewRow(); + dtRow["User"] = user.UserName; + if (Roles.Enabled) { + dtRow["InRole"] = Roles.IsUserInRole (user.UserName, role); + } + else { + dtRow["InRole"] = false; + } + aTable.Rows.Add(dtRow); + } + } + else // Mail + { + foreach (MembershipUser user in Membership.FindUsersByEmail(text)) + { + dtRow = aTable.NewRow(); + dtRow["User"] = user.UserName; + if (Roles.Enabled) { + dtRow["InRole"] = Roles.IsUserInRole (user.UserName, role); + } + else { + dtRow["InRole"] = false; + } + aTable.Rows.Add(dtRow); + } + } + aTable.PrimaryKey = new DataColumn[] { aTable.Columns["User"] }; + return aTable; + } + } +} + + diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/RolesDS.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/RolesDS.cs.bak new file mode 100644 index 00000000000..6cacf67d37f --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/RolesDS.cs.bak @@ -0,0 +1,301 @@ +// 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. + + +using System; +using System.Data; +using System.Configuration; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; +using System.Text.RegularExpressions; + +namespace Mainsoft.Web.Administration +{ + public class RolesDS + { + public static DataTable Select() + { + return CreateDataTable(); + } + + public static DataTable SelectUser() + { + return CreateUserDataTable(); + } + + public static DataTable SelectUser(string searchtag, string searchby) + { + return CreateUserDataTable(searchtag, searchby); + } + + public static DataTable SelectUsersRole(string user) + { + return CreateUsersRoles(user); + } + + public static DataTable CreateUsersRoles(string user) + { + DataTable aTable = new DataTable("A"); + DataColumn dtCol; + DataColumn dtCol1; + DataRow dtRow; + + + // Create User Name column and add to the table + dtCol = new DataColumn(); + dtCol.DataType = Type.GetType("System.String"); + dtCol.ColumnName = "Role"; + dtCol.AutoIncrement = false; + dtCol.ReadOnly = false; + dtCol.Unique = true; + aTable.Columns.Add(dtCol); + + dtCol1 = new DataColumn(); + dtCol1.DataType = Type.GetType("System.Boolean"); + dtCol1.ColumnName = "IsInRole"; + dtCol1.AutoIncrement = false; + dtCol1.ReadOnly = false; + dtCol1.Unique = false; + aTable.Columns.Add(dtCol1); + + if (Roles.Enabled) { + // Create rows to the table + foreach (String role in Roles.GetAllRoles ()) { + dtRow = aTable.NewRow (); + dtRow["Role"] = role; + dtRow["IsInRole"] = Roles.IsUserInRole (user, role); + aTable.Rows.Add (dtRow); + } + } + aTable.PrimaryKey = new DataColumn[] { aTable.Columns["Role"] }; + return aTable; + } + + public static DataTable Delete(string Role) + { + if (Roles.RoleExists(Role)) + { + Roles.DeleteRole(Role,false); + } + return Select(); + } + + public static DataTable DeleteUser(string User) + { + Membership.DeleteUser(User, true); + return SelectUser(); + } + + public static DataTable CreateUserDataTable() + { + DataTable aTable = new DataTable("A"); + DataColumn dtCol; + DataColumn dtCol1; + DataRow dtRow; + + // Create User Name column and add to the table + dtCol = new DataColumn(); + dtCol.DataType = Type.GetType("System.String"); + dtCol.ColumnName = "User"; + dtCol.AutoIncrement = false; + dtCol.ReadOnly = false; + dtCol.Unique = true; + aTable.Columns.Add(dtCol); + + dtCol1 = new DataColumn(); + dtCol1.DataType = Type.GetType("System.Boolean"); + dtCol1.ColumnName = "Active"; + dtCol1.AutoIncrement = false; + dtCol1.ReadOnly = false; + dtCol1.Unique = false; + aTable.Columns.Add(dtCol1); + + // Create rows to the table + foreach (MembershipUser user in Membership.GetAllUsers()) + { + dtRow = aTable.NewRow(); + dtRow["User"] = user.UserName; + dtRow["Active"] = user.IsApproved; + aTable.Rows.Add(dtRow); + } + + aTable.PrimaryKey = new DataColumn[] { aTable.Columns["User"] }; + return aTable; + } + + public static DataTable CreateUserDataTable(string searchtag, string searchby) + { + DataTable aTable = new DataTable("A"); + DataColumn dtCol; + DataColumn dtCol1; + DataRow dtRow; + + dtCol = new DataColumn(); + dtCol.DataType = Type.GetType("System.String"); + dtCol.ColumnName = "User"; + dtCol.AutoIncrement = false; + dtCol.ReadOnly = false; + dtCol.Unique = true; + aTable.Columns.Add(dtCol); + + dtCol1 = new DataColumn(); + dtCol1.DataType = Type.GetType("System.Boolean"); + dtCol1.ColumnName = "Active"; + dtCol1.AutoIncrement = false; + dtCol1.ReadOnly = false; + dtCol1.Unique = false; + aTable.Columns.Add(dtCol1); + + string text = searchtag; + text = text.Replace("*", "%"); + text = text.Replace("?", "_"); + + if (text.Trim() == "\"\"") + text = "%"; + + if (searchby == "Name") + { + foreach (MembershipUser user in Membership.FindUsersByName(text)) + { + dtRow = aTable.NewRow(); + dtRow["User"] = user.UserName; + dtRow["Active"] = user.IsApproved; + aTable.Rows.Add(dtRow); + } + } + else // Mail + { + foreach (MembershipUser user in Membership.FindUsersByEmail(text)) + { + dtRow = aTable.NewRow(); + dtRow["User"] = user.UserName; + dtRow["Active"] = user.IsApproved; + aTable.Rows.Add(dtRow); + } + } + + aTable.PrimaryKey = new DataColumn[] { aTable.Columns["User"] }; + return aTable; + } + + public static DataTable CreateDataTable() + { + DataTable aTable = new DataTable("A"); + DataColumn dtCol; + DataRow dtRow; + + // Create Name column and add to the table + dtCol = new DataColumn(); + dtCol.DataType = Type.GetType("System.String"); + dtCol.ColumnName = "Role"; + dtCol.AutoIncrement = false; + dtCol.Caption = "Role Name"; + dtCol.ReadOnly = false; + dtCol.Unique = false; + aTable.Columns.Add(dtCol); + + if (Roles.Enabled) { + // Create rows to the table + foreach (string str in Roles.GetAllRoles ()) { + dtRow = aTable.NewRow (); + dtRow["Role"] = str; + aTable.Rows.Add (dtRow); + } + } + + aTable.PrimaryKey = new DataColumn[] { aTable.Columns["Role"] }; + return aTable; + } + + public static DataTable CreateManageRoleTable(string role, string searchtag, string searchby) + { + DataTable aTable = new DataTable("A"); + DataColumn dtCol; + DataColumn dtCol1; + DataRow dtRow; + + // Create UserName column and add to the table + dtCol = new DataColumn(); + dtCol.DataType = Type.GetType("System.String"); + dtCol.ColumnName = "User"; + dtCol.AutoIncrement = false; + dtCol.Caption = "User Name"; + dtCol.ReadOnly = false; + dtCol.Unique = true; + aTable.Columns.Add(dtCol); + + // Create User in role bool column and add to the table + dtCol1 = new DataColumn(); + dtCol1.DataType = Type.GetType("System.Boolean"); + dtCol1.ColumnName = "InRole"; + dtCol1.AutoIncrement = false; + dtCol1.Caption = "User Is In Role"; + dtCol1.ReadOnly = false; + dtCol1.Unique = false; + aTable.Columns.Add(dtCol1); + + string text = searchtag; + text = text.Replace("*", "%"); + text = text.Replace("?", "_"); + + if (text.Trim() == "\"\"") + text = "%"; + + if (searchby == "Name") + { + foreach (MembershipUser user in Membership.FindUsersByName(text)) + { + dtRow = aTable.NewRow(); + dtRow["User"] = user.UserName; + if (Roles.Enabled) { + dtRow["InRole"] = Roles.IsUserInRole (user.UserName, role); + } + else { + dtRow["InRole"] = false; + } + aTable.Rows.Add(dtRow); + } + } + else // Mail + { + foreach (MembershipUser user in Membership.FindUsersByEmail(text)) + { + dtRow = aTable.NewRow(); + dtRow["User"] = user.UserName; + if (Roles.Enabled) { + dtRow["InRole"] = Roles.IsUserInRole (user.UserName, role); + } + else { + dtRow["InRole"] = false; + } + aTable.Rows.Add(dtRow); + } + } + aTable.PrimaryKey = new DataColumn[] { aTable.Columns["User"] }; + return aTable; + } + } +} + + diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/SecurError.aspx b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/SecurError.aspx new file mode 100644 index 00000000000..518da8182b8 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/SecurError.aspx @@ -0,0 +1,44 @@ +<%-- +// Mainsoft.Web.Administration - Site administration utility +// Authors: +// Klain Yoni +// +// 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. --%> +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SecurError.aspx.cs" Inherits="Mainsoft.Web.Administration.SecurError" %> + + + + + Error Page + + +
+
+ Error occurred on this request!
+ This tool cannot be remotely accessed! +
+
+ Administration utility home page +
+
+ + diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/SecurError.aspx.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/SecurError.aspx.cs new file mode 100644 index 00000000000..8b2a60b3c5c --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/SecurError.aspx.cs @@ -0,0 +1,21 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +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.AspnetConfig +{ + public partial class SecurError : System.Web.UI.Page + { + protected void Page_Load (object sender, EventArgs e) + { + + } + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/SecurError.aspx.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/SecurError.aspx.cs.bak new file mode 100644 index 00000000000..2e10c885212 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/SecurError.aspx.cs.bak @@ -0,0 +1,21 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +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 SecurError : System.Web.UI.Page + { + protected void Page_Load (object sender, EventArgs e) + { + + } + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/SecurError.aspx.designer.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/SecurError.aspx.designer.cs new file mode 100644 index 00000000000..9458c38a1a8 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/SecurError.aspx.designer.cs @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Mainsoft.Web.AspnetConfig { + + public partial class SecurError { + protected System.Web.UI.HtmlControls.HtmlForm form1; + protected System.Web.UI.WebControls.HyperLink HyperLink1; + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/SecurError.aspx.designer.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/SecurError.aspx.designer.cs.bak new file mode 100644 index 00000000000..8c371238bf2 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/SecurError.aspx.designer.cs.bak @@ -0,0 +1,17 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Mainsoft.Web.Administration { + + public partial class SecurError { + protected System.Web.UI.HtmlControls.HtmlForm form1; + protected System.Web.UI.WebControls.HyperLink HyperLink1; + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/StrUtils.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/StrUtils.cs new file mode 100644 index 00000000000..debcf68113d --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/StrUtils.cs @@ -0,0 +1,101 @@ +// +// System.Web.Util.StrUtils +// +// Author(s): +// Gonzalo Paniagua Javier (gonzalo@ximian.com) +// +// (C) 2005 Novell, Inc, (http://www.novell.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. +// + +using System; +using System.Globalization; +using System.Text; + +namespace Mainsoft.Web.Util +{ + internal sealed class StrUtils { + static CultureInfo invariant = CultureInfo.InvariantCulture; + private StrUtils () { } + + public static bool StartsWith (string str1, string str2) + { + return StartsWith (str1, str2, false); + } + + public static bool StartsWith (string str1, string str2, bool ignore_case) + { + int l2 = str2.Length; + if (l2 == 0) + return true; + + int l1 = str1.Length; + if (l2 > l1) + return false; + + return (0 == String.Compare (str1, 0, str2, 0, l2, ignore_case, invariant)); + } + + public static bool EndsWith (string str1, string str2) + { + return EndsWith (str1, str2, false); + } + + public static bool EndsWith (string str1, string str2, bool ignore_case) + { + int l2 = str2.Length; + if (l2 == 0) + return true; + + int l1 = str1.Length; + if (l2 > l1) + return false; + + return (0 == String.Compare (str1, l1 - l2, str2, 0, l2, ignore_case, invariant)); + } + + public static string EscapeQuotesAndBackslashes (string attributeValue) + { + StringBuilder sb = null; + for (int i = 0; i < attributeValue.Length; i++) { + char ch = attributeValue [i]; + if (ch == '\'' || ch == '"' || ch == '\\') { + if (sb == null) { + sb = new StringBuilder (); + sb.Append (attributeValue.Substring (0, i)); + } + sb.Append ('\\'); + sb.Append (ch); + } + else { + if (sb != null) + sb.Append (ch); + } + } + if (sb != null) + return sb.ToString (); + return attributeValue; + } + } +} + diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/UrlUtils.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/UrlUtils.cs new file mode 100644 index 00000000000..5ce30bd32aa --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/UrlUtils.cs @@ -0,0 +1,271 @@ +// +// System.Web.UrlUtils.cs +// +// Authors: +// Gonzalo Paniagua (gonzalo@ximian.com) +// Jackson Harper (jackson@ximian.com) +// + +// +// Copyright (C) 2005 Novell, Inc (http://www.novell.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. +// + +using System.Web.SessionState; +using System.Web; +using System; + +namespace Mainsoft.Web.Util { + + internal class UrlUtils { + + // appRoot + SessionID + vpath + internal static string InsertSessionId (string id, string path) + { + string dir = GetDirectory (path); + if (!dir.EndsWith ("/")) + dir += "/"; + + string appvpath = HttpRuntime.AppDomainAppVirtualPath; + if (!appvpath.EndsWith ("/")) + appvpath += "/"; + + if (path.StartsWith (appvpath)) + path = path.Substring (appvpath.Length); + + if (path [0] == '/') + path = path.Length > 1 ? path.Substring (1) : ""; + + return Canonic (appvpath + "(" + id + ")/" + path); + } +#if false + internal static string GetSessionId (string path) + { + string appvpath = HttpRuntime.AppDomainAppVirtualPath; + if (path.Length <= appvpath.Length) + return null; + + path = path.Substring (appvpath.Length); + if (path.Length == 0 || path [0] != '/') + path = '/' + path; + + int len = path.Length; + if ((len < SessionId.IdLength + 3) || (path [1] != '(') || + (path [SessionId.IdLength + 2] != ')')) + return null; + + return path.Substring (2, SessionId.IdLength); + } +#endif + internal static string RemoveSessionId (string base_path, string file_path) + { + // Caller did a GetSessionId first + int idx = base_path.IndexOf ("/("); + string dir = base_path.Substring (0, idx + 1); + if (!dir.EndsWith ("/")) + dir += "/"; + + idx = base_path.IndexOf (")/"); + if (idx != -1 && base_path.Length > idx + 2) { + string dir2 = base_path.Substring (idx + 2); + if (!dir2.EndsWith ("/")) + dir2 += "/"; + + dir += dir2; + } + + return Canonic (dir + GetFile (file_path)); + } + + public static string Combine (string basePath, string relPath) + { + if (relPath == null) + throw new ArgumentNullException ("relPath"); + + int rlength = relPath.Length; + if (rlength == 0) + return ""; + + relPath = relPath.Replace ("\\", "/"); + if (IsRooted (relPath)) + return Canonic (relPath); + + char first = relPath [0]; + if (rlength < 3 || first == '~' || first == '/' || first == '\\') { + if (basePath == null || (basePath.Length == 1 && basePath [0] == '/')) + basePath = String.Empty; + + string slash = (first == '/') ? "" : "/"; + if (first == '~') { + if (rlength == 1) { + relPath = ""; + } else if (rlength > 1 && relPath [1] == '/') { + relPath = relPath.Substring (2); + slash = "/"; + } + + string appvpath = HttpRuntime.AppDomainAppVirtualPath; + if (appvpath.EndsWith ("/")) + slash = ""; + + return Canonic (appvpath + slash + relPath); + } + + return Canonic (basePath + slash + relPath); + } + + if (basePath == null || basePath == "" || basePath [0] == '~') + basePath = HttpRuntime.AppDomainAppVirtualPath; + + if (basePath.Length <= 1) + basePath = String.Empty; + + return Canonic (basePath + "/" + relPath); + } + + static char [] path_sep = {'\\', '/'}; + + internal static string Canonic (string path) + { + string [] parts = path.Split (path_sep); + int end = parts.Length; + + int dest = 0; + + for (int i = 0; i < end; i++) { + string current = parts [i]; + if (current == "." ) + continue; + + if (current == "..") { + if (dest == 0) { + if (i == 1) // see bug 52599 + continue; + + throw new HttpException ("Invalid path."); + } + + dest --; + continue; + } + + parts [dest++] = current; + } + + if (dest == 0) + return "/"; + + return String.Join ("/", parts, 0, dest); + } + + internal static string GetDirectory (string url) + { + url = url.Replace('\\','/'); + int last = url.LastIndexOf ('/'); + + if (last > 0) { +#if NET_2_0 + return RemoveDoubleSlashes (url.Substring (0, last)); +#else + return url.Substring (0, last); +#endif + } + + return "/"; + } + +#if NET_2_0 + internal static string RemoveDoubleSlashes (string input) + { + // MS VirtualPathUtility removes duplicate '/' + string str = input; + string x; + while ((x = str.Replace ("//", "/")) != str) { + str = x; + } + + return str; + } +#endif + + internal static string GetFile (string url) + { + url = url.Replace('\\','/'); + int last = url.LastIndexOf ('/'); + if (last >= 0) { + if (url.Length == 1) // Empty file name instead of ArgumentOutOfRange + return ""; + return url.Substring (last+1); + } + + throw new Exception (String.Format ("GetFile: `{0}' does not contain a /", url)); + } + + internal static bool IsRooted (string path) + { + if (path == null || path == "") + return true; + + char c = path [0]; + if (c == '/' || c == '\\') + return true; + + return false; + } + + internal static bool IsRelativeUrl (string path) + { + return (path [0] != '/' && path.IndexOf (':') == -1); + } + + public static string ResolveVirtualPathFromAppAbsolute (string path) + { + if (path [0] != '~') return path; + + if (path.Length == 1) + return HttpRuntime.AppDomainAppVirtualPath; + + if (path [1] == '/' || path [1] == '\\') { + string appPath = HttpRuntime.AppDomainAppVirtualPath; + if (appPath.Length > 1) + return appPath + "/" + path.Substring (2); + return "/" + path.Substring (2); + } + return path; + } + + public static string ResolvePhysicalPathFromAppAbsolute (string path) + { + if (path [0] != '~') return path; + + if (path.Length == 1) + return HttpRuntime.AppDomainAppPath; + + if (path [1] == '/' || path [1] == '\\') { + string appPath = HttpRuntime.AppDomainAppPath; + if (appPath.Length > 1) + return appPath + "/" + path.Substring (2); + return "/" + path.Substring (2); + } + return path; + } + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Util.Master b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Util.Master new file mode 100644 index 00000000000..91abeb1530b --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Util.Master @@ -0,0 +1,83 @@ +<%-- +// Mainsoft.Web.Administration - Site administration utility +// Authors: +// Klain Yoni +// +// 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" %> +<%@ Register TagPrefix="Custom" Namespace="Mainsoft.Web.Administration" Assembly="Mainsoft.Web.Administration" %> + + + + + + " rel="stylesheet" type="text/css" /> + Configuration Utility + + +
+
+ + + + + + + + + + +
+    +
+ Web Site Administration Tool +
+ + + + + + + + + + +
+ Current page :   + + + + + + +
+ + +
+ + <%--style="padding-right: 1px; padding-left: 1px; font-weight: bold; padding-bottom: 1px; margin: 1px; color: yellow; padding-top: 1px; background-color: #6699ff"--%> +
+
+
+
+ + diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Util.Master.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Util.Master.cs new file mode 100644 index 00000000000..cda1f014e12 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Util.Master.cs @@ -0,0 +1,49 @@ +using System; +using System.Resources; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.HtmlControls; + +namespace Mainsoft.Web.AspnetConfig +{ + 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 ("~/aspnetconfig/SecurError.aspx"); + } + + + base.OnInit (e); + } + + protected void Page_Load (object sender, EventArgs e) + { + } + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Util.Master.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Util.Master.cs.bak new file mode 100644 index 00000000000..db3b4597538 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Util.Master.cs.bak @@ -0,0 +1,49 @@ +using System; +using System.Resources; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +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 ("~/aspnetconfig/SecurError.aspx"); + } + + + base.OnInit (e); + } + + protected void Page_Load (object sender, EventArgs e) + { + } + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Util.Master.designer.cs b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Util.Master.designer.cs new file mode 100644 index 00000000000..cccf56a3430 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Util.Master.designer.cs @@ -0,0 +1,20 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Mainsoft.Web.AspnetConfig { + + public partial class Util { + protected System.Web.UI.HtmlControls.HtmlHead Head1; + protected System.Web.UI.HtmlControls.HtmlForm form1; + protected System.Web.UI.WebControls.SiteMapPath SiteMapPath1; + protected System.Web.UI.WebControls.ContentPlaceHolder Main; + protected System.Web.UI.WebControls.Button Back; + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Util.Master.designer.cs.bak b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Util.Master.designer.cs.bak new file mode 100644 index 00000000000..1d5e7fc8acd --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Util.Master.designer.cs.bak @@ -0,0 +1,20 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.42 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Mainsoft.Web.Administration { + + public partial class Util { + protected System.Web.UI.HtmlControls.HtmlHead Head1; + protected System.Web.UI.HtmlControls.HtmlForm form1; + protected System.Web.UI.WebControls.SiteMapPath SiteMapPath1; + protected System.Web.UI.WebControls.ContentPlaceHolder Main; + protected System.Web.UI.WebControls.Button Back; + } +} diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Web.sitemap b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Web.sitemap new file mode 100644 index 00000000000..fd09637e261 --- /dev/null +++ b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/aspnetconfig/Web.sitemap @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/resources/mainsoft.jpg b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/resources/mainsoft.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3bf06981cf79d288396e11991fc32430dc2d18f1 GIT binary patch literal 4433 zcmdtlcTm&Kx(D!IXraDHH6VmuLy;;~MWh6zMF=Gnk=~_AZz71H3NN6vNQr>7ml`@E zQWX^m34|t1igctS9N&9Sn>+W;oO}K}&(3%DkKNgs&+N>zvlrtRUx7<{+Hh?E1Ofr~ zehuJa4q(>`c5?;*I9wc{2L4tTlYk~bO+^K!qNE0c!8A0~wDhbD^mKIe9Ly|?tlXSD zP;O2xE?z+?5ng@?0WL1lYhn^tW#r}Mc|?@em1NbVZ-C!;~dVqy>G_hprhc~(d*aI3bP4KcDUD0koQ5e+T- zWe5kSkg$lTn7F)x;x#2@70ugP+B&*$y}PDnNOKEID+fm>XBSsDcmIIEhe5$1p|OwS z;-4fuMW<){o|%>X{6$VtaS8TSX<7N}y84F3CR}q%>)W1py?y-ygF|0N@nZzy_ylQg zeqnLx+w#il+RpCYkNtzgqvMl5T_Aw`zgd5m{SOz@FBcgF1vv%yPZx+R=vT;@C@A@4 zsF*cO!1lf@{IW6Bthb&O)^^hf$RW1b?)#0Qz zlY@R;9yt?m12{YpEsCc7-=d*qQlHi_yq0J03`EV+{PagGIcNJ~17`34WHmA6Q$<9Y zHogd{93M{?%GXbwvwME7iFHC$id77kv=2QNy5?F@uV2uER$?2z0N&a=Um>GuI{6xv z?1M7m#*4`tv~W3ceoT={emJHqJQ65sT9T3HX;FlRl?;d$p@DxTK2^@ECAse}fRpc- zQJyaiad#UZYpM5eg%7tKUjWGt3R}X~oJ$@jQ!S)2ch0J&T&Q!@^PhNIi*q)lm)`t= zHtx&sila}O?RP~+@%Sby3HF+0U4!0Hzb}J>pKw@v@iFo1R&?JEj)UY)7r5OcrXwSg zvc3E*5dtPIo>A?(4nL#PUT52~q|Zz&>o@qJEy`0l`fdGx!Ww{uJS5}OMv&XRdkD3` zPGj}UE$5j%NpFmk#mwGa6VBQ=hjS~18(5kqi3w(``h1vcBbKZx_Kn`bJ&ot$ol>V+ zB#O-COUz6szA!&z;z~WhjBbBFHV=xio}glSD_bMgDyb2dgrCciUUQb?o+Q%aD7FK&sW6N9<9@1t7S2dfuva0TiN%jBMhy zi4zSrg890oQ-eoQI~r%2p(NWn-uRtkTsmK);J!6;q>qu^GHzjutNZJQoTI8BewnBF zab6tv^pn!P8!2kC?|ZHt+Fr_jmqowsxk*w+UguPxO%kN=@Ai&RIT@?)60qD!ZmOAA zzZC+#q6^i@C;oJJeO6Xn%H_fhCUm%cT?w-dBf$c{1-)m~$K;$m+*3E2!zDL%K@7_J z!w!^&>$C?D?8`#+m|Rj@e4>RwVxrMoMV=2iyV5b($D}=N*?C9;^f>(Pey$N`5B7Rh zb?{qBsfbq=l?Vq8&wx8pRAKkL4;6aQ-M0d#?k-scMzjg2q}h)3DWU?@eFa;aG$q$Z zj@@P7JpivFZTLGH#3O?j?R=k|egANs%_AojZQq${(d^N+egQ}pN~Z*Eo{q0+&(Q2E z*vT2Xurv>Ia`K$6S6`-?`up8zIBKs+CG-Pbiy06LODEnmZJf zy7h2PdL>e1hw$X%w|0?zr>w(Xku#t!7EC5|9JzF=7;6c;1$Msdj@>5*agBSYA5?~;OV zc>3?z0`+wr(+32CidfC-?uL%TBWSXR7ejulCiNs|5(uek{^Tg+%w-1}_I`hdzSXI! zEl$Im!#v3NC7CR+23HRoo25MZWCImw-HyZs2sH~^@V2To_=&0;Qhj}(D^ifT_ETdt zG0CbOSstLnx}uMqCQY?0*d?6wW~0GR!d2bVZTQTB9Hl<4gJ_FOfnB4nJIKw%`Fu@- z&vQ`_oke%^YeghTu`%bJ4IuirtFnInlZ5toZkSaRTExHx#o15dh@6c*e8g;cJFULWRMp@RsHb6tSzJD1c0!q}@|sq(EFo?+US9cHDe0D7c>ATZ9&e|D*f9lA}cQ zM=Prtlb2Pyh5ODOVg^wCvR}C|F4;;Vz=Dq+sjjmL&+Ar&W!A1!b9&;86z|#QMSC-& zDj53o1FVbCW!YJ~b_TBLv1-(*{QjB9>4tMv)NTns5&NKvy*TJ7B)qKhgJWVG$Bl6F zKra*CAZn@xbYBIVE(iry*6r}NFV)84sEKc zTSE?1O6@Y+s%+0~bz;tV2tr>16Q||fh;oCWI|3?Vbb!HW;!gj}Px0CA$&kB!Dm`$P zmx}8kCxIL7R)<`mf&LEv(9)+x4U7ygnct5FZPy$TfI)ZCxh%REZ=8=f9SrbNOJ-^tzH?E==rS&Ai-$p?9~!#kXsD@at1%uG401 zi1Jw(!;#RQXx$p0`gUAb6Drq*`S!c$H=)doYYcE-c_d*=?PF~(XZAyf=$C%*8be5p z3*6+fmq#FJI$JZv;)N24bW*@J$H@9=d&K8QeiXbzL$K4)S%K>hh*~=6Zp?si)e*VI zSmP`Ye15V`Oj6=(!o}_?Q%BwkltCk+3+Bgwuk#=|cWOJ=LYSuklra>6@rcTG>p!WVDLra)D6EDaiHP?}h|M5}hyX|aD-p+n8a4;;C?CzT_HT0%d60SE1<1%^_9(;bax!K~!iz=_V zq-%Lw&2lV5DZqSN_#QkO%wBjcyPFJpvz1C1m^&Adz9?i-UtGls;$?7!ba1w`aB<+hN`1p7#U@jTl@8wx11!ozD zpamqlXE&R!wk(6WeS1SMk^k{BX4QyP?d@%&3Rd~nkt*Fn^uDa;1m&l}lb*+vyV_peq#}RiuR_(dZ4z>qh>ySep#!nou`N?XmO%d!8!Zj;UD+dR$ zck?c{bT*jlBnzeWN{zp-r@tr4yFihyvS-`Uj}5s1QW`|M@KswT*qgjp>-k|xj(L~f z#8@9yTDyJm^PLDi`=RonS^=gl$^NY)L;om*oMgS8$;?&|03z{zC^839^d9v;Bh_sM zeh;?OZx{`S2Zqtt-x1CcLumJBrxm{4__{Zhgz+>R{Sg-9#el`Oe|+{*OAs21|4|*^ z^HxroAwndpYf3ZYr~vb^U611xe~EfNEy_luZc@iNW$3x5y0Wq<1~pm!cCA2&Ak8^H zd5T!_;SWR;-cbrK0#_|4Dc}3SA>`^*;v0ExKILl%M9v21MbwAwJJnE_EY_Swc&Z!` z?2u`nVO!zm;N!$Tz;DXEt$gF|OchgaXn<=kDR3Su-R;#>V6N=$fUy3(cqm1#r*&+9 z<{90DmEueGAhcUahqjr3k4&?*ZeAXgkpig|-{MDlgNpD*(9XU6*UjGKAit@!i$ZK@co{i#bPSD)V47{ zrNzSl_l-G$whWV2oR_+$jt`R!x^ILlHVqC+(N-l!^>UepnRz{3wnkv_4lpV6KBi$I(>aXXI#u7X`K`3VE)`T=>eJ#~(iD$$H0ZlJ8PsfhYFh6= zY7J-9v&uG6%x_}JdH8v6u+hVHz7{>(>oVA}Z>n<-GA=2|w-NK5e(w z$ii~>pir;!G4J8Z^y!iylh?&lw_+4!j(zdZnn8Ka9qj3tM&x+-+9VX^QRP8XIPNa% zo-L;z;uc&7drVu!ETd!0dhaanWV76>{pS6~>>=W2O{I2$a7%%}l|c`g0FdT_s|3f9 zXXa!9?DN)oan~O$^=X;#dDrJP#*jqBK*37gGMcrUkkBIPDX^mH!7@o4BYC7#|O6mDF; ye+FNASKfkgkI7aRnK~Uoj95V8SWRwH{&OJU#$UgKXw`pecYkYp|0y%*V&X40f9}-) literal 0 HcmV?d00001 diff --git a/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/resources/untitled.bmp b/mcs/class/Mainsoft.Web/Mainsoft.Web.AspnetConfig/resources/untitled.bmp new file mode 100644 index 0000000000000000000000000000000000000000..e92ef9f7fdcd350b893a4129e5c4cc9928824b13 GIT binary patch literal 2102 zcmeHG`%hbS6#rBiV~k=i&*CW14NEUf9Mticw{D|%3@Q{ZAcHc|ZiquB?Y%89EpTJ@ zgPP4Pn=}5f%>7_+_=>u@#O&dW(fA@n6VYUgTe3~2iO{fz%tunsy|?AD@E_<&PQK@y z&-e2==X-8jQCkuR)k@jB{eEbs>*LT3A^q;(rQ*B-N?9eOdB+jbKSAYxC zh#mPF{-gvHaP`>k`4!jHsYTr|LWKd!Qc~%Suj?XAOQm!j{_b*nXg1&SDhhUX@l*`^-lec5`y zTNB{Rs;m11R=sO=3+6bJ`hLIPJm?VwmSrWy=w#VMtH5r1h;~Q&$@cr*gKCv!pX9Z` zN`$zj8ZM{!+Xp>by@ORR^!5t;HtMeOY}(@?`R)XI&gO{ zFB5s5SLsT3jjsrJEL7)qJ#AEQpQn^phL7STP-^jbB&pA~hH#6ImDJ&9@zqKLo=Yow zHb;~spM_;BHM;UX#WFMF0}|K9R6XtxMJq2oT&UHf_-blk;T~l=^6%$-y}VTU;6hw} zDw7XzTZ{5*)^I*a94Nf!4!kR~G!Q^_e$6_&U6RswMBu2tEH^ev0f1qi^NHf7%~ARs z-bEAcqCKrg?oLw`p_MBKVfZ_<)zQ+eNWujy{i10?7fdRpeHd z&(Y`OTN;b)wZ3GoW#g=R