%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 122.154.253.140  /  Your IP : 216.73.216.49 Web Server : Microsoft-IIS/7.5 System : Windows NT SERVER02 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.6.31 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Windows/Microsoft.NET/Framework/v4.0.30319/ASP.NETWebAdminFiles/App_Code/  | 
Upload File :  | 
//------------------------------------------------------------------------------
// <copyright file="SecurityPage.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
namespace System.Web.Administration {
    using System;
    using System.Collections;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Security;
    public class SecurityPage : WebAdminPage {
        private const string CURRENT_PATH = "WebAdminCurrentPath";
        
        protected string CurrentPath {
            get {
                object tempString = (object)Session[CURRENT_PATH];
                if (tempString != null) {
                    return (string)Session[CURRENT_PATH];
                }
                return string.Empty;
            }
            set {
                Session[CURRENT_PATH] = value;
            }
        }
        protected void AddTitleAttribute(Control container, string checkBoxName) {
            CheckBox cb = (CheckBox)container.FindControl(checkBoxName);
            if (cb != null) {
                cb.InputAttributes.Add("title", (string)GetGlobalResourceObject("GlobalResources", "AutoPostBackCheckBoxWarning"));
            }
        }
        protected void AddTitleAttributeOnRowDataBound(GridViewRowEventArgs e, string checkBoxName) {
            if (e.Row.RowType == DataControlRowType.DataRow) {
                AddTitleAttribute(e.Row, checkBoxName);
            }
        }
        
        protected override void OnInit(EventArgs e) {
            NavigationBar.SetSelectedIndex(1);
            base.OnInit(e);
        }
    
        protected void SearchForUsers(object sender, EventArgs e, Repeater repeater, GridView dataGrid, DropDownList dropDown, TextBox textBox) {
            ICollection coll = null;
            string text = textBox.Text;
            text = text.Replace("*", "%");
            text = text.Replace("?", "_");
            int total = 0;
            if (text.Trim().Length != 0) {
                if (dropDown.SelectedIndex == 0 /* userID */) {
                    coll = (MembershipUserCollection)CallWebAdminHelperMethod(true, "FindUsersByName", new object[] {(string)text, 0, Int32.MaxValue, total}, new Type[] {typeof(string), typeof(int), typeof(int), Type.GetType("System.Int32&")});
                } else {
                    coll = (MembershipUserCollection)CallWebAdminHelperMethod(true, "FindUsersByEmail", new object[]{(string)text, 0, Int32.MaxValue, total}, new Type[] {typeof(string), typeof(int), typeof(int), Type.GetType("System.Int32&")});
                }
            }
            dataGrid.PageIndex = 0;
            dataGrid.DataSource = coll;
            PopulateRepeaterDataSource(repeater);
            repeater.DataBind();
            dataGrid.DataBind();
        }
    }
}