Beispiel #1
0
        public bool HandleRequest(Client client, HttpListenerContext context, params string[] args)
        {
            Home_Template template = new Home_Template();

            context.Send(template.Render());

            return(true);
        }
Beispiel #2
0
        public bool HandleRequest(Client client, HttpListenerContext context, params string[] args)
        {
            HttpServer.websites.exalted.model.User user = UserManager.GetUser(UserManager.GetUserID(client));

            Home_Template template = new Home_Template(user);
            context.Send(template.Render());

            return true;
        }
Beispiel #3
0
        public bool HandleRequest(Client client, HttpListenerContext context, params string[] args)
        {
            if (!UserManager.Connected(client))
            {
                context.Redirect("../login");
                return(true);
            }

            User user = UserManager.GetUser(UserManager.GetUserID(client));

            if (user == null)
            {
                context.Redirect("../login");
                return(true);
            }

            Home_Template template = new Home_Template(user);

            context.Send(template.Render());

            return(true);
        }