diff options
author | Ugnich Anton | 2012-12-24 13:18:30 +0700 |
---|---|---|
committer | Ugnich Anton | 2012-12-24 13:18:30 +0700 |
commit | 14ad66efa9f692023ae6982e3fa1d67c3c0aad11 (patch) | |
tree | b096f6af499628e8f0a77a0ef4f60695efcc4fc1 /src/java/com/juick/http/www/Main.java | |
parent | 52f88dbb3c2e81e1b658b95ff91236db1a1fe03a (diff) |
Help
Diffstat (limited to 'src/java/com/juick/http/www/Main.java')
-rw-r--r-- | src/java/com/juick/http/www/Main.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/java/com/juick/http/www/Main.java b/src/java/com/juick/http/www/Main.java index 055327dd..20885906 100644 --- a/src/java/com/juick/http/www/Main.java +++ b/src/java/com/juick/http/www/Main.java @@ -45,6 +45,7 @@ public class Main extends HttpServlet implements XmppListener { Tags tags = new Tags(); RootRedirects rootRedirects = new RootRedirects(); Login login = new Login(); + Help help = new Help(); User pagesUser = new User(); UserThread pagesUserThread = new UserThread(); NewMessage pagesNewMessage = new NewMessage(); @@ -142,6 +143,10 @@ public class Main extends HttpServlet implements XmppListener { login.doGetLogout(sql, request, response); } else if (uri.equals("/settings")) { //TODO settings + } else if (uri.equals("/help") || uri.equals("/help/")) { + help.doRedirectToHelpIndex(sql, request, response); + } else if (uri.startsWith("/help/")) { + help.doGetHelp(sql, request, response); } else if (uri.matches("^/\\d+$")) { rootRedirects.doGetPostID(sql, request, response); } else if (uri.matches("^/[^/]+$")) { |