#include <stdio.h>
#include <sys/stat.h>		/** for stat() call */
#include <dirent.h>
#include <string.h>


#include "global.h"

#include "manhat-lib/shared_util.h"
#include "manhat-lib/shared_cs_util.h"


static void
read_parameters (char *course, char *key)
{


  cs_get_required_parameter ("crs", course, MAX_PATH);	/* shared_cgi_util.c */
  cs_get_required_parameter ("id", key, MAX_KEY);	/* shared_cgi_util.c */
 

}



int
main ()
{


  char course[MAX_PATH + 1];	/* from crs=? command line */
  char key[MAX_KEY + 1];	/* from id=? command line */

  CONFIG_STRUCT conf;		/* the configuration read from config file */

  cs_cgi_init();

  read_parameters (course, key);
  
  read_configuration_file (course, &conf);	/* shared_util.c */

  cs_cgi_display("chat_close", 1);
  cs_cgi_destroy();
  return 0;			/* exit successfully */

}

