");
+ out.println("Страница не найдена
");
+ out.println("Сожалеем, но страницу с этим адресом удалил её автор, либо её никогда не существовало.
");
+ out.println("");
+
+ PageTemplates.pageFooter(request, out, visitor, false);
+ PageTemplates.pageEnd(out);
+ } finally {
+ out.close();
+ }
+ }
+}
diff --git a/src/java/com/juick/http/www/Help.java b/src/java/com/juick/http/www/Help.java
index e69b93a7..eed62efa 100644
--- a/src/java/com/juick/http/www/Help.java
+++ b/src/java/com/juick/http/www/Help.java
@@ -43,14 +43,14 @@ public class Help {
String path[] = request.getRequestURI().split("/");
String page;
if (path.length < 3 || path.length > 4 || path[2].length() != 2 || !path[2].matches("^[a-z]+$")) {
- response.sendError(404);
+ Errors.doGet404(sql, request, response);
return;
}
if (path.length == 4) {
page = path[3];
if (!page.matches("^[a-zA-Z0-9\\-]*$") || page.equals("navigation") || page.equals("index")) {
- response.sendError(404);
+ Errors.doGet404(sql, request, response);
return;
}
} else {
@@ -59,14 +59,14 @@ public class Help {
File f = new File("/var/www/juick.com/help/" + path[2] + "/" + page);
if (!f.isFile()) {
- response.sendError(404);
+ Errors.doGet404(sql, request, response);
return;
}
response.setContentType("text/html; charset=UTF-8");
PrintWriter out = response.getWriter();
try {
- PageTemplates.pageHead(out, "Помощь", "");
+ PageTemplates.pageHead(out, "Помощь", null);
PageTemplates.pageNavigation(out, visitor, null);
out.println("