public void sendReply_cgibin_select_configfile_cgi(MyHTTPServer socket, String cookie) throws Exception
	{
		File dir = new File(".");
		List<String> reply = new ArrayList<String>();

		addHTTP200(reply, cookie);
		addPageHeader(reply, "");

		if (config.getDisableHTTPFileselect())
		{
			reply.add("Access denied");
		}
		else
		{
			reply.add("<FORM ACTION=\"/cgi-bin/select_configfile-do.cgi\" METHOD=\"POST\">\n");
			reply.add("Current path: <B>" + dir.getAbsolutePath() + "</B><BR><BR>\n");

			String currentFile = config.getConfigFilename();
			reply.add("<TABLE>\n");
			reply.add("<TR><TD>Configuration file:</TD><TD><INPUT TYPE=\"TEXT\" NAME=\"config-file\" VALUE=\"" + (currentFile != null?currentFile:"") + "\"></TD></TR>\n");
			reply.add("<TR><TD>or select from:</TD><TD>\n");
			FilenameFilter fileFilter = new FilenameFilter() {
					public boolean accept(File dir, String name)
					{
						return !new File(name).isDirectory();
					}
				};
			String [] files = dir.list(fileFilter);
			Arrays.sort(files, String.CASE_INSENSITIVE_ORDER);
			stringSelectorHTML(reply, "config-file-list", CoffeeSaint.convertStringArrayToList(files), currentFile != null ? currentFile : "---NONE---", true);
			reply.add("</TD></TR>\n");
			reply.add("<TR><TD></TD><TD><INPUT TYPE=\"SUBMIT\" VALUE=\"Submit changes!\"></TD></TR>\n");
			reply.add("</TABLE>\n");
			reply.add("<BR>\n");

			reply.add("</FORM>\n");
		}

		addPageTail(reply, true);

		socket.sendReply(reply);
	}