public static Dictionary <string, string> PushConf()
        {
            Dictionary <string, string> val = new Dictionary <string, string>();

            val["primaindb"]   = WebConfigure.GetMainConnectionString();
            val["secdbempmst"] = WebConfigure.GetSecondaryEmpMasterConnectionString();
            val["kymobauto"]   = WebConfigure.GetMobileAuthorization();
            val["kylgadm"]     = WebConfigure.GetLoginManualXupj();
            val["kydmn"]       = WebConfigure.GetDomain();
            val["kydmnch"]     = WebConfigure.GetLoginDomainForCookie();
            val["kyurlml"]     = WebConfigure.GetUrlSendEmail();
            val["kyhst"]       = WebConfigure.GetLoginHost();
            return(val);
        }
        public static string GetUserXupj()
        {
            string xupj = "";

            if (WebConfigure.GetLoginPortal() == "false")
            {
                xupj = WebConfigure.GetLoginManualXupj();
            }
            else
            {
                try
                {
                    var        referer    = HttpContext.Current.Request.UrlReferrer;
                    HttpCookie userCookie = (HttpContext.Current.Request.Cookies.Get("sp") != null) ? HttpContext.Current.Request.Cookies.Get("sp") : null;
                    HttpCookie fedAuth    = HttpContext.Current.Request.Cookies.Get("FedAuth");
                    if (fedAuth != null)
                    {
                        fedAuth.Value = fedAuth.Value.Replace("%2B", "+");
                    }
                    var isValid = SharepointHelper.IsValid(userCookie, fedAuth, referer);
                    if (isValid)
                    {
                        string hostLogin = WebConfigure.GetLoginHost();
                        string protokol  = HttpContext.Current.Request.IsSecureConnection ? "https://" : "http://";
                        var    host      = protokol + hostLogin;
                        var    userId    = SharepointHelper.GetUserId(host, @"application/atom+xml", fedAuth);
                        xupj = userId;
                    }
                }
                catch (Exception er)
                {
                    LogErrorBService.WriteLog("Common", MethodBase.GetCurrentMethod().Name, er.ToString());
                    HttpContext.Current.Response.Cookies.Remove("sp");
                    HttpContext.Current.Response.Cookies.Remove("FedAuth");
                    throw;
                }
            }
            return(xupj);
        }