#define PROGRAM "mkhtml" #define LONGNAME "Make HTML" #define VERSION "0.0.1-8" #define LICENSE "GPL" #include #include #include #include #include #include #include #include FILE *document; /* regular document */ char filename[256] = "mkhtml.html"; char gallery_filename_prefix[256] = "gallery"; /* frameset */ char frameset[256] = "findex.html"; char nav_frame[256] = "fnav.html"; char ban_frame[256] = "fban.html"; char ban_image[256] = "banner.png"; char target_frame[256] = "fhome.html"; char the_target[256] = "ftarget"; FILE *config; /* /etc/mkhtml.conf - global configuration ~/.mkhtml.conf - local, overwrites global --config file - overwrites both, used last */ DIR *dir; struct dirent *de; struct tm timestamp; /* *************************************************************************************************************************************************************************************************************/ /* htmldefs.h */ char *DOCTYPE = ""; char *HTML_OPEN = ""; char *HTML_CLOSE = ""; char *HEAD_OPEN = ""; char *TITLE = ""; char *META_AUTHOR = ""; char *META_DATE = ""; char *META_DESCRIPTION = ""; char *META_KEYWORDS = ""; char *META_LANGUAGE = ""; char *META_GENERATOR =""; char *META_ROBOTS = ""; char *META_HTEQ_EXPIRES = ""; char *META_HTEQ_REFRESH = ""; char *META_SHORT = META_ROBOTS; char *LINK_ALTERNATE = ""; char *LINK_APPENDIX = ""; char *LINK_BOOKMARK = ""; char *LINK_CHAPTER = ""; char *LINK_CONTENTS = ""; char *LINK_COPYRIGHT = ""; char *LINK_GLOSSARY = ""; char *LINK_HELP = ""; char *LINK_INDEX = ""; char *LINK_NEXT = ""; char *LINK_PREV = ""; char *LINK_SECTION = ""; char *LINK_START = ""; char *LINK_STYLESHEET = ""; char *LINK_SUBSECTION = ""; char *HEAD_CLOSE = ""; char *SCRIPT_OPEN = ""; char *CSS_OPEN = ""; char *BODY_OPEN = ""; char *BODY_CONTENT_A = ""; char *BODY_CONTENT_B = "
zurück
"; char *BODY_CLOSE = ""; /* Table */ char *TABLE_OPEN = ""; char *TABLE_CLOSE = "
"; char *ROW_OPEN = ""; char *ROW_CLOSE = ""; char *CELL_OPEN = ""; char *TABLE_CELL = ""; /* remove tabs and newlines if you want */ char *CELL_CLOSE = ""; /* List */ char *OL_OPEN = "
    "; char *UL_OPEN = "
      "; char *LI_OPEN = "
    • "; char *LIST_ENTRY = "
    • "; char *LI_CLOSE = ""; char *OL_CLOSE = "
"; char *UL_CLOSE = ""; /* Frameset */ char *FRAMESET_OPEN = ""; char *FRAMESET_CLOSE =""; char *FRAME_OPEN = ""; char *FRAME_CLOSE = ""; char *IFRAME_OPEN = ""; /* weitere Tags */ char *BASE_HREF = ""; char *BASE_TARGET = ""; char *BGSOUND_TAG = ""; /* multimedia */ char *APPLET_OPEN = ""; char *APPLET_CLOSE = ""; char *OBJECT_OPEN = ""; char *OBJECT_DECLARE_OPEN = ""; char *OBJECT_CLOSE =""; char *EMBED_OPEN = ""; char *EMBED_CLOSE = ""; char *PARAM = ""; /* layers */ char *LAYER_OPEN = ""; char *LAYER_CLOSE = ""; char *ILAYER_OPEN = ""; char *ILAYER_CLOSE = ""; /* 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="