Skip to content

Commit 2e71ed1

Browse files
committed
added standard website cruft
1 parent dfd5fcf commit 2e71ed1

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

www/favicon.ico

9.11 KB
Binary file not shown.

www/robots.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#
2+
# just a backend for the main RegexPlanet.com site: go there to index stuff!
3+
#
4+
User-agent: *
5+
Disallow: /

www/status.jsp

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<%@ page contentType="text/plain;charset=utf-8"
2+
import="java.io.*,
3+
java.util.*,
4+
java.util.regex.*,
5+
org.json.simple.*,
6+
com.google.common.base.*,
7+
org.apache.commons.lang3.*,
8+
org.apache.commons.lang3.math.*"
9+
%><%
10+
11+
Locale loc = request.getLocale();
12+
13+
JSONObject retVal = new JSONObject();
14+
15+
retVal.put("success", Boolean.TRUE);
16+
retVal.put("message", "OK");
17+
18+
String json = retVal.toString();
19+
String callback = request.getParameter("callback");
20+
if (callback != null && callback.matches("[a-zA-Z][-a-zA-Z0-9_]*"))
21+
{
22+
out.print(callback);
23+
out.print("(");
24+
out.print(json);
25+
out.print(");");
26+
}
27+
else
28+
{
29+
out.print(json);
30+
}
31+
%>
32+

0 commit comments

Comments
 (0)