<%@ include file = "../../EgTrackerAJSON.jsp" %>
<%@ page import = "com.eg.IniFile"%>
<%@ page import = "com.egurkha.util.*"%>
<%@ page import = "net.sf.json.*"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%
	response.setContentType("application/json");

	JSONObject rootJson = new JSONObject();
	JSONObject supermanagerJson = new JSONObject();

	IniFile inifile = new IniFile(EgInstallInfo.getInstallDir()+"/manager/config/eg_services.ini");

	String autoRegisterSm = inifile.getValue("MISC_ARGS","AutoRegisterSm");
	autoRegisterSm = autoRegisterSm != null && (autoRegisterSm.equals("true") || autoRegisterSm.equals("yes"))?"yes":"no";

	supermanagerJson.put("autoRegisterSm",autoRegisterSm);

	rootJson.put("SuperManager",supermanagerJson);
	out.println(rootJson);
%>