1 2 #ifdef NDEBUG 3 #define SERVERVERSION "harvid " ICSVERSION " ["ICSARCH"]" 4 #else 5 #define SERVERVERSION "harvid " ICSVERSION " ["ICSARCH" debug]" 6 #endif 7 8 #define HTMLBODYPERC(P) \ 9 "<body style=\"width:900px; margin:110px auto 0 auto;\">" \ 10 "<div style=\"position:fixed; height:100px; width:100%"P"; top:0; left:0; background:#000; text-align:center;\"><a href=\"/\"><img alt=\"Harvid\" src=\"/logo.jpg\" style=\"border:0px;\"/></a></div>\n" 11 12 #define HTMLBODY HTMLBODYPERC("%") 13 14 #define CENTERDIV \ 15 "<div style=\"width:38em; margin:0 auto;\">\n" 16 17 #define HTMLFOOTER \ 18 "<hr/><div style=\"text-align:center; color:#888;\">"SERVERVERSION" at %s:%i</div>" 19 20 #define ERRFOOTER \ 21 "<hr/><div style=\"text-align:center; color:#888;\">"SERVERVERSION"</div>\n</body></html>" 22 23 #define OK200MSG(TXT) \ 24 DOCTYPE HTMLOPEN "<title>harvid admin</title></head>" HTMLBODYPERC("") "<p>OK. " TXT " command successful</p>" ERRFOOTER 25