<%@page contentType="text/html" pageEncoding="UTF-8"%> <%@page import="java.util.Set" %> <%@page import="java.util.HashSet" %> <% response.setHeader("X-FRAME-OPTIONS", "SAMEORIGIN"); %> <% try { // Extract information from setup files and CGI environment // to pass into the JavaScript environment. //-- get time of last compilation to get release date long lastmodified = heasarc.exec.Controller.class.getResource("/heasarc/exec/Controller.class").openConnection().getLastModified(); java.util.Date compileTime=new java.util.Date(lastmodified); System.err.println("----------------------------------------------"); System.err.println("- Xamin Compile Time: " + compileTime ); String[] validKeys = { "exttheme", "nocookies", "initialstate", "initial", "bibcode", "execute", "session_username", "session_sessionid", "hidequerywindow", "keys", "constraints", "fields", "tables", "bibtables", "bibbase"}; Set valid = new HashSet(); java.util.Collections.addAll(valid, validKeys); java.util.Enumeration params = request.getParameterNames(); String jsString = "{\n"; String lineSep = ""; while (params.hasMoreElements()) { String param = params.nextElement(); String lparam = param.toLowerCase(); if (!valid.contains(lparam)) { continue; } String[] vals = request.getParameterValues(param); // Special handling since the // phrase initialState seemed to kick off // some weird behavior but is what is // expected internally. if (param.equals("initial")) { param = "initialState"; } if (vals.length > 0) { String sep = ""; String val = "'"; for (String cval : vals) { cval = cval.replace("'", "\\'"); cval = cval.replaceAll("(\\r\\n?|\\n\\r?)", "\\\\n"); // Get rid of anything that looks like Xamin Web Interface