#define PROGRAM "mkhtml" #define LONGNAM "Make HTML" #define VERSION "0.0.1-5" #include #include #include #include #include #include FILE *document; char filename[256] = "mkhtml.html"; FILE *config; /* /etc/mkhtml.conf - global configuration ~/.mkhtml.conf - local, overwrites global --config file - overwrites both, used last */ DIR *dir; struct dirent *de; /* *************************************************************************************************************************************************************************************************************/ /* htmldefs.h */ char *LEVEL_ONE = "\t"; char *LEVEL_TWO = "\t\t"; char *LEVEL_THREE ="\t\t\t"; char *LEVEL_FOUR = "\t\t\t\t"; char *LEVEL_SIX = "\t\t\t\t\t\t"; char *NEWLINE = "\n"; char *BR_NEWLINE = "
\n"; /* remove tabs and nl */ char *HTML_OPEN = "\n"; char *HTML_CLOSE = "\n"; char *HEAD_OPEN = "\t\n"; char *TITLE = "\t\t\n"; char *META_AUTHOR = "\t\t\n"; char *META_DATE = "\t\t\n"; char *META_DESCRIPTION = "\t\t\n"; char *META_KEYWORDS = "\t\t\n"; char *META_LANGUAGE = "\t\t\n"; char *META_GENERATOR ="\t\t\n"; char *META_ROBOTS = "\t\t\n"; char *META_HTEQ_EXPIRES = "\t\t\n"; char *META_HTEQ_REFRESH = "\t\t\n"; char *META_SHORT = META_ROBOTS; char *HEAD_CLOSE = "\t\n"; char *SCRIPT_OPEN = "\t\n"; char *CSS_OPEN = "\t\n"; char *BODY_OPEN = "\t\n"; char *BODY_CONTENT_A = "\n"; char *BODY_CONTENT_B = "\t\t
zurück
\n"; char *BODY_CLOSE = "\t\n"; /* Table */ char *TABLE_OPEN = "\t\t\n"; char *TABLE_CLOSE = "\t\t
\n"; char *ROW_OPEN = "\t\t\t\n"; char *ROW_CLOSE = "\t\t\t\n"; char *CELL_OPEN = "\t\t\t\t"; char *TABLE_CELL = "\t\t\t\t\n"; /* remove tabs and newlines if you want */ char *CELL_CLOSE = "\n"; /* List */ char *OL_OPEN = "\t\t
    \n"; char *UL_OPEN = "\t\t
      \n"; char *LI_OPEN = "\t\t\t
    • "; char *LIST_ENTRY = "\t\t\t
    • \n"; char *LI_CLOSE = "\n"; char *OL_CLOSE = "\t\t
\n"; char *UL_CLOSE = "\t\t\n"; /* Frameset */ char *FRAMESET_OPEN = ""; char *FRAMESET_CLOSE =""; char *FRAME_OPEN = ""; char *FRAME_CLOSE = ""; char *IFRAME_OPEN = ""; /* weitere Tags */ char *BASE_HREF = "\t\t\n"; char *BASE_TARGET = "\t\t\n"; char *BGSOUND_TAG = "\t\t\n"; /* multimedia */ char *APPLET = ""; char *OBJECT = ""; /* forms */ char *FORM_OPEN ="
"; char *FORM_CLOSE="
"; char *INPUT_CHECKBOX=""; char *INPUT_RADIO=""; char *INPUT_TEXT=""; char *INPUT_SUBMIT=""; char *INPUT_RESET=""; char *TEXTAREA_OPEN = ""; char *SELECT_OPEN=""; char *OPTION="