diff options
author | Ugnich Anton | 2014-01-26 03:24:23 +0700 |
---|---|---|
committer | Ugnich Anton | 2014-01-26 03:24:23 +0700 |
commit | e218e34535b0bfdb6a7ac3a4d010ec03fcd946a1 (patch) | |
tree | fd9109cf3154ac0f3fd14a2b51d0f553021a96f9 /src/java/com/juick/http/www/Main.java | |
parent | f4a45264cb8f0cfeacdb89ce9bf4c60474923f80 (diff) |
PM
Diffstat (limited to 'src/java/com/juick/http/www/Main.java')
-rw-r--r-- | src/java/com/juick/http/www/Main.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/java/com/juick/http/www/Main.java b/src/java/com/juick/http/www/Main.java index c7295ce6..26655897 100644 --- a/src/java/com/juick/http/www/Main.java +++ b/src/java/com/juick/http/www/Main.java @@ -43,6 +43,7 @@ public class Main extends HttpServlet { Stream xmpp; Home home = new Home(); Discover discover = new Discover(); + PM pm = new PM(); Login login = new Login(); Help help = new Help(); User pagesUser = new User(); @@ -130,6 +131,13 @@ public class Main extends HttpServlet { } else { login.doGetLogin(sql, request, response); } + } else if (uri.equals("/pm")) { + com.juick.User visitor = Utils.getVisitorUser(sql, request, response); + if (visitor == null) { + login.doGetLoginForm(sql, request, response); + } else { + pm.doGet(sql, request, response, visitor); + } } else if (uri.equals("/logout")) { login.doGetLogout(sql, request, response); } else if (uri.equals("/settings")) { |