public void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws IOException {
		resp.setContentType("text/html");
		resp.setCharacterEncoding("utf-8");
		String mode = req.getParameter("mode");
		String sv = ApiProxy.getCurrentEnvironment().getAppId();
		if (sv.equals("seiyufan"))
			sv = "seiyukyouen";
		else
			sv = "seiyufan";
		String[][][] sp_log_box = getLog(mode, sv);

		if (mode.equals("past")) {
			Cache cache = WikiUtil.getCache(60 * 40);
			String past_string = synchroLogAll(sp_log_box);
			String past_update = synchroLogUpdate(sp_log_box);
			DatastoreService datastore = DatastoreServiceFactory
					.getDatastoreService();
			Entity past = null;
			try {
				past = datastore.get(KeyFactory.createKey("past_string",
						"onlyOne"));
			} catch (EntityNotFoundException e) {
			}
			past.setProperty("text", new Text(past_string));
			past.setProperty("past_update", past_update);
			cache.put("past_string", past_string);
			cache.put("past_update", past_update);
			if(false)datastore.put(past);
		} else if (mode.equals("ranking")) {
			DatastoreService datastore = DatastoreServiceFactory
					.getDatastoreService();
			Entity past = null;
			try {
				past = datastore.get(KeyFactory.createKey("past_string",
						"onlyOne"));
			} catch (EntityNotFoundException e) {
			}
			String ranking_update = synchroLogUpdate(sp_log_box);
			past.setProperty("rank_update", ranking_update);
			datastore.put(past);
		} else if (mode.equals("pair")) {
			DatastoreService datastore = DatastoreServiceFactory
					.getDatastoreService();
			Entity past = null;
			try {
				past = datastore.get(KeyFactory.createKey("past_string",
						"onlyOne"));
			} catch (EntityNotFoundException e) {
			}
			String pair_update = synchroLogUpdate(sp_log_box);
			past.setProperty("pair_update", pair_update);
			if(false)datastore.put(past);
		}
	}