diff options
author | Ugnich Anton | 2014-04-26 17:48:12 +0700 |
---|---|---|
committer | Ugnich Anton | 2014-04-26 17:48:12 +0700 |
commit | 343ef5b9cde33394cfc076b46bcf2d680d6d2e5c (patch) | |
tree | a6cccd8a88979fed9cc2018f18276bd356641e30 /src/java/com/juick/http/www/Main.java | |
parent | 40bd37fcdea9287489b31e8e994024d4c22ead4d (diff) |
Dev initial commit
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 ec7c4e1e..a81c1ba1 100644 --- a/src/java/com/juick/http/www/Main.java +++ b/src/java/com/juick/http/www/Main.java @@ -49,6 +49,7 @@ public class Main extends HttpServlet implements Stream.StreamListener { Stream xmpp; Home home = new Home(); Discover discover = new Discover(); + Dev dev = new Dev(); PM pm = new PM(); Login login = new Login(); Help help = new Help(); @@ -192,6 +193,13 @@ public class Main extends HttpServlet implements Stream.StreamListener { help.doGetHelp(sql, request, response); } else if (uri.startsWith("/tag/")) { discover.doGet(sql, sqlSearch, request, response); + } else if (uri.equals("/dev")) { + com.juick.User visitor = Utils.getVisitorUser(sql, request, response); + if (visitor != null && visitor.UID == 1) { + dev.doGet(sql, request, response); + } else { + Errors.doGet404(sql, request, response); + } } else if (uri.matches("^/\\d+$")) { String strID = request.getRequestURI().substring(1); int mid = 0; |