/****************************************************************/
/*                Web Interface Header                          */
/*              (c) COPYRIGHT KORDIC 1996                       */
/*                                                              */
/*              Authors: armian@www.kordic.re.kr                */
/*              History: July 24 96 First Version               */
/* 		Modified by jskim@bulls.kordic.re.kr		*/
/****************************************************************/

#include <stdio.h>
#include <time.h>
#include <sys/types.h>
#ifndef NO_STDLIB_H
#include <stdlib.h>
#else
char *getenv();
#endif

#define KOR_ENG_DICT "./Keywords/HanAPA"
#define QUERY_LOG_FILE "log/namehan_log"
#define ACC_NUM_FILE "log/namehan.count"
#define CGI_APA_SEARCH "APAsrch2.cgi"
#define CGI_HAN_SEARCH "NameHan.cgi"
#define CGI_KEYWORD "keyword.cgi"
#define APA_HOME "h_index.html"
#define APA_HOME_INFO "Bioinfo µ¿¹°±×¸²Ã¢°í"
#define WEB_MASTER "jskim@AnimalPicturesArchive.com"

#define CENTER	"center"
#define RED	"red"
#define BROWN	"brown"
#define BLUE	"blue"
#define GREEN	"green"

#define TRUE	1
#define FALSE	0
#define YES	1
#define NO	0

#define LF 10
#define CR 13

#define MAX_ENTRIES 10000

/* for Get method */
typedef struct {
	char name[256];
	char val[256];
} getentry;

/* for Post method */
typedef struct {
	char *name;
	char *val;
} postentry;

/* For Using Get Method */
void getword(char *word, char *line, char stop);
char x2c(char *what);
void unescape_url(char *url);
void plustospace(char *str);

/* For Using Post Method */
char *makeword(char *line, char stop);
char *fmakeword(FILE *f, char stop, int *len);
char x2c(char *what);
void unescape_url(char *url);
void plustospace(char *str);


/* my own */
void DelSpace(char *line);

/* ÇÑ¿µ »çÀü ±¸Á¶Ã¼ */
typedef struct {
	char han[10][60];
	int  hn;		/* ÇÑ±ÛÀÌ¸§ÀÇ ¼ö */
	char eng[10][60];
	int  en;		/* ¿µ¾îÀÌ¸§ÀÇ ¼ö */
	char sci[60];
	char desc[1024];
} KorEngDict;

