Exemplo n.º 1
0
        public virtual XVar getFullUrl()
        {
            dynamic https = null;

            https = XVar.Clone((XVar)(MVCFunctions.strlen((XVar)(MVCFunctions.GetServerVariable("HTTPS"))) != 0) && (XVar)(!XVar.Equals(XVar.Pack(MVCFunctions.GetServerVariable("HTTPS")), XVar.Pack("off"))));
            return(MVCFunctions.Concat((XVar.Pack(https) ? XVar.Pack("https://") : XVar.Pack("http://")), (XVar.Pack(MVCFunctions.strlen((XVar)(MVCFunctions.GetRemoteUser())) != 0) ? XVar.Pack(MVCFunctions.Concat(MVCFunctions.GetRemoteUser(), "@")) : XVar.Pack("")), (XVar.Pack(MVCFunctions.SERVERKeyExists("HTTP_HOST")) ? XVar.Pack(MVCFunctions.GetServerVariable("HTTP_HOST")) : XVar.Pack(MVCFunctions.Concat(MVCFunctions.GetServerName(), (XVar.Pack((XVar)((XVar)(https) && (XVar)(XVar.Equals(XVar.Pack(MVCFunctions.GetServerPort()), XVar.Pack(443)))) || (XVar)(XVar.Equals(XVar.Pack(MVCFunctions.GetServerPort()), XVar.Pack(80)))) ? XVar.Pack("") : XVar.Pack(MVCFunctions.Concat(":", MVCFunctions.GetServerPort())))))), MVCFunctions.substr((XVar)(MVCFunctions.GetScriptName()), new XVar(0), (XVar)(MVCFunctions.strrpos((XVar)(MVCFunctions.GetScriptName()), new XVar("/"))))));
        }