Example #1
0
    private void DoProcess()
    {
        m_UserRef = m_CommAPI.EkUserRef;

        if (PageAction == "editcustomprop")
        {
            DoEditCustomProperty();
        }
        else if (PageAction == "deletecustomprop")
        {
            DoDeleteCustomProperty();
        }
        else
        {
            DoAddCustomProperty();
        }
        if (PageAction != "deletecustomprop")
        {
            Response.Redirect(m_CommAPI.AppPath + "users.aspx?action=ViewCustomProp", false);
        }
    }
Example #2
0
 private void initPage()
 {
     if (!(Request.QueryString["id"] == null))
     {
         m_iId = Convert.ToInt64(Request.QueryString["id"]);
     }
     if (!(Request.QueryString["action"] == null))
     {
         PageAction = (string)(Request.QueryString["action"].ToString().ToLower());
     }
     m_refMsg = m_CommAPI.EkMsgRef;
     AppImgPath = m_CommAPI.AppImgPath;
     EnableMultiLanguage = m_CommAPI.EnableMultilingual;
     if (Request.QueryString["LangType"] != null)
     {
         ContentLanguage = Convert.ToInt32(Request.QueryString["LangType"]);
         m_CommAPI.SetCookieValue("LastValidLanguageID", ContentLanguage.ToString());
     }
     else
     {
         if (m_CommAPI.GetCookieValue("LastValidLanguageID") != "")
         {
             ContentLanguage = int.Parse(m_CommAPI.GetCookieValue("LastValidLanguageID"));
         }
     }
     m_CommAPI.ContentLanguage = ContentLanguage;
     m_UserRef = m_CommAPI.EkUserRef;
     m_ucpdata = m_UserRef.GetCustomProperty(m_iId);
     allUCPData = m_UserRef.GetAllCustomProperty("");
 }
Example #3
0
 public object Login(string user, string pass, string domain)
 {
     xmlstring = "";
     protocol = AppUI.AuthProtocol;
     userObj = AppUI.EkUserRef;
     domain = Ektron.Cms.Common.EkConstants.CreateADsPathFromDomain(domain);
     Hashtable cUserHash = userObj.logInUser(username, password, (string)Request.ServerVariables["SERVER_NAME"], domain, protocol, false, EkEnumeration.AutoAddUserTypes.Author);
     userObj = null;
     if ((cUserHash.Count > 0) && ((string)ErrString == ""))
     {
         xmlstring = "<count>1</count>" + "<userid>" + cUserHash["UserID"] + "</userid><siteid>" + sitePath + "," + cUserHash["LoginNumber"] + "</siteid><sitepath>" + sitePath + "</sitepath>";
         Response.Write(xmlstring);
     }
     else
     {
         xmlstring = "<count>0</count><sitepath>" + sitePath + "</sitepath>";
         Response.Write(xmlstring);
     }
     return null;
 }